The Gaudi Framework  v36r7 (7f57a304)
Write.py
Go to the documentation of this file.
1 
11 """
12 Create an Event Tag Collection based from the DST file prepared by the
13 "Prepare.py" options.
14 """
15 from Configurables import Gaudi__Examples__EvtColAlg as EvtColAlg
16 from Configurables import GaudiPersistency, RndmGenSvc, TagCollectionSvc
17 from Gaudi.Configuration import *
18 
19 GaudiPersistency()
20 FileCatalog(Catalogs=["xmlcatalog_file:EvtColsEx.xml"])
21 
22 # Input
23 esel = EventSelector(PrintFreq=1000)
24 esel.Input = ["DATAFILE='PFN:EvtColsEx.dst' SVC='Gaudi::RootEvtSelector' OPT='READ'"]
25 
26 # Output
27 evtColl = TagCollectionSvc("EvtTupleSvc")
28 evtColl.Output = [
29  "EVTCOLS DATAFILE='PFN:EvtColsEx.tags' OPT='RECREATE' SVC='Gaudi::RootCnvSvc'"
30 ]
31 
32 app = ApplicationMgr()
33 app.TopAlg = [
34  EvtColAlg(
35  "Fill",
36  # Logical unit for Event Tag Collection
37  EvtColLUN="EVTCOLS",
38  )
39 ]
40 app.EvtMax = -1
41 app.ExtSvc += [RndmGenSvc(), evtColl]
Gaudi.Configuration
Definition: Configuration.py:1
ApplicationMgr
Definition: ApplicationMgr.h:57
EventSelector
Definition of class EventSelector.
Definition: EventSelector.h:63