ATLAS Offline Software
Loading...
Searching...
No Matches
TBReadH8ByteStream-Monitor_jobOptions.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" ]
8include( "LArDetMgrDetDescrCnv/LArDetMgrDetDescrCnv_H8_joboptions.py" )
9
10#
11#---- ByteStream-Files input --------------------
12#
13
14
15include( "TBCnv/TBReadH8BS_jobOptions.py" )
16ByteStreamInputSvc = Service( "ByteStreamInputSvc" )
17
18# With H8 : - See also TBReadH8BS_jobOptions.py !!
19#ByteStreamInputSvc.InputDirectory += ["/afs/cern.ch/user/d/delsart/myAthena/Reconstruction/RecExample/RecExCommon/RecExCommon-00-01-26/run"]
20#ByteStreamInputSvc.InputDirectory += ["/castor/cern.ch/atlas/testbeam/tilecal/2004/daq/"]
21ByteStreamInputSvc.InputDirectory += ["/castor/cern.ch/atlas/testbeam/combined/2004/"]
22#ByteStreamInputSvc.InputDirectory += ["/afs/cern.ch/user/d/delsart/myAthena/Reconstruction/RecExample/RecExTB/RecExTB-00-00-27/run"]
23# Prefix #
24ByteStreamInputSvc.FilePrefix += ["daq_SFI-51_calo"]
25# Run number
26#ByteStreamInputSvc.RunNumber = [1000853]
27ByteStreamInputSvc.RunNumber = [1000613]
28#ByteStreamInputSvc.RunNumber = [1000536]
29
30
31ToolSvc.TBByteStreamCnvTool.Dump = False
32
33# --- TBRec --------------
34theApp.Dlls += [ "TBRec" ]
35
36
46
47
48
49
50
51theApp.TopAlg += ["TBBPCRec/TBBPCRec"]
52TBBPCRec = Algorithm("TBBPCRec")
53TBBPCRec.SGkey="BPCRawCont"
54include( "TBRec/H8BPCRec_jobOptions.py" )
55TBBPCRec.CalibFileName = "H8BPCCalib.txt"
56
57theApp.TopAlg += ["TBScintillatorRec"]
58TBScintRec = Algorithm("TBScintillatorRec")
59include( "TBRec/H8ScintRec_jobOptions.py" )
60
61
62#--- Monitoring ---------------------------
63theApp.Dlls += [ "AthenaMonitoring"]
64theApp.TopAlg += [ "AthenaMon/athenamon" ]
65theApp.Dlls += [ "TBMonitoring" ]
66athenamon = Algorithm( "athenamon" )
67#athenamon.AthenaMonTools = ["BeamDetectorMonTool/beamdetmon"]
68
69tdcbinnum = 100
70tdcmin = 0
71#tdcmax = 1023
72tdcmax = 4096
73
74# ------------- BPC Monitor -------
75athenamon.AthenaMonTools += ["TBBPCMonTool/BPCmon"]
76ToolSvc.BPCmon.MonitorBPC = TRUE
77ToolSvc.BPCmon.MonitorBPCRaw = TRUE
78ToolSvc.BPCmon.FakeDetectors = FALSE
79# H8 BPCs
80ToolSvc.BPCmon.BPCNames = ["BPC-1","BPC0","BPC1","BPC2"]
81#ToolSvc.BPCmon.BPCNames = ["BPC-2","BPC-1","BPC0"]
82ToolSvc.BPCmon.BPCMaxPos = 40
83ToolSvc.BPCmon.BPCMinPos = -40
84ToolSvc.BPCmon.BPCBinNum = 100
85
86ToolSvc.BPCmon.BookAtFirstEvent = FALSE # If false, histos are booked before 1st event (no run number in histo title)
87
88ToolSvc.BPCmon.TDCBinNum = tdcbinnum
89ToolSvc.BPCmon.TDCMax = tdcmax
90ToolSvc.BPCmon.TDCMin = tdcmin
91
92# ------------- Scint Monitor -------
93athenamon.AthenaMonTools += ["TBScintillatorMonTool/Scintmon"]
94ToolSvc.Scintmon.FakeDetectors = FALSE
95# H8 scint names :
96ToolSvc.Scintmon.ScintNames = ["S0","S1","S2-Up","S2-Down","S3-Left","S3-Right","C1","C2","muTag","muHalo","muVeto"
97 "SC1","SC2","MuWall0","MuWall1","MuWall2","MuWall3","MuWall4","MuWall5","MuWall6","MuWall7",
98 "MuWall8","MuWall9","MuWall10","MuWall11"]
99
100
101# TDC range : 0-4096; 1 TDC=35 ps -> 0-1434
102# No pedestals yet.
103ToolSvc.Scintmon.BookAtFirstEvent = FALSE # If false, histos are booked before 1st event (no run number in histo title)
104ToolSvc.Scintmon.TDCBinNum = 300
105ToolSvc.Scintmon.TDCMax = 150
106ToolSvc.Scintmon.TDCMin = 0
107
108# ------------- ADC Monitor -------
109athenamon.AthenaMonTools += ["TBADCRawMonTool/ADCmon"]
110include( "TBCnv/H8ADCChannelNames.py" )
111ToolSvc.ADCmon.TestADCMonTool = FALSE
112ToolSvc.ADCmon.ADCBinNum = tdcbinnum
113ToolSvc.ADCmon.ADCMax = tdcmax
114ToolSvc.ADCmon.ADCMin = tdcmin
115
116# ------------- TDC Monitor -------
117athenamon.AthenaMonTools += ["TBTDCRawMonTool/TDCmon"]
118include( "TBCnv/H8TDCChannelNames.py" )
119ToolSvc.TDCmon.TestTDCMonTool = FALSE
120ToolSvc.TDCmon.TDCBinNum = tdcbinnum
121ToolSvc.TDCmon.TDCMax = tdcmax
122ToolSvc.TDCmon.TDCMin = tdcmin
123
124
125#ToolSvc.beamdetmon.TriggFlags = {0x00000001,0x00000002,0x00000004,0x00000008,0x00000010,0x00000011};
126#ToolSvc.beamdetmon.TriggFlags = [1,2,4,8,16,32]
127
128
129# -- use root histos --
130theApp.Dlls += [ "RootHistCnv" ]
131theApp.HistogramPersistency = "ROOT"
132HistogramPersistencySvc = Service( "HistogramPersistencySvc" )
133HistogramPersistencySvc.OutputFile = "test.root"
134
135
136
137
138# -- Use auditors --
139#theApp.Dlls += [ "GaudiAud" ]
140# write out a summary of the time spent
141#
142#theAuditorSvc = AuditorSvc()
143#theAuditorSvc.Auditors += [ "ChronoAuditor"]
144# write out a short message upon entering or leaving each algorithm
145#
146# AuditorSvc.Auditors += { "NameAuditor" };
147#-------------------------------------------------------------------------
148
149# user driving parameters
150#
151
152# Number of events to be processed (default is 10)
153theApp.EvtMax = 100
154
155# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
156MessageSvc = Service( "MessageSvc" )
157MessageSvc.OutputLevel =3
158
159AthenaEventLoopMgr = Service( "AthenaEventLoopMgr" )
160AthenaEventLoopMgr.OutputLevel =3
161ToolSvc.TBByteStreamCnvTool.OutputLevel =3
162ToolSvc.BPCmon.OutputLevel =3
163ToolSvc.Scintmon.OutputLevel =3
164ToolSvc.ADCmon.OutputLevel =3
165ToolSvc.Scintmon.OutputLevel =3
166TBScintRec.OutputLevel =3
167TBBPCRec.OutputLevel=3;
168# Dump all objects available
169#StoreGateSvc=Service("StoreGateSvc")
170#StoreGateSvc.Dump = True