The Gaudi Framework  master (37c0b60a)
CollWrite.py
Go to the documentation of this file.
1 
11 from Configurables import EvtCollectionWrite, GaudiPersistency
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 = [
22  "DATAFILE='PFN:ROOTIO.dst' SVC='Gaudi::RootEvtSelector' OPT='READ'",
23  "DATAFILE='PFN:ROOTIO.mdst' SVC='Gaudi::RootEvtSelector' OPT='READ'",
24 ]
25 
26 # Output
27 evtColl = TagCollectionSvc("EvtTupleSvc")
28 evtColl.Output = [
29  "EvtColl DATAFILE='PFN:ROOT_IO.tags' OPT='RECREATE' SVC='Gaudi::RootCnvSvc'"
30 ]
31 
32 # Algorithms
33 algs = Gaudi__Sequencer(
34  "EventAlgs", Members=[EvtCollectionWrite("Writer")], VetoObjects=["FSR"]
35 )
36 
37 # Application
38 app = ApplicationMgr(TopAlg=[algs], EvtMax=-1, HistogramPersistency="NONE")
39 app.ExtSvc.append(evtColl)
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