ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TestBeam
TBRec
share
H8TimingNtuple.py
Go to the documentation of this file.
1
include(
"AthenaCommon/Atlas.UnixStandardJob.py"
)
2
3
include(
"DetDescrCnvSvc/DetStore_joboptions.py"
)
4
5
DetDescrCnvSvc = Service(
"DetDescrCnvSvc"
)
6
DetDescrCnvSvc.DetectorManagers+= [
"CaloTTDescrManager"
]
7
DetDescrCnvSvc.DetectorManagers += [
"CaloMgr"
]
8
9
#
10
#---- ByteStream-Files input --------------------
11
#
12
13
14
include(
"TBCnv/TBReadH8BS_jobOptions.py"
)
15
ByteStreamInputSvc = 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/"]
20
ByteStreamInputSvc.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 #
23
ByteStreamInputSvc.FilePrefix += [
"daq_SFI-51_calo"
]
24
# Run number
25
#ByteStreamInputSvc.RunNumber = [1000853]
26
ByteStreamInputSvc.RunNumber = [1000944]
27
#ByteStreamInputSvc.RunNumber = [1000536]
28
29
30
ToolSvc.TBByteStreamCnvTool.Dump =
False
31
32
33
#---- LAr BS Reading & Reconstruction
34
include(
"LArTBRec/LArTBRec_H8_Simple_jobOptions.py"
)
35
theApp.Dlls+=[
"LArTools"
]
36
include(
"LArDetMgrDetDescrCnv/LArDetMgrDetDescrCnv_H8_joboptions.py"
)
37
LArRawChannelSimpleBuilder.RecoMode =
"CUBIC"
38
39
40
# make CaloCellContainer
41
doTile=
True
42
doSim=
False
43
doLArHVCorrection=
True
44
include (
"CaloTBRec/CaloTBRec_H8_Cell_jobOptions.py"
)
45
46
47
48
# --- TBRec --------------
49
theApp.Dlls += [
"TBRec"
]
50
51
theApp.TopAlg += [
"TBPhaseRec/TBPhaseRec"
]
52
TBPhaseRec = Algorithm(
"TBPhaseRec"
)
53
include(
"TBRec/H8PhaseRec_jobOptions.py"
)
54
62
63
64
theApp.TopAlg += [
"TBScintillatorRec"
]
65
TBScintRec = Algorithm(
"TBScintillatorRec"
)
66
TBScintRec.SGkey=
"ScintillatorRawCont"
67
include(
"TBRec/H8ScintRec_jobOptions.py"
)
68
theApp.TopAlg += [
"TBBPCRec"
]
69
TBBPCRec = Algorithm(
"TBBPCRec"
)
70
TBBPCRec.SGkey=
"BPCRawCont"
71
include(
"TBRec/H8BPCRec_jobOptions.py"
)
72
#theApp.TopAlg += ["TBPhaseRec/TBPhaseRec"]
73
#TBPhaseRec = Algorithm("TBPhaseRec")
74
#include( "TBRec/H8PhaseRec_jobOptions.py" )
75
76
theApp.Dlls += [
"CBNT_Utils"
]
77
theApp.Dlls += [
"CBNT_Athena"
]
78
theApp.TopAlg += [
"CBNT_Athena"
]
79
80
CBNT_Athena = Algorithm(
"CBNT_Athena"
)
81
CBNT_Athena.NtupleLocID=
"/FILE1/CBNT/t333"
82
83
CBNT_Athena.Members += [
"CBNT_BeamInstrumentation"
]
84
CBNT_BeamInstrumentation = Algorithm(
"CBNT_BeamInstrumentation"
)
85
CBNT_BeamInstrumentation.BPCnames=[
"BPC-2"
,
"BPC-1"
,
"BPC0"
,
"BPC1"
,
"BPC2"
];
86
CBNT_BeamInstrumentation.Scintnames=[
"S0"
,
"S1"
,
"S2-Up"
,
"S2-Down"
,
"S3-Left"
,
"S3-Right"
,
"C1"
,
"C2"
,
"muTag"
,
"muHalo"
,
"muVeto"
];
87
88
CBNT_Athena.Members += [
"CBNT_Timing"
]
89
CBNT_Timing = Algorithm(
"CBNT_Timing"
)
90
CBNT_Timing.EnergyCut = 2.*GeV
91
CBNT_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 += [ "AthSequencer/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
123
tdcbinnum = 100
124
tdcmin = 0
125
#tdcmax = 1023
126
tdcmax = 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 --
151
theApp.Dlls += [
"RootHistCnv"
]
152
theApp.HistogramPersistency =
"ROOT"
153
#HistogramPersistencySvc = Service( "HistogramPersistencySvc" )
154
#HistogramPersistencySvc.OutputFile = "test.root"
155
156
157
NTupleSvc = Service(
"NTupleSvc"
)
158
#NTOutputFileString="FILE1 DATAFILE='%(file)s' OPT='NEW'" % {"file" : NTOutputFileName}
159
NTupleSvc.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)
180
theApp.EvtMax = 1000
181
182
# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
183
MessageSvc = Service(
"MessageSvc"
)
184
MessageSvc.OutputLevel =5
185
186
AthenaEventLoopMgr = Service(
"AthenaEventLoopMgr"
)
187
AthenaEventLoopMgr.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
Generated on
for ATLAS Offline Software by
1.17.0