The Gaudi Framework
v36r9p1 (5c15b2bb)
Read.py
Go to the documentation of this file.
1
11
"""
12
Read the Event Tag Collection
13
"""
14
from
Configurables
import
GaudiPersistency, TagCollectionSvc
15
from
Gaudi.Configuration
import
*
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
28
for
sel
in
[
29
"runNum<10 && runNum>8"
,
30
"runNum<100 && flat>9.9"
,
31
"binom==7 || poisson==9"
,
32
]
33
]
34
# "COLLECTION='Fill/COL1' SEL='runNum<10 && runNum>8' DATAFILE='PFN:EvtColsEx.tags' SVC='Gaudi::RootEvtSelector' OPT='READ'"
35
# "COLLECTION='Fill/COL1' SEL='runNum<100 && flat>9.9' DATAFILE='PFN:EvtColsEx.tags' SVC='Gaudi::RootEvtSelector' OPT='READ'"
36
# "COLLECTION='Fill/COL1' SEL='binom==7 || poisson==9' DATAFILE='PFN:EvtColsEx.tags' SVC='Gaudi::RootEvtSelector' OPT='READ'"
37
38
app =
ApplicationMgr
()
39
app.EvtMax = -1
40
app.ExtSvc += [evtColl]
Gaudi.Configuration
Definition:
Configuration.py:1
ApplicationMgr
Definition:
ApplicationMgr.h:57
EventSelector
Definition of class EventSelector.
Definition:
EventSelector.h:63
GaudiExamples
options
EvtColsEx
Read.py
Generated on Fri Feb 3 2023 18:02:54 for The Gaudi Framework by
1.8.18