The Gaudi Framework  v36r1 (3e2fb5a8)
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 ApplicationMgr().TopAlg = [
18  TupleAlg("Tuple", NTupleLUN="MYLUN"),
19  TupleAlg2("Tuple2", NTupleLUN="MYLUN"),
20  TupleAlg3("Tuple3", NTupleLUN="MYLUN")
21 ]
22 
23 # Output level
24 MessageSvc().OutputLevel = 3
25 
26 # 10000 'events', no input
27 ApplicationMgr().EvtMax = 10000
28 ApplicationMgr().EvtSel = "NONE"
29 
30 # Output ROOT tuple file name
31 ApplicationMgr().HistogramPersistency = "ROOT"
32 NTupleSvc().Output = ["MYLUN DATAFILE='TupleEx.root' OPT='NEW' TYP='ROOT'"]
33 
34 # Set the compression level for the ROOT tuple file
35 from GaudiKernel.Configurable import ConfigurableGeneric as RFileCnv
36 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