The Gaudi Framework  v36r1 (3e2fb5a8)
Read.py
Go to the documentation of this file.
1 
11 """
12 Read the Event Tag Collection
13 """
14 from Gaudi.Configuration import *
15 from Configurables import GaudiPersistency, TagCollectionSvc
16 
17 GaudiPersistency()
18 FileCatalog(Catalogs=["xmlcatalog_file:EvtColsEx.xml"])
19 
20 evtColl = TagCollectionSvc("EvtTupleSvc")
21 
22 # Input
23 esel = EventSelector(PrintFreq=1)
24 esel.Input = [
25  "COLLECTION='Fill/COL1' SEL='%s' "
26  "DATAFILE='PFN:EvtColsEx.tags' "
27  "SVC='Gaudi::RootCnvSvc' OPT='READ'" % sel for sel in [
28  'runNum<10 && runNum>8', 'runNum<100 && flat>9.9',
29  'binom==7 || poisson==9'
30  ]
31 ]
32 # "COLLECTION='Fill/COL1' SEL='runNum<10 && runNum>8' DATAFILE='PFN:EvtColsEx.tags' SVC='Gaudi::RootEvtSelector' OPT='READ'"
33 # "COLLECTION='Fill/COL1' SEL='runNum<100 && flat>9.9' DATAFILE='PFN:EvtColsEx.tags' SVC='Gaudi::RootEvtSelector' OPT='READ'"
34 # "COLLECTION='Fill/COL1' SEL='binom==7 || poisson==9' DATAFILE='PFN:EvtColsEx.tags' SVC='Gaudi::RootEvtSelector' OPT='READ'"
35 
36 app = ApplicationMgr()
37 app.EvtMax = -1
38 app.ExtSvc += [evtColl]
Gaudi.Configuration
Definition: Configuration.py:1
ApplicationMgr
Definition: ApplicationMgr.h:57
EventSelector
Definition of class EventSelector.
Definition: EventSelector.h:63