ATLAS Offline Software
TBReadH6ByteStream-Print.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 # include( "LArDetMgrDetDescrCnv/LArDetMgrDetDescrCnv_joboptions.py" )
10 include( "LArDetMgrDetDescrCnv/LArDetMgrDetDescrCnv_H6_joboptions.py" )
11 #
12 #---- ByteStream-Files input --------------------
13 #
14 
15 ToolSvc = Service( "ToolSvc" )
16 
17 include( "TBCnv/TBReadH6BS_jobOptions.py" )
18 ByteStreamInputSvc = Service( "ByteStreamInputSvc" )
19 # With H6 - See also TBReadH6BS_jobOptions.py !!
20 #ByteStreamInputSvc.inputFiles = ["bytestream.out"]
21 #ByteStreamInputSvc.inputFiles = ["/scratchdisk/rmcphers/data/run240.dat"]
22 #ByteStreamInputSvc.inputFiles = ["/scratchdisk/delsart/data/run462.bstr"]
23 ByteStreamInputSvc.inputFiles = ["/afs/cern.ch/atlas/offline/data/testfile/run431.bstr"]
24 #ByteStreamInputSvc.inputFiles = ["/scratchdisk1/h6data/run857.bstr"]
25 
26 
27 
28 ToolSvc.TBByteStreamCnvTool.Dump = TRUE
29 ToolSvc.TBByteStreamCnvTool.SummaryPath = "lastrun.txt"
30 
31 # --- TBRec --------------
32 theApp.Dlls += [ "TBRec" ]
33 
34 theApp.TopAlg += ["TBBPCRec/TBBPCRec"]
35 TBBPCRec = Algorithm("TBBPCRec")
36 include( "TBRec/H6BPCRec_jobOptions.py" )
37 
38 theApp.TopAlg += ["TBMWPCRec/TBMWPCRec"]
39 TBMWPCRec = Algorithm("TBMWPCRec")
40 include( "TBRec/H6MWPCRec_jobOptions.py" )
41 
42 
43 
44 # theApp.TopAlg += ["TBScintillatorRec"]
45 # TBScintRec = Algorithm("TBScintillatorRec")
46 # include( "TBRec/H6ScintRec_jobOptions.py" )
47 
48 # -- Dump TBLArDigits
49 
50 # theApp.TopAlg += ["ReadTBLArDigits"]
51 # ReadTBLArDigits = Algorithm( "ReadTBLArDigits" )
52 # ReadTBLArDigits.ContainerKey="MEDIUM"
53 # ReadTBLArDigits.DumpFile="TBLArDigits.txt"
54 # ReadTBLArDigits.PrintCellLocation=TRUE
55 # ReadTBLArDigits.OutputLevel=3
56 # NtupleSvc = Service( "NtupleSvc" )
57 # NtupleSvc.Output=["FILE1 DATAFILE='TBLArDigits.root' TYP='ROOT' OPT='NEW'"]
58 
59 # #--- Monitoring ---------------------------
60 theApp.TopAlg += [ "TBAlgoSequencer/Seq1" ]
61 theApp.Dlls += [ "GaudiAlg"]
62 
63 theApp.Dlls += [ "AthenaMonitoring"]
64 Seq1 = Algorithm( "Seq1" )
65 
66 Seq1.SubAlgorithms = [
67 # "LArDigitProcessor<TBLArDigitContainer>/TBLArDigProcessor"
68  "AthenaMon/TBMon1"
69  ,"AthenaMon/LArMon1"
70 ]
71 # Seq1.SubAlgorithms = ["TBBPCRec/TBBPCRec",
72 # # "ReadLArDigits",
73 # "AthenaMon/TBMon1",
74 # "AthenaMon/LArMon1"]
75 
76 theApp.Dlls += [ "TBMonitoring" ]
77 #theApp.Dlls += [ "LArMonitoring" ]
78 
79 TBMon1 = Algorithm( "TBMon1" )
80 #LArMon1 = Algorithm( "LArMon1" )
81 
82 tdcbinnum = 100
83 tdcmin = 0
84 tdcmax = 1023
85 
86 # ------------- BPC Monitor -------
87 TBMon1.AthenaMonTools += ["TBBPCMonTool/BPCmon"]
88 ToolSvc.BPCmon.MonitorBPC = FALSE
89 ToolSvc.BPCmon.MonitorBPCRaw = TRUE
90 ToolSvc.BPCmon.FakeDetectors = FALSE
91 # H6 BPCs
92 ToolSvc.BPCmon.BPCNames = ["BPC0","BPC1","BPC2","BPC3","BPC4","BPCAAA5"]
93 ToolSvc.BPCmon.BPCMaxPos = 10
94 ToolSvc.BPCmon.BPCMinPos = -10
95 ToolSvc.BPCmon.BPCBinNum = 100
96 
97 ToolSvc.BPCmon.TDCBinNum = tdcbinnum
98 ToolSvc.BPCmon.TDCMax = tdcmax
99 ToolSvc.BPCmon.TDCMin = tdcmin
100 
101 # ------------- MWPC Monitor -------
102 TBMon1.AthenaMonTools += ["TBMWPCMonTool/MWPCmon"]
103 ToolSvc.BPCmon.MonitorBPC = FALSE
104 ToolSvc.BPCmon.MonitorBPCRaw = TRUE
105 ToolSvc.BPCmon.FakeDetectors = FALSE
106 
107 
108 # ------------- Scint Monitor -------
109 TBMon1.AthenaMonTools += ["TBScintillatorMonTool/Scintmon"]
110 ToolSvc.Scintmon.FakeDetectors = FALSE
111 # H6 scint names :
112 ToolSvc.Scintmon.ScintNames = ["S1","S2","S3","Veto","Halo","B","muon1","muon2","muon3","muon4","muon5","muon6","muon7","muon8",]
113 ToolSvc.Scintmon.TDCBinNum = tdcbinnum
114 ToolSvc.Scintmon.TDCMax = tdcmax
115 ToolSvc.Scintmon.TDCMin = tdcmin
116 
117 #------------- ADC Monitor -------
118 # TBMon1.AthenaMonTools += ["TBADCRawMonTool/ADCmon"]
119 # ToolSvc.ADCmon.TestADCMonTool = FALSE
120 # include( "TBCnv/H6ADCChannelNames.py" ) # list of ADC
121 # ToolSvc.ADCmon.ADCBinNum = tdcbinnum
122 # ToolSvc.ADCmon.ADCMax = tdcmax
123 # ToolSvc.ADCmon.ADCMin = tdcmin
124 
125 # # #------------- TDC Monitor -------
126 # TBMon1.AthenaMonTools += ["TBTDCRawMonTool/TDCmon"]
127 # ToolSvc.TDCmon.TestTDCMonTool = FALSE
128 # include( "TBCnv/H6TDCChannelNames.py" ) # list of TDC
129 # ToolSvc.TDCmon.TDCBinNum = tdcbinnum
130 # ToolSvc.TDCmon.TDCMax = tdcmax
131 # ToolSvc.TDCmon.TDCMin = tdcmin
132 
133 # #------------- TBLArDigitMonitoring -------------
134 # LArMon1.AthenaMonTools += ["LArDigMonTool<LArDigitContainer>/pedmon0"]
135 # ToolSvc.pedmon0.histoPathBase = "/stat/pedsamp0"
136 # ToolSvc.pedmon0.digitKey = "MEDIUM"
137 # #ToolSvc.pedmon0.maxSamp = 3
138 # ToolSvc.pedmon0.pedMode = "SAMPLE"
139 # ToolSvc.pedmon0.pedSamp = 0
140 # ToolSvc.pedmon0.OutputLevel = 3
141 # ToolSvc.pedmon0.adcCut = 25
142 #ToolSvc.pedmon0.OutputLevel = 2
143 
144 
145 TBMon1.AthenaMonTools += ["TBTailCatcherRawMonTool/TCmon"]
146 ToolSvc.TCmon.TailCatcherBinNum = tdcbinnum
147 ToolSvc.TCmon.TailCatcherMax = tdcmax
148 ToolSvc.TCmon.TailCatcherMin = tdcmin
149 
150 # -- use root histos --
151 theApp.Dlls += [ "RootHistCnv" ]
152 theApp.HistogramPersistency = "ROOT"
153 HistogramPersistencySvc = Service( "HistogramPersistencySvc" )
154 #HistogramPersistencySvc.OutputFile = "/scratchdisk/delsart/test.root"
155 HistogramPersistencySvc.OutputFile = "test.root"
156 
157 # -- Use auditors --
158 #theApp.Dlls += [ "GaudiAud" ]
159 # write out a summary of the time spent
160 #
161 #theAuditorSvc = AuditorSvc()
162 #theAuditorSvc.Auditors += [ "ChronoAuditor"]
163 # write out a short message upon entering or leaving each algorithm
164 #
165 # AuditorSvc.Auditors += { "NameAuditor" };
166 #-------------------------------------------------------------------------
167 # user driving parameters
168 #
169 # Number of events to be processed (default is 10)
170 theApp.EvtMax = 310
171 
172 # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
173 MessageSvc = Service( "MessageSvc" )
174 MessageSvc.OutputLevel =3
175 ToolSvc.TBByteStreamCnvTool.OutputLevel =2
176 ToolSvc.BPCmon.OutputLevel =3
177 ToolSvc.MWPCmon.OutputLevel =3
178 ToolSvc.Scintmon.OutputLevel =4
179 ToolSvc.TCmon.OutputLevel =4
180 
181 TBBPCRec.OutputLevel =3
182 
183 # Dump all objects available
184 #StoreGateSvc = Service( "StoreGateSvc" )
185 #StoreGateSvc.Dump = TRUE
python.Include.include
include
Definition: Include.py:318