ATLAS Offline Software
Loading...
Searching...
No Matches
H8TimingNtuple.py
Go to the documentation of this file.
1include( "AthenaCommon/Atlas.UnixStandardJob.py" )
2
3include( "DetDescrCnvSvc/DetStore_joboptions.py" )
4
5DetDescrCnvSvc = Service( "DetDescrCnvSvc" )
6DetDescrCnvSvc.DetectorManagers+= ["CaloTTDescrManager"]
7DetDescrCnvSvc.DetectorManagers += [ "CaloMgr" ]
8
9#
10#---- ByteStream-Files input --------------------
11#
12
13
14include( "TBCnv/TBReadH8BS_jobOptions.py" )
15ByteStreamInputSvc = Service( "ByteStreamInputSvc" )
16
17# With H8 : - See also TBReadH8BS_jobOptions.py !!
18#ByteStreamInputSvc.InputDirectory += ["/afs/cern.ch/user/d/delsart/myAthena/Reconstruction/RecExample/RecExCommon/RecExCommon-00-01-26/run"]
19#ByteStreamInputSvc.InputDirectory += ["/castor/cern.ch/atlas/testbeam/tilecal/2004/daq/"]
20ByteStreamInputSvc.InputDirectory += ["/castor/cern.ch/atlas/testbeam/combined/2004/"]
21#ByteStreamInputSvc.InputDirectory += ["/afs/cern.ch/user/d/delsart/myAthena/Reconstruction/RecExample/RecExTB/RecExTB-00-00-27/run"]
22# Prefix #
23ByteStreamInputSvc.FilePrefix += ["daq_SFI-51_calo"]
24# Run number
25#ByteStreamInputSvc.RunNumber = [1000853]
26ByteStreamInputSvc.RunNumber = [1000944]
27#ByteStreamInputSvc.RunNumber = [1000536]
28
29
30ToolSvc.TBByteStreamCnvTool.Dump = False
31
32
33#---- LAr BS Reading & Reconstruction
34include("LArTBRec/LArTBRec_H8_Simple_jobOptions.py")
35theApp.Dlls+=["LArTools"]
36include( "LArDetMgrDetDescrCnv/LArDetMgrDetDescrCnv_H8_joboptions.py" )
37LArRawChannelSimpleBuilder.RecoMode = "CUBIC"
38
39
40# make CaloCellContainer
41doTile=True
42doSim=False
43doLArHVCorrection=True
44include ( "CaloTBRec/CaloTBRec_H8_Cell_jobOptions.py" )
45
46
47
48# --- TBRec --------------
49theApp.Dlls += [ "TBRec" ]
50
51theApp.TopAlg += ["TBPhaseRec/TBPhaseRec"]
52TBPhaseRec = Algorithm("TBPhaseRec")
53include("TBRec/H8PhaseRec_jobOptions.py")
54
62
63
64theApp.TopAlg += ["TBScintillatorRec"]
65TBScintRec = Algorithm("TBScintillatorRec")
66TBScintRec.SGkey="ScintillatorRawCont"
67include( "TBRec/H8ScintRec_jobOptions.py" )
68theApp.TopAlg += ["TBBPCRec"]
69TBBPCRec = Algorithm("TBBPCRec")
70TBBPCRec.SGkey="BPCRawCont"
71include( "TBRec/H8BPCRec_jobOptions.py" )
72#theApp.TopAlg += ["TBPhaseRec/TBPhaseRec"]
73#TBPhaseRec = Algorithm("TBPhaseRec")
74#include( "TBRec/H8PhaseRec_jobOptions.py" )
75
76theApp.Dlls += [ "CBNT_Utils" ]
77theApp.Dlls += [ "CBNT_Athena" ]
78theApp.TopAlg += [ "CBNT_Athena" ]
79
80CBNT_Athena = Algorithm( "CBNT_Athena" )
81CBNT_Athena.NtupleLocID="/FILE1/CBNT/t333"
82
83CBNT_Athena.Members += [ "CBNT_BeamInstrumentation" ]
84CBNT_BeamInstrumentation = Algorithm( "CBNT_BeamInstrumentation" )
85CBNT_BeamInstrumentation.BPCnames=["BPC-2","BPC-1","BPC0","BPC1","BPC2"];
86CBNT_BeamInstrumentation.Scintnames=["S0","S1","S2-Up","S2-Down","S3-Left","S3-Right","C1","C2","muTag","muHalo","muVeto"];
87
88CBNT_Athena.Members += [ "CBNT_Timing" ]
89CBNT_Timing = Algorithm( "CBNT_Timing" )
90CBNT_Timing.EnergyCut = 2.*GeV
91CBNT_Timing.IncludedSamplings += ["EMB2", "EMB1", "EMB0", "EMB3"]
92
93
94#--- Histogram based monitoring ---------------------------
95#theApp.Dlls += [ "AthenaMonitoring"]
96#theApp.Dlls += ["CaloMonitoring"];
97#theApp.Dlls += [ "TBMonitoring" ]
98
99# We put the Monitoring in a sequencer to skip calibration events
100#theApp.TopAlg += [ "TBAlgoSequencer/Seq" ]
101#Seq = Algorithm( "Seq" )
102#Seq.OutputLevel=INFO
103#Seq.SubAlgorithms = ["TBEventStreamer/BeamStreamer",
104# "AthenaMon/CaloMon"
105# ]
106
107# Steer Beam Streamer
108#BeamStreamer = Algorithm( "BeamStreamer" )
109#BeamStreamer.ToolNames = [ "TBPatternUnitStreamerToolH8/BitSelector" ]
110#BeamStreamer.BitSelector.AcceptPattern = [ "Physics" ]
111#BeamStreamer.OutputLevel=INFO
112
113#CaloMon=Algorithm("CaloMon");
114#CaloMon.AthenaMonTools += ["CaloCellMonitoringTool/CaloCellMon"]
115#ToolSvc.CaloCellMon.histoPathBase = "/stat"
116#ToolSvc.CaloCellMon.OutputLevel=0;
117#ToolSvc.CaloCellMon.NPreHistogrammingEvents=50
118
119
120#athenamon = Algorithm( "athenamon" )
121#athenamon.AthenaMonTools = ["BeamDetectorMonTool/beamdetmon"]
122
123tdcbinnum = 100
124tdcmin = 0
125#tdcmax = 1023
126tdcmax = 4096
127
128# ------------- TDC Monitor -------
129#CaloMon.AthenaMonTools += ["TBTDCRawMonTool/TDCmon"]
130#include( "TBCnv/H8TDCChannelNames.py" )
131#ToolSvc.TDCmon.TestTDCMonTool = FALSE
132#ToolSvc.TDCmon.TDCBinNum = tdcbinnum
133#ToolSvc.TDCmon.TDCMax = tdcmax
134#ToolSvc.TDCmon.TDCMin = tdcmin
135
136
137# ------------- Phase Monitor -------
138#CaloMon.AthenaMonTools += ["TBPhaseMonTool/Phasemon"]
139#ToolSvc.Phasemon.PhaseTDCNames = [
140# "frag0x12chan0"]
141#ToolSvc.Phasemon.IncludedSamplings += ["EMB2"]
142#ToolSvc.Phasemon.TimeMin = 25
143#ToolSvc.Phasemon.TimeMax = 3.*25.*ns
144#ToolSvc.Phasemon.EnergyCut = 10.*GeV
145#ToolSvc.Phasemon.TDCBins = 4096
146#ToolSvc.Phasemon.TDCMin = 0
147#ToolSvc.Phasemon.TDCMax = 4095
148
149
150# -- use root histos --
151theApp.Dlls += [ "RootHistCnv" ]
152theApp.HistogramPersistency = "ROOT"
153#HistogramPersistencySvc = Service( "HistogramPersistencySvc" )
154#HistogramPersistencySvc.OutputFile = "test.root"
155
156
157NTupleSvc = Service( "NTupleSvc" )
158#NTOutputFileString="FILE1 DATAFILE='%(file)s' OPT='NEW'" % {"file" : NTOutputFileName}
159NTupleSvc.Output = [ "FILE1 DATAFILE='H8TimingMon.root' OPT='NEW'" ]
160#NTupleSvc.Output = [TOutputFileString]
161
162
163
164
165# -- Use auditors --
166#theApp.Dlls += [ "GaudiAud" ]
167# write out a summary of the time spent
168#
169#theAuditorSvc = AuditorSvc()
170#theAuditorSvc.Auditors += [ "ChronoAuditor"]
171# write out a short message upon entering or leaving each algorithm
172#
173# AuditorSvc.Auditors += { "NameAuditor" };
174#-------------------------------------------------------------------------
175
176# user driving parameters
177#
178
179# Number of events to be processed (default is 10)
180theApp.EvtMax = 1000
181
182# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
183MessageSvc = Service( "MessageSvc" )
184MessageSvc.OutputLevel =5
185
186AthenaEventLoopMgr = Service( "AthenaEventLoopMgr" )
187AthenaEventLoopMgr.OutputLevel =5
188#ToolSvc.TBByteStreamCnvTool.OutputLevel =2
189#ToolSvc.BPCmon.OutputLevel =3
190#ToolSvc.Scintmon.OutputLevel =3
191#ToolSvc.ADCmon.OutputLevel =3
192#ToolSvc.Scintmon.OutputLevel =3
193#TBScintRec.OutputLevel =3
194#TBBPCRec.OutputLevel=3;
195# Dump all objects available
196#StoreGateSvc=Service("StoreGateSvc")
197#StoreGateSvc.Dump = True