ATLAS Offline Software
TBReadH8ByteStream-Monitor_jobOptions.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 include( "LArDetMgrDetDescrCnv/LArDetMgrDetDescrCnv_H8_joboptions.py" )
9 
10 #
11 #---- ByteStream-Files input --------------------
12 #
13 
14 
15 include( "TBCnv/TBReadH8BS_jobOptions.py" )
16 ByteStreamInputSvc = 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/"]
21 ByteStreamInputSvc.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 #
24 ByteStreamInputSvc.FilePrefix += ["daq_SFI-51_calo"]
25 # Run number
26 #ByteStreamInputSvc.RunNumber = [1000853]
27 ByteStreamInputSvc.RunNumber = [1000613]
28 #ByteStreamInputSvc.RunNumber = [1000536]
29 
30 
31 ToolSvc.TBByteStreamCnvTool.Dump = False
32 
33 # --- TBRec --------------
34 theApp.Dlls += [ "TBRec" ]
35 
36 
46 
47 
48 
49 
50 
51 theApp.TopAlg += ["TBBPCRec/TBBPCRec"]
52 TBBPCRec = Algorithm("TBBPCRec")
53 TBBPCRec.SGkey="BPCRawCont"
54 include( "TBRec/H8BPCRec_jobOptions.py" )
55 TBBPCRec.CalibFileName = "H8BPCCalib.txt"
56 
57 theApp.TopAlg += ["TBScintillatorRec"]
58 TBScintRec = Algorithm("TBScintillatorRec")
59 include( "TBRec/H8ScintRec_jobOptions.py" )
60 
61 
62 #--- Monitoring ---------------------------
63 theApp.Dlls += [ "AthenaMonitoring"]
64 theApp.TopAlg += [ "AthenaMon/athenamon" ]
65 theApp.Dlls += [ "TBMonitoring" ]
66 athenamon = Algorithm( "athenamon" )
67 #athenamon.AthenaMonTools = ["BeamDetectorMonTool/beamdetmon"]
68 
69 tdcbinnum = 100
70 tdcmin = 0
71 #tdcmax = 1023
72 tdcmax = 4096
73 
74 # ------------- BPC Monitor -------
75 athenamon.AthenaMonTools += ["TBBPCMonTool/BPCmon"]
76 ToolSvc.BPCmon.MonitorBPC = TRUE
77 ToolSvc.BPCmon.MonitorBPCRaw = TRUE
78 ToolSvc.BPCmon.FakeDetectors = FALSE
79 # H8 BPCs
80 ToolSvc.BPCmon.BPCNames = ["BPC-1","BPC0","BPC1","BPC2"]
81 #ToolSvc.BPCmon.BPCNames = ["BPC-2","BPC-1","BPC0"]
82 ToolSvc.BPCmon.BPCMaxPos = 40
83 ToolSvc.BPCmon.BPCMinPos = -40
84 ToolSvc.BPCmon.BPCBinNum = 100
85 
86 ToolSvc.BPCmon.BookAtFirstEvent = FALSE # If false, histos are booked before 1st event (no run number in histo title)
87 
88 ToolSvc.BPCmon.TDCBinNum = tdcbinnum
89 ToolSvc.BPCmon.TDCMax = tdcmax
90 ToolSvc.BPCmon.TDCMin = tdcmin
91 
92 # ------------- Scint Monitor -------
93 athenamon.AthenaMonTools += ["TBScintillatorMonTool/Scintmon"]
94 ToolSvc.Scintmon.FakeDetectors = FALSE
95 # H8 scint names :
96 ToolSvc.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.
103 ToolSvc.Scintmon.BookAtFirstEvent = FALSE # If false, histos are booked before 1st event (no run number in histo title)
104 ToolSvc.Scintmon.TDCBinNum = 300
105 ToolSvc.Scintmon.TDCMax = 150
106 ToolSvc.Scintmon.TDCMin = 0
107 
108 # ------------- ADC Monitor -------
109 athenamon.AthenaMonTools += ["TBADCRawMonTool/ADCmon"]
110 include( "TBCnv/H8ADCChannelNames.py" )
111 ToolSvc.ADCmon.TestADCMonTool = FALSE
112 ToolSvc.ADCmon.ADCBinNum = tdcbinnum
113 ToolSvc.ADCmon.ADCMax = tdcmax
114 ToolSvc.ADCmon.ADCMin = tdcmin
115 
116 # ------------- TDC Monitor -------
117 athenamon.AthenaMonTools += ["TBTDCRawMonTool/TDCmon"]
118 include( "TBCnv/H8TDCChannelNames.py" )
119 ToolSvc.TDCmon.TestTDCMonTool = FALSE
120 ToolSvc.TDCmon.TDCBinNum = tdcbinnum
121 ToolSvc.TDCmon.TDCMax = tdcmax
122 ToolSvc.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 --
130 theApp.Dlls += [ "RootHistCnv" ]
131 theApp.HistogramPersistency = "ROOT"
132 HistogramPersistencySvc = Service( "HistogramPersistencySvc" )
133 HistogramPersistencySvc.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)
153 theApp.EvtMax = 100
154 
155 # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
156 MessageSvc = Service( "MessageSvc" )
157 MessageSvc.OutputLevel =3
158 
159 AthenaEventLoopMgr = Service( "AthenaEventLoopMgr" )
160 AthenaEventLoopMgr.OutputLevel =3
161 ToolSvc.TBByteStreamCnvTool.OutputLevel =3
162 ToolSvc.BPCmon.OutputLevel =3
163 ToolSvc.Scintmon.OutputLevel =3
164 ToolSvc.ADCmon.OutputLevel =3
165 ToolSvc.Scintmon.OutputLevel =3
166 TBScintRec.OutputLevel =3
167 TBBPCRec.OutputLevel=3;
168 # Dump all objects available
169 #StoreGateSvc=Service("StoreGateSvc")
170 #StoreGateSvc.Dump = True
python.FakeAthena.Algorithm
def Algorithm(name)
Definition: FakeAthena.py:41
python.FakeAthena.Service
def Service(name)
Definition: FakeAthena.py:38
python.Include.include
include
Definition: Include.py:319