All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Indexer.py
Go to the documentation of this file.
1 ##
2 ## Job options to produce an index file for the events in the input files
3 ##
4 
5 from Gaudi.Configuration import *
6 from Configurables import LHCbApp, EventIndexer
7 from Configurables import DstConf, UnpackDecReport
8 DstConf().EnableUnpack = ['Reconstruction', 'Stripping']
9 decConv = UnpackDecReport("Strip_pPhys_DecReports_Converter")
10 decConv.InputName = "Strip/pPhys/DecReports"
11 
12 from Configurables import ApplicationMgr, DataOnDemandSvc
13 ApplicationMgr().ExtSvc.append(DataOnDemandSvc())
14 
15 DstConf().EnableUnpack = ['Reconstruction', 'Stripping']
16 
17 LHCbApp()
18 
19 ApplicationMgr().TopAlg += [EventIndexer()]
20 
21 EventSelector().PrintFreq = 10000
22 
23 ## Provide one or more input files.
24 EventSelector().Input = [
25  #"DATAFILE='PFN:MyInputFile.dst' TYP='POOL_ROOTTREE' OPT='READ'"
26  "DATAFILE='PFN:root://eoslhcb.cern.ch//eos/lhcb/LHCb/Collision12/DIMUON.DST/00020350/0000/00020350_00006188_1.dimuon.dst' TYP='POOL_ROOTTREE' OPT='READ'"
27 ]
28 
29 ## Define the output file
30 EventIndexer().OutputFile = "index.root"
31 EventIndexer().Stripping = "StrippingXYZ"
Definition of class EventSelector.
Definition: EventSelector.h:53