The Gaudi Framework  master (37c0b60a)
ExtCollRead.py
Go to the documentation of this file.
1 
11 from Configurables import GaudiPersistency, ReadAlg, SequencerTimerTool
12 from Gaudi.Configuration import *
13 
14 # Basic configuration for Gaudi persistency
15 GaudiPersistency()
16 
17 FileCatalog(Catalogs=["xmlcatalog_file:ROOTIO.xml"])
18 
19 # Input
20 esel = EventSelector(PrintFreq=100)
21 esel.Input = [ # new
22  "COLLECTION='Fill/MyCOL1' DATAFILE='PFN:ROOT_IO.etags' "
23  "SVC='Gaudi::RootCnvSvc' SEL='(Ntrack>9 && Ntrack<20 && Energy<180)' "
24  "FUN='Gaudi::TestSuite::EvtExtCollectionSelector'",
25  # old
26  "COLLECTION='Dir1/Dir2/Dir3/Collection' DATAFILE='PFN:ROOT_IO.tags' "
27  "SVC='Gaudi::RootCnvSvc' SEL='(Ntrack>15)' "
28  "FUN='Gaudi::TestSuite::EvtCollectionSelector'",
29 ]
30 evtColl = TagCollectionSvc("EvtTupleSvc")
31 
32 # Application
33 app = ApplicationMgr(TopAlg=[ReadAlg()], EvtMax=-1, HistogramPersistency="NONE")
34 app.ExtSvc.append(evtColl)
35 
36 # Verbosity
37 # SequencerTimerTool(OutputLevel=WARNING)
Gaudi.Configuration
Definition: Configuration.py:1
ApplicationMgr
Definition: ApplicationMgr.h:57
EventSelector
Definition of class EventSelector.
Definition: EventSelector.h:63
TagCollectionSvc
Gaudi tag collection service definition.
Definition: TagCollectionSvc.h:36