The Gaudi Framework  master (37c0b60a)
SelectTracks.py
Go to the documentation of this file.
1 
14 
15 from Configurables import FileRecordDataSvc
16 from Configurables import Gaudi__RootCnvSvc as RootCnvSvc
17 from Configurables import Gaudi__TestSuite__CountSelectedTracks as CountSelectedTracks
18 from Configurables import Gaudi__TestSuite__SelectTracks as SelectTracks
19 from Configurables import GaudiPersistency, ReadAlg, ReadTES
20 from Gaudi.Configuration import *
21 
22 # I/O
23 GaudiPersistency()
24 FileRecordDataSvc(IncidentName="NEW_FILE_RECORD")
25 FileCatalog(Catalogs=["xmlcatalog_file:ROOTIO.xml"])
26 esel = EventSelector(OutputLevel=DEBUG, PrintFreq=50, FirstEvent=1)
27 esel.Input = [
28  "DATAFILE='PFN:ROOTIO.dst' SVC='Gaudi::RootEvtSelector' OPT='READ'",
29  "DATAFILE='PFN:ROOTIO.mdst' SVC='Gaudi::RootEvtSelector' OPT='READ'",
30 ]
31 
32 # Algorithms
33 evtAlgs = Gaudi__Sequencer(
34  "EventAlgs", Members=[SelectTracks(), CountSelectedTracks()], VetoObjects=["FSR"]
35 )
36 fsrAlgs = Gaudi__Sequencer(
37  "FSRAlgs", Members=[ReadTES(Locations=["FSR"])], RequireObjects=["FSR"]
38 )
39 
40 # Application setup
42 # app.ExtSvc = [ EvtStoreSvc("EventDataSvc",OutputLevel=DEBUG ) ]
43 app.ExtSvc = [EvtStoreSvc("EventDataSvc")]
44 EvtStoreSvc("EventDataSvc").InhibitedPathPrefixes = ["/Event/Header"]
45 EvtStoreSvc("EventDataSvc").FollowLinksToAncestors = True
46 # - Algorithms
47 app.TopAlg = [evtAlgs, fsrAlgs]
48 # - Events
49 app.EvtMax = -1
50 app.HistogramPersistency = "NONE"
51 
52 RootCnvSvc(OutputLevel=INFO)
53 # ChronoStatSvc(OutputLevel=WARNING)
EvtStoreSvc
Definition: EvtStoreSvc.cpp:237
Gaudi.Configuration
Definition: Configuration.py:1
ApplicationMgr
Definition: ApplicationMgr.h:57
SelectTracks
Definition: SelectTracks.py:1
EventSelector
Definition of class EventSelector.
Definition: EventSelector.h:63