TWiki
>
Main Web
>
TWikiUsers
>
AdamDavis
>
NtupleTutorial
(2012-08-21,
AdamDavis
)
(raw view)
E
dit
A
ttach
P
DF
---+ A Walkthrough Guide to NTuples at LHCb --- This is a walk through Tutorial to Create NTuples for the sample D*\x{2192}D^0 \x{03c0} ; D^0 \x{2192}K \x{03c0}. At the end of this tutorial, you should be able to * Find Monte Carlo DST files using the LHCb Bookkeeping system * From the Bookkeeping system, create a python file with the names of these DST files * Make NTuples from these DST files ---++ 1. Finding the Monte Carlo files One must be logged into lxplus5 in order to access the LHCb Bookkeeping system. If you're not at CERN directly, it's best to do this via VNC. You can find the info [[https://twiki.cern.ch/twiki/bin/view/LHCb/RemoteLxplusConsoleHowTo][here]]. Once logged into the VPN, execute %SYNTAX{ syntax="python"}% lhcb-proxy-init %ENDSYNTAX% This initializies your proxy. It will ask you for your Grid Certificate Password. ---++++++ NB:<br />If you do not yet have a Grid Certificate, go to the twiki page at [[LHCb.FAQ.Certificate][https://twiki.cern.ch/twiki/bin/view/LHCb/FAQ/Certificate]] .<br /> Once there, follow the instructions for getting a new grid certificate. You will need to use Firefox or IE. When prompted, choose the "Through CERN" option. The rest should<br />be pretty self explanatory. You will need to do this only once. Then, you can use the same Certificate over and over again. Next, access the bookkeeping GUI: %SYNTAX{ syntax="python"}% lhcb_bkk & %ENDSYNTAX% The ambersand following lhcb_bkk tells the operating system to execute the command in background mode so you will have access to the command prompt without killing lhcb_bkk. In any case, this command will open the bookkeeping system browser. There is information about many types of data here. We are specifically interested in find Monte Carlo data sets. * Open the %RED%MC%ENDCOLOR% folder. As the name suggests, this is where Monte Carlo Data is. * Open the subfolder <span style="color: #ff4500;" class="WYSIWYG_COLOR">MC11a</span>. There is, a priori, no reason for guessing this. * Open %RED%Beam3500GeV-2011-MagDown-Nu2-EmNoCuts%ENDCOLOR%. As the name suggests, this is for a 3.5 TeV beam (single beam) in 2011 with the Magnet down orientation. EmNoCuts probably means no additional cuts made on what is observed in the EM calorimeter, but this is simply a guess at this point. * Open the <span style="color: #ff4500;" class="WYSIWYG_COLOR">Sim05</span> folder. The only reason for this is that this is where our sample exists. * Open the Reco12a folder. Again, this is where the sample we want exists. * Open <span style="color: #ff4500;" class="WYSIWYG_COLOR">Stripping17NoPrescalingFlagged</span>. "Flagged" means trigger decisions are recorded, but all events are kept. * Scroll down and choose folder <span style="color: #ff4500;" class="WYSIWYG_COLOR">27163003</span>. The description is Dst_D0pi,Kpi=DecProdCut, hence what we want. ---++++++ NB: If you are looking for a different decay chain, and don't want to search endlessly around the GUI, a helpful website is http://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/decfiles/releases/dev/table_evttype.php . By simply doing a search for the decays you'd like, you can find the corresponding number in the Bookkeeping system. * Choose ALLSTREAMS.DST * Click <span style="color: #ff4500;" class="WYSIWYG_COLOR">Nb. of Files/Events</span>. This will open a new GUI which lists names of files, event statistics, etc. ---++ <span style="color: #630000; font-size: 19px; line-height: 18px;"> 2. Creating the Python File</span> From here, it is literally a point and click to save the desired files. * Click <span style="color: #ff4500;" class="WYSIWYG_COLOR">Save Files</span> on the bottom right. This will bring up a dialogue box where you choose the directory and file name where the list of files will be stored as a python file which can be used in DaVinci applications. * Click OK. That's it! * Repeat the same for <span style="color: #ff4500;" class="WYSIWYG_COLOR">MagUp</span> data. ---++ 3. Making NTuples <span style="font-size: small; color: #000000; font-weight: normal; line-height: normal;">-- Main.AdamDavis - 21-Aug-2012</span>
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r1 - 2012-08-21
-
AdamDavis
Log In
Main
Home
Index
Search
User Search
Changes
Notifications
RSS Feed
Documentation
Support
Webs
Main
Main Archive
Plugins
Sandbox for tests
Public webs
Public webs
ABATBEA
ACPP
ADCgroup
AEGIS
AfricaMap
AgileInfrastructure
ALICE
AliceEbyE
AliceSPD
AliceSSD
AliceTOF
AliFemto
ALPHA
ArdaGrid
ASACUSA
AthenaFCalTBAna
Atlas
AtlasLBNL
AXIALPET
CAE
CALICE
CDS
CENF
CERNSearch
CLIC
Cloud
CloudServices
CMS
Controls
CTA
CvmFS
DB
DefaultWeb
DESgroup
DPHEP
DM-LHC
DSSGroup
EGEE
EgeePtf
ELFms
EMI
ETICS
FIOgroup
FlukaTeam
Frontier
Gaudi
GeneratorServices
GuidesInfo
HardwareLabs
HCC
HEPIX
ILCBDSColl
ILCTPC
IMWG
Inspire
IPv6
IT
ItCommTeam
ITCoord
ITdeptTechForum
ITDRP
ITGT
ITSDC
LAr
LCG
LCGAAWorkbook
Leade
LHCAccess
LHCAtHome
LHCb
LHCgas
LHCONE
LHCOPN
LinuxSupport
Main
Medipix
Messaging
MPGD
NA49
NA61
NA62
NTOF
Openlab
PDBService
Persistency
PESgroup
Plugins
PSAccess
PSBUpgrade
R2Eproject
RCTF
RD42
RFCond12
RFLowLevel
ROXIE
Sandbox
SocialActivities
SPI
SRMDev
SSM
Student
SuperComputing
Support
SwfCatalogue
TMVA
TOTEM
TWiki
UNOSAT
Virtualization
VOBox
WITCH
XTCA
Welcome Guest
Login
or
Register
Cern Search
TWiki Search
Google Search
Main
All webs
Copyright &© 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback