ATLAS Offline Software
HistNtupOptions.py
Go to the documentation of this file.
1 
6 
7 #--------------------------------------------------------------
8 # ATLAS standard config
9 #--------------------------------------------------------------
10 import AthenaCommon.AtlasUnixStandardJob
11 
12 # bring in McEventSelector
13 import AthenaCommon.AtlasUnixGeneratorJob
14 
15 #--------------------------------------------------------------
16 # Private Application Configuration options
17 #--------------------------------------------------------------
18 
19 # Select HBOOK or ROOT persistency (ROOT is default)
20 theApp.HistogramPersistency = "ROOT"
21 
22 from AthenaCommon.AlgSequence import AlgSequence
23 job = AlgSequence()
24 job += CfgMgr.AthEx__Hist("Hist")
25 job += CfgMgr.AthEx__Ntup("Ntup")
26 
27 #--------------------------------------------------------------
28 # Set output level threshold (DEBUG, INFO, WARNING, ERROR, FATAL )
29 #--------------------------------------------------------------
30 
31 job.Hist.OutputLevel = DEBUG
32 job.Ntup.OutputLevel = DEBUG
33 svcMgr.MessageSvc.useColors = True
34 
35 #--------------------------------------------------------------
36 # Histogram output file
37 #--------------------------------------------------------------
38 
39 # Specify the appropriate output file type
40 if not hasattr(svcMgr, 'THistSvc'):
41  svcMgr += CfgMgr.THistSvc()
42 hsvc = svcMgr.THistSvc
43 
44 hsvc.Output += [ "stat DATAFILE='hist.root' OPT='RECREATE'" ]
45 
46 #--------------------------------------------------------------
47 # Ntuples
48 #--------------------------------------------------------------
49 hsvc.Output += [ "rec DATAFILE='ntuple.root' OPT='RECREATE'" ]
50 
51 #--------------------------------------------------------------
52 # Event related parameters
53 #--------------------------------------------------------------
54 
55 # Number of events to be processed (default is 10)
56 theApp.EvtMax = 10
57 
58 # rflx-dict loading
59 import AthenaPython.PyAthena as PyAthena
60 PyAthena.std.vector('long')
61 
62 #--------------------------------------------------------------
63 # Algorithms Private Options
64 #--------------------------------------------------------------
65 
66 #--------------------------------------------------------------
67 # Batch/Interactive Control (uncomment the lines for batch mode)
68 #--------------------------------------------------------------
69 
70 
72 
73 #==============================================================
74 #
75 # End of job options file
76 #
77 
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7