The Gaudi Framework  v36r1 (3e2fb5a8)
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 Gaudi.Configuration import *
16 from Configurables import GaudiPersistency, RndmGenSvc, TagCollectionSvc
17 from Configurables import Gaudi__Examples__EvtColAlg as EvtColAlg
18 
19 GaudiPersistency()
20 FileCatalog(Catalogs=["xmlcatalog_file:EvtColsEx.xml"])
21 
22 # Input
23 esel = EventSelector(PrintFreq=1000)
24 esel.Input = [
25  "DATAFILE='PFN:EvtColsEx.dst' SVC='Gaudi::RootEvtSelector' OPT='READ'"
26 ]
27 
28 # Output
29 evtColl = TagCollectionSvc("EvtTupleSvc")
30 evtColl.Output = [
31  "EVTCOLS DATAFILE='PFN:EvtColsEx.tags' OPT='RECREATE' SVC='Gaudi::RootCnvSvc'"
32 ]
33 
34 app = ApplicationMgr()
35 app.TopAlg = [
36  EvtColAlg(
37  "Fill",
38  # Logical unit for Event Tag Collection
39  EvtColLUN="EVTCOLS")
40 ]
41 app.EvtMax = -1
42 app.ExtSvc += [RndmGenSvc(), evtColl]
Gaudi.Configuration
Definition: Configuration.py:1
ApplicationMgr
Definition: ApplicationMgr.h:57
EventSelector
Definition of class EventSelector.
Definition: EventSelector.h:63