ATLAS Offline Software
TBReadH6ByteStream-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 
9 include( "LArDetMgrDetDescrCnv/LArDetMgrDetDescrCnv_H6_joboptions.py" )
10 
11 #
12 #---- ByteStream-Files input --------------------
13 #
14 
15 
16 include( "TBCnv/TBReadH6BS_jobOptions.py" )
17 ByteStreamInputSvc = Service( "ByteStreamInputSvc" )
18 #ByteStreamInputSvc.inputFiles = ["MyRawEvent.re"]
19 # With H6 - See also TBReadH6BS_jobOptions.py !!
20 #ByteStreamInputSvc.inputFiles = ["bytestream.out"]
21 ByteStreamInputSvc.inputFiles = ["/scratchdisk/rmcphers/data/run370.dat"]
22 
23 ToolSvc.TBByteStreamCnvTool.Dump = TRUE
24 
25 # --- TBRec --------------
26 theApp.Dlls += [ "TBRec" ]
27 
28 theApp.TopAlg += ["TBBPCRec/TBBPCRec"]
29 TBBPCRec = Algorithm("TBBPCRec")
30 include( "TBRec/H6BPCRec_jobOptions.py" )
31 
32 theApp.TopAlg += ["TBScintillatorRec"]
33 TBScintRec = Algorithm("TBScintillatorRec")
34 include( "TBRec/H6ScintRec_jobOptions.py" )
35 
36 
37 #--- Monitoring ---------------------------
38 theApp.TopAlg += [ "TBAlgoSequencer/Seq1" ]
39 theApp.Dlls += [ "GaudiAlg"]
40 
41 theApp.Dlls += [ "AthenaMonitoring"]
42 Seq1 = Algorithm( "Seq1" )
43 
44 Seq1.SubAlgorithms = ["AthenaMon/athenamon"]
45 
46 theApp.Dlls += [ "TBMonitoring" ]
47 
48 athenamon = Algorithm( "athenamon" )
49 
50 tdcbinnum = 100
51 tdcmin = 0
52 tdcmax = 1023
53 
54 #------------- BPC Monitor -------
55 athenamon.AthenaMonTools += ["TBBPCMonTool/BPCmon"]
56 ToolSvc.BPCmon.MonitorBPC = TRUE
57 ToolSvc.BPCmon.MonitorBPCRaw = FALSE
58 ToolSvc.BPCmon.FakeDetectors = FALSE
59 #H6 BPCs
60 ToolSvc.BPCmon.BPCNames = ["BPC0","BPC1","BPC2","BPC3","BPC4","BPC5"]
61 ToolSvc.BPCmon.BPCMaxPos = 10
62 ToolSvc.BPCmon.BPCMinPos = -10
63 ToolSvc.BPCmon.BPCBinNum = 100
64 
65 ToolSvc.BPCmon.TDCBinNum = tdcbinnum
66 ToolSvc.BPCmon.TDCMax = tdcmax
67 ToolSvc.BPCmon.TDCMin = tdcmin
68 
69 # # ------------- Scint Monitor -------
70 athenamon.AthenaMonTools += ["TBScintillatorMonTool/Scintmon"]
71 ToolSvc.Scintmon.FakeDetectors = FALSE
72 #H6 scint names :
73 ToolSvc.Scintmon.ScintNames = ["S1","S2","S3","B","Veto","Halo","muon1","muon2","muon3","muon4","muon5","muon6","muon7","muon8",]
74 
75 ToolSvc.Scintmon.TDCBinNum = tdcbinnum
76 ToolSvc.Scintmon.TDCMax = tdcmax
77 ToolSvc.Scintmon.TDCMin = tdcmin
78 
79 # ------------- ADC Monitor -------
80 athenamon.AthenaMonTools += ["TBADCRawMonTool/ADCmon"]
81 ToolSvc.ADCmon.TestADCMonTool = FALSE
82 include( "TBCnv/H6ADCChannelNames.py" ) # list of ADC
83 ToolSvc.ADCmon.ADCBinNum = tdcbinnum
84 ToolSvc.ADCmon.ADCMax = tdcmax
85 ToolSvc.ADCmon.ADCMin = tdcmin
86 
87 # ------------- TDC Monitor -------
88 athenamon.AthenaMonTools += ["TBTDCRawMonTool/TDCmon"]
89 ToolSvc.TDCmon.TestTDCMonTool = FALSE
90 include( "TBCnv/H6TDCChannelNames.py" ) # list of TDC
91 ToolSvc.TDCmon.TDCBinNum = tdcbinnum
92 ToolSvc.TDCmon.TDCMax = tdcmax
93 ToolSvc.TDCmon.TDCMin = tdcmin
94 
95 
96 
97 #ToolSvc.beamdetmon.TriggFlags = {0x00000001,0x00000002,0x00000004,0x00000008,0x00000010,0x00000011};
98 #ToolSvc.beamdetmon.TriggFlags = [1,2,4,8,16,32]
99 
100 
101 # -- use root histos --
102 theApp.Dlls += [ "RootHistCnv" ]
103 theApp.HistogramPersistency = "ROOT"
104 HistogramPersistencySvc = Service( "HistogramPersistencySvc" )
105 HistogramPersistencySvc.OutputFile = "test.root"
106 
107 
108 
109 
110 # -- Use auditors --
111 #theApp.Dlls += [ "GaudiAud" ]
112 # write out a summary of the time spent
113 #
114 #theAuditorSvc = AuditorSvc()
115 #theAuditorSvc.Auditors += [ "ChronoAuditor"]
116 # write out a short message upon entering or leaving each algorithm
117 #
118 # AuditorSvc.Auditors += { "NameAuditor" };
119 #-------------------------------------------------------------------------
120 # user driving parameters
121 #
122 # Number of events to be processed (default is 10)
123 theApp.EvtMax = 10
124 
125 # Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
126 MessageSvc = Service( "MessageSvc" )
127 MessageSvc.OutputLevel =3
128 ToolSvc.TBByteStreamCnvTool.OutputLevel =3
129 ToolSvc.BPCmon.OutputLevel =3
130 ToolSvc.Scintmon.OutputLevel =3
131 
132 # Dump all objects available
133 #StoreGateSvc = Service( "StoreGateSvc" )
134 #StoreGateSvc.Dump = TRUE
python.Include.include
include
Definition: Include.py:318