The Gaudi Framework  v36r9p1 (5c15b2bb)
TupleEx.py
Go to the documentation of this file.
1 
11 from Gaudi.Configuration import *
12 
13 ApplicationMgr().ExtSvc += ["RndmGenSvc"]
14 
15 # Run various tupling algorithms
16 from Configurables import TupleAlg, TupleAlg2, TupleAlg3
17 
18 ApplicationMgr().TopAlg = [
19  TupleAlg("Tuple", NTupleLUN="MYLUN"),
20  TupleAlg2("Tuple2", NTupleLUN="MYLUN"),
21  TupleAlg3("Tuple3", NTupleLUN="MYLUN"),
22 ]
23 
24 # Output level
25 MessageSvc().OutputLevel = 3
26 
27 # 10000 'events', no input
28 ApplicationMgr().EvtMax = 10000
29 ApplicationMgr().EvtSel = "NONE"
30 
31 # Output ROOT tuple file name
32 ApplicationMgr().HistogramPersistency = "ROOT"
33 NTupleSvc().Output = ["MYLUN DATAFILE='TupleEx_pyopts.root' OPT='NEW' TYP='ROOT'"]
34 
35 # Set the compression level for the ROOT tuple file
36 from GaudiKernel.Configurable import ConfigurableGeneric as RFileCnv
37 
38 RFileCnv("RFileCnv").GlobalCompression = "LZMA:6"
NTupleSvc
Definition: NTupleSvc.h:33
GaudiKernel.Configurable
Definition: Configurable.py:1
Gaudi.Configuration
Definition: Configuration.py:1
MessageSvc
Definition: MessageSvc.h:40
ApplicationMgr
Definition: ApplicationMgr.h:57