17 from AthenaCommon.Logging
import logging
18 log = logging.getLogger(
"TIDAMonitoring")
20 log.info(
"Creating TIDA monitoring: " + name )
21 log.info(
" mcTruth: " +
str(mcTruth) )
26 if monlevel
is not None:
27 log.info(
"TIDA monitoring not None: monlevel: " + monlevel )
31 elif "shifter" in monlevel:
38 TIDAelectron( flags, key, toolkey, tools, monlevel, mcTruth )
39 TIDAmuon( flags, key, toolkey, tools, monlevel, mcTruth )
40 TIDAtau( flags, key, toolkey, tools, monlevel, mcTruth )
41 TIDAbjet( flags, key, toolkey, tools, monlevel, mcTruth )
42 TIDAminbias( flags, key, toolkey, tools, monlevel, mcTruth )
43 TIDAcosmic( flags, key, toolkey, tools, monlevel, mcTruth )
44 TIDAbphys( flags, key, toolkey, tools, monlevel, mcTruth )
45 TIDAutt( flags, key, toolkey, tools, monlevel, mcTruth )
69 def TIDAsignature( flags, signature, key, toolkey, tools, monlevel, mcTruth, chain_regex ) :
72 tida =
TrigR3Mon_builder( flags, name =
"ID"+signature+
"Truth"+toolkey+
"Tool", mcTruth=
True, pdgID=11 )
73 tida.SliceTag =
"HLT/TRIDT/"+signature+
"Truth/"+key
75 tida =
TrigR3Mon_builder( flags, name =
"ID"+signature+toolkey+
"Tool", useHighestPT=
True )
76 tida.SliceTag =
"HLT/TRIDT/"+signature+
"/"+key
78 tida.AnalysisConfig =
"Tier0"
80 from TrigInDetMonitoring.TIDAChains
import getchains
82 chains =
getchains( flags, chain_regex, monlevel )
87 tida.ntupleChainNames = chains
99 def TIDAelectron( flags, key, toolkey, tools, monlevel, mcTruth ) :
104 tidaegamma =
TrigR3Mon_builder( flags, name =
"IDEgammaTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=11 )
105 tidaegamma.SliceTag =
"HLT/TRIDT/EgammaTruth/"+key
107 tidaegamma =
TrigR3Mon_builder( flags, name =
"IDEgamma"+toolkey+
"Tool", useHighestPT=
True )
108 tidaegamma.SliceTag =
"HLT/TRIDT/Egamma/"+key
110 tidaegamma.AnalysisConfig =
"Tier0"
112 from TrigInDetMonitoring.TIDAChains
import getchains
115 [
"HLT_e.(?!.*lrtloose.*).*idperf(?!.*lrtloose.*).*:key=HLT_IDTrack_Electron_FTF:roi=HLT_Roi_FastElectron",
116 "HLT_e.(?!.*lrtloose.*).*idperf(?!.*lrtloose.*).*:key=HLT_IDTrack_Electron_IDTrig",
117 "HLT_e.(?!.*lrtloose.*).*idperf(?!.*lrtloose.*)(?!.*nogsf.*).*:key=HLT_IDTrack_Electron_GSF",
118 "HLT_e.*idperf.*ion.*:key=HLT_IDTrack_Electron_FTF:roi=HLT_Roi_FastElectron",
119 "HLT_e.*idperf.*ion.*:key=HLT_IDTrack_Electron_FTF",
120 "HLT_e.*idperf.*ion.*:key=HLT_IDTrack_Electron_IDTrig",
121 "HLT_e.*_lhtight.*_e.*_idperf_tight_nogsf_probe_.*inv.*:key=HLT_IDTrack_Electron_FTF:roi=HLT_Roi_FastElectron:te=1",
122 "HLT_e.*_lhtight.*_e.*_idperf_tight_nogsf_probe_.*inv.*:key=HLT_IDTrack_Electron_FTF:extra=el_tag:roi=HLT_Roi_FastElectron:te=0",
123 "HLT_e.*_lhtight.*_e.*_idperf_tight_nogsf_probe_.*inv.*:key=HLT_IDTrack_Electron_FTF:extra=el_probe:roi=HLT_Roi_FastElectron:te=1",
124 "HLT_e.*_lhtight.*_e.*_idperf_tight_nogsf_probe_.*inv.*:key=HLT_IDTrack_Electron_IDTrig:te=1",
125 "HLT_e.*_lhtight.*_e.*_idperf_tight_nogsf_probe_.*inv.*:key=HLT_IDTrack_Electron_IDTrig:extra=el_tag:te=0",
126 "HLT_e.*_lhtight.*_e.*_idperf_tight_nogsf_probe_.*inv.*:key=HLT_IDTrack_Electron_IDTrig:extra=el_probe:te=1",
127 "HLT_e.*_lhtight.*_e.*_idperf_tight_probe_.*inv.*:key=HLT_IDTrack_Electron_GSF:te=1",
128 "HLT_e.*_lhtight.*_e.*_idperf_tight_probe_.*inv.*:key=HLT_IDTrack_Electron_GSF:extra=el_tag:te=0",
129 "HLT_e.*_lhtight.*_e.*_idperf_tight_probe_.*inv.*:key=HLT_IDTrack_Electron_GSF:extra=el_probe:te=1" ], monlevel )
133 tidaegamma.ntupleChainNames = chains
135 tidaegamma.MonTools =
createMonTools( flags, tidaegamma.SliceTag, chains )
137 tools += [ tidaegamma ]
144 tidaegammalrt =
TrigR3Mon_builder( flags, name =
"IDEgammaLRTTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=11 )
145 tidaegammalrt.SliceTag =
"HLT/TRIDT/EgammaLRTTruth/"+key
147 tidaegammalrt =
TrigR3Mon_builder( flags, name =
"IDEgammaLRT"+toolkey+
"Tool", useHighestPT=
True )
148 tidaegammalrt.SliceTag =
"HLT/TRIDT/EgammaLRT/"+key
150 tidaegammalrt.AnalysisConfig =
"Tier0"
151 tidaegammalrt.mind0CutOffline = 2.
153 from TrigInDetMonitoring.TIDAChains
import getchains
156 [
"HLT_e.*idperf_loose_lrtloose.*:key=HLT_IDTrack_ElecLRT_FTF:roi=HLT_Roi_FastElectron_LRT",
157 "HLT_e.*idperf_loose_lrtloose.*:key=HLT_IDTrack_ElecLRT_IDTrig:roi=HLT_Roi_FastElectron_LRT",
158 "HLT_e.*lrtloose_idperf.*:key=HLT_IDTrack_ElecLRT_FTF:roi=HLT_Roi_FastElectron_FTF",
159 "HLT_e.*lrtloose_idperf.*:key=HLT_IDTrack_ElecLRT_IDTrig:roi=HLT_Roi_FastElectron_LRT",
164 tidaegammalrt.ntupleChainNames = chains
165 tidaegammalrt.ntupleChainNames += [
"Offline",
"Offline:+InDetLargeD0TrackParticles" ]
167 tidaegammalrt.MonTools =
createMonTools( flags, tidaegammalrt.SliceTag, chains )
169 tools += [ tidaegammalrt ]
174 def TIDAmuon( flags, key, toolkey, tools, monlevel, mcTruth ) :
179 tidamuon =
TrigR3Mon_builder( flags, name =
"IDMuonTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=13 )
180 tidamuon.SliceTag =
"HLT/TRIDT/MuonTruth/"+key
182 tidamuon =
TrigR3Mon_builder( flags, name =
"IDMuon"+toolkey+
"Tool", useHighestPT=
True )
183 tidamuon.SliceTag =
"HLT/TRIDT/Muon/"+key
185 tidamuon.AnalysisConfig =
"Tier0"
187 from TrigInDetMonitoring.TIDAChains
import getchains
190 [
"HLT_mu(?!.*LRT.*)(?!.*tau.*).*_idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon",
191 "HLT_mu(?!.*LRT.*)(?!.*tau.*).*_idperf.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon",
192 "HLT_mu.*ivarperf.*:key=HLT_IDTrack_MuonIso_FTF:roi=HLT_Roi_MuonIso",
193 "HLT_mu.*ivarperf.*:key=HLT_IDTrack_MuonIso_IDTrig:roi=HLT_Roi_MuonIso",
194 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon",
195 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon",
196 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon",
197 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon",
198 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:te=1",
199 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:te=1",
200 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=mu_tag:te=0",
201 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=mu_probe:te=1",
202 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:extra=mu_tag:te=0",
203 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:extra=mu_probe:te=1",
204 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:te=1",
205 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:te=1",
206 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=mu_tag:te=0",
207 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=mu_probe:te=1",
208 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:extra=mu_tag:te=0",
209 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:extra=mu_probe:te=1" ], monlevel )
213 tidamuon.ntupleChainNames = chains
215 tidamuon.MonTools =
createMonTools( flags, tidamuon.SliceTag, chains )
217 tools += [ tidamuon ]
224 tidamuonlrt =
TrigR3Mon_builder(flags, name =
"IDMuonLRTTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=13 )
225 tidamuonlrt.SliceTag =
"HLT/TRIDT/MuonLRTTruth/"+key
227 tidamuonlrt =
TrigR3Mon_builder( flags, name =
"IDMuonLRT"+toolkey+
"Tool", useHighestPT=
True )
228 tidamuonlrt.SliceTag =
"HLT/TRIDT/MuonLRT/"+key
230 tidamuonlrt.AnalysisConfig =
"Tier0"
231 tidamuonlrt.mind0CutOffline = 2.
233 from TrigInDetMonitoring.TIDAChains
import getchains
236 [
"HLT_mu.*_LRT_idperf.*:key=HLT_IDTrack_MuonLRT_FTF:roi=HLT_Roi_L2SAMuon_LRT",
237 "HLT_mu.*_LRT_idperf.*:key=HLT_IDTrack_MuonLRT_IDTrig:roi=HLT_Roi_L2SAMuon_LRT"], monlevel )
241 tidamuonlrt.ntupleChainNames = chains
242 tidamuonlrt.ntupleChainNames += [
"Offline",
"Offline:+InDetLargeD0TrackParticles" ]
244 tidamuonlrt.MonTools =
createMonTools( flags, tidamuonlrt.SliceTag, chains )
246 tools += [ tidamuonlrt ]
252 def TIDAtau( flags, key, toolkey, tools, monlevel, mcTruth ) :
257 tidatau =
TrigR3Mon_builder( flags, name =
"IDTauTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=15 )
258 tidatau.SliceTag =
"HLT/TRIDT/TauTruth/"+key
260 tidatau =
TrigR3Mon_builder( flags, name =
"IDTau"+toolkey+
"Tool", useHighestPT=
True )
261 tidatau.SliceTag =
"HLT/TRIDT/Tau/"+key
263 tidatau.AnalysisConfig =
"Tier0"
265 from TrigInDetMonitoring.TIDAChains
import getchains
268 [
"HLT_tau.*idperf.*tracktwoMVA_.*:key=HLT_IDTrack_TauCore_FTF:roi=HLT_Roi_TauCore",
269 "HLT_tau.*idperf.*tracktwoMVA_.*:key=HLT_IDTrack_TauIso_FTF:roi=HLT_Roi_TauIso",
270 "HLT_tau.*idperf.*tracktwoMVA_.*:key=HLT_IDTrack_Tau_IDTrig:roi=HLT_Roi_TauIso",
271 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_TauCore_FTF:roi=HLT_Roi_TauCore",
272 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_TauIso_FTF:roi=HLT_Roi_TauIso",
273 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_Tau_IDTrig:roi=HLT_Roi_TauIso",
274 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=tau1_tag:te=0",
275 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_TauCore_FTF:roi=HLT_Roi_TauCore:extra=tau1_probe:te=1",
276 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=tau0_tag:te=0",
277 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_TauIso_FTF:roi=HLT_Roi_TauIso:extra=tau0_probe:te=1",
278 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:extra=tau_tag:te=0",
279 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_Tau_IDTrig:roi=HLT_Roi_TauIso:extra=tau_probe:te=1" ], monlevel )
283 tidatau.ntupleChainNames = chains
285 tidatau.MonTools =
createMonTools( flags, tidatau.SliceTag, chains )
293 tidataulrt =
TrigR3Mon_builder(flags, name =
"IDTauLRTTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=15 )
294 tidataulrt.SliceTag =
"HLT/TRIDT/TauLRTTruth/"+key
296 tidataulrt =
TrigR3Mon_builder( flags, name =
"IDTauLRT"+toolkey+
"Tool", useHighestPT=
True )
297 tidataulrt.SliceTag =
"HLT/TRIDT/TauLRT/"+key
299 tidataulrt.AnalysisConfig =
"Tier0"
300 tidataulrt.mind0CutOffline = 2.
302 from TrigInDetMonitoring.TIDAChains
import getchains
305 [
"HLT_tau.*_idperf.*_trackLRT.*:key=HLT_IDTrack_TauLRT_FTF:roi=HLT_Roi_LRT",
306 "HLT_tau.*_idperf.*_trackLRT.*:key=HLT_IDTrack_TauLRT_IDTrig:roi=HLT_Roi_TauLRT"], monlevel )
310 tidataulrt.ntupleChainNames = chains
311 tidataulrt.ntupleChainNames += [
"Offline",
"Offline:+InDetLargeD0TrackParticles" ]
313 tidataulrt.MonTools =
createMonTools( flags, tidataulrt.SliceTag, chains )
315 tools += [ tidataulrt ]
321 def TIDAbjet( flags, key, toolkey, tools, monlevel, mcTruth ) :
326 tidabjet =
TrigR3Mon_builder( flags, name =
"IDBjetTruth"+toolkey+
"Tool", mcTruth=
True )
327 tidabjet.SliceTag =
"HLT/TRIDT/BjetTruth/"+key
330 tidabjet.SliceTag =
"HLT/TRIDT/Bjet/"+key
332 tidabjet.AnalysisConfig =
"Tier0"
334 from TrigInDetMonitoring.TIDAChains
import getchains
337 [
"HLT_j.*presel.*b.*:key=HLT_IDTrack_JetSuper_FTF:roi=HLT_Roi_JetSuper:vtx=HLT_IDVertex_JetSuper",
338 "HLT_j.*roiftf.*:key=HLT_IDTrack_JetSuper_FTF:roi=HLT_Roi_JetSuper:vtx=HLT_IDVertex_JetSuper",
339 "HLT_j.*presel.*b.*:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
340 "HLT_j.*boffperf.*:key=HLT_IDTrack_Bjet_FTF:roi=HLT_Roi_Bjet",
341 "HLT_j.*boffperf.*:key=HLT_IDTrack_Bjet_IDTrig:roi=HLT_Roi_Bjet",
342 "HLT_j45_pf_ftf_preselj20_L1J15:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
343 "HLT_j.*_ftf.*boffperf.*:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
344 "HLT_j.*boffperf.*_ftf.*:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
345 "HLT_.*_j.*ion.*:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
346 "HLT_.*_j.*ion.*:key=HLT_IDTrack_Bjet_FTF:roi=HLT_Roi_Bjet",
347 "HLT_.*_j.*ion.*:key=HLT_IDTrack_Bjet_IDTrig:roi=HLT_Roi_Bjet"
357 "HLT_j(?!0).*:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
363 tidabjet.ntupleChainNames += chains
365 tidabjet.MonTools =
createMonTools( flags, tidabjet.SliceTag, chains )
367 tools += [ tidabjet ]
373 def TIDAminbias( flags, key, toolkey, tools, monlevel, mcTruth ) :
378 tidaminbias =
TrigR3Mon_builder( flags, name =
"IDMinbiasTruth"+toolkey+
"Tool", mcTruth=
True )
379 tidaminbias.SliceTag =
"HLT/TRIDT/MinbiasTruth/"+key
382 tidaminbias.SliceTag =
"HLT/TRIDT/Minbias/"+key
384 tidaminbias.AnalysisConfig =
"Tier0"
385 tidaminbias.z0CutOffline = 120
386 tidaminbias.pTCutOffline = 200
388 from TrigInDetMonitoring.TIDAChains
import getchains
391 [
"HLT_mb_sptrk.*:key=HLT_IDTrack_MinBias_IDTrig",
392 "HLT_mb_.*pix.*:key=HLT_IDTrack_MinBiasPixel_IDTrig" ], monlevel )
396 tidaminbias.ntupleChainNames += chains
398 tidaminbias.MonTools =
createMonTools( flags, tidaminbias.SliceTag, chains )
400 tools += [ tidaminbias ]
405 def TIDAcosmic( flags, key, toolkey, tools, monlevel, mcTruth ) :
410 tidacosmic =
TrigR3Mon_builder( flags, name =
"CosmicTruth"+toolkey+
"Tool", mcTruth=
True )
411 tidacosmic.SliceTag =
"HLT/TRIDT/CosmicTruth/"+key
414 tidacosmic.SliceTag =
"HLT/TRIDT/Cosmic/"+key
416 tidacosmic.AnalysisConfig =
"Tier0"
418 from TrigInDetMonitoring.TIDAChains
import getchains
421 [
"HLT_.*cosmic.*:key=HLT_IDTrack_Cosmic_IDTrig" ], monlevel )
425 tidacosmic.ntupleChainNames += chains
427 tidacosmic.MonTools =
createMonTools( flags, tidacosmic.SliceTag, chains )
429 tools += [ tidacosmic ]
435 def TIDAbphys( flags, key, toolkey, tools, monlevel, mcTruth ) :
440 tidabphysics =
TrigR3Mon_builder( flags, name =
"IDBphysicsTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=531 )
441 tidabphysics.SliceTag =
"HLT/TRIDT/BphysicsTruth/"+key
443 tidabphysics =
TrigR3Mon_builder( flags, name =
"IDBphysics"+toolkey+
"Tool", useHighestPT=
True )
444 tidabphysics.SliceTag =
"HLT/TRIDT/Bphysics/"+key
446 tidabphysics.AnalysisConfig =
"Tier0"
448 from TrigInDetMonitoring.TIDAChains
import getchains
451 [
"HLT_mu.*_bBmumux_BsmumuPhi.*:key=HLT_IDTrack_Bmumux_FTF",
452 "HLT_mu.*_bBmumux_BsmumuPhi.*:key=HLT_IDTrack_Bmumux_IDTrig",
453 "HLT_mu.*_bBmumux_Bidperf.*:key=HLT_IDTrack_Bmumux_FTF",
454 "HLT_mu.*_bBmumux_Bidperf.*:key=HLT_IDTrack_Bmumux_IDTrig"], monlevel )
458 tidabphysics.ntupleChainNames += chains
460 tidabphysics.MonTools =
createMonTools( flags, tidabphysics.SliceTag, chains )
462 tools += [ tidabphysics ]
467 def TIDAutt( flags, key, toolkey, tools, monlevel, mcTruth ) :
472 tidautt =
TrigR3Mon_builder( flags, name =
"IDUttTruth"+toolkey+
"Tool", mcTruth=
True )
473 tidautt.SliceTag =
"HLT/TRIDT/UTT/"+key
476 tidautt.SliceTag =
"HLT/TRIDT/UTT/"+key
478 tidautt.AnalysisConfig =
"Tier0"
480 from TrigInDetMonitoring.TIDAChains
import getchains
483 [
"HLT_j180_.*dispjet.*_L1J100:key=HLT_IDTrack_DJLRT_FTF:roi=HLT_Roi_DJ",
"HLT_j180_.*dispjet.*_L1jJ160:key=HLT_IDTrack_DJLRT_FTF:roi=HLT_Roi_DJ" ], monlevel )
487 tidautt.ntupleChainNames += chains
489 tidautt.MonTools =
createMonTools( flags, tidautt.SliceTag, chains )
505 from TrigInDetAnalysisExample.chainString
import chainString
506 from TrigInDetAnalysisExample.TIDAMonTool
import createMonTool
508 if excludeTagChains
and "tag" in chainString(mt).extra:
520 from TrigInDetAnalysisExample.TrigInDetAnalysisExampleConf
import TrigR3Mon
523 from AthenaConfiguration.ComponentFactory
import CompFactory
524 alg = CompFactory.TrigR3Mon( name=name )
526 alg.UseHighestPT = useHighestPT
531 alg.pixHitsOffline = -1
532 alg.sctHitsOffline = -1
533 alg.siHitsOffline = -1
537 alg.SelectParentTruthPdgId = 15
539 alg.SelectTruthPdgId = pdgID
557 from AthenaMonitoring
import AthMonitorCfgHelper
558 monConfig = AthMonitorCfgHelper(flags,
"TrigIDMon")
561 algs =
TIDAMonitoring(flags,
"Tier0", monlevel=
"idMon:t0:shifter" )
562 algs +=
TIDAMonitoring(flags,
"Shifter", monlevel=
"idMon:shifter", mcTruth=
False )
565 algs +=
TIDAMonitoring(flags, name=
"PhysVal", monlevel=
"idMon:t0", mcTruth=
True )
566 algs +=
TIDAMonitoring(flags, name=
"PhysValShifter", monlevel=
"idMon:shifter", mcTruth=
True )
569 monConfig.addAlgorithm(a)
571 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
573 ca.merge(monConfig.result())
583 from AthenaCommon.Logging
import log
585 if flags.Output.HISTFileName:
586 log.info(
"histsvc: Create THistSvc with file name: "+flags.Output.HISTFileName )
588 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
591 from AthenaConfiguration.ComponentFactory
import CompFactory
592 THistSvc = CompFactory.THistSvc
595 if flags.Output.HISTFileName:
596 histsvc.Output += [
"%s DATAFILE='%s' OPT='RECREATE'" % (flags.DQ.FileKey, flags.Output.HISTFileName)]
597 log.info(
"histsvc: "+histsvc.Output[-1] )
599 ca.addService(histsvc)
605 if __name__==
'__main__':
608 from AthenaCommon.Logging
import log
609 log.info(
"test running" )
612 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
618 file =
'AOD.pool.root'
620 flags.Input.Files = [file]
621 flags.Input.isMC =
True
623 flags.Output.HISTFileName =
'duff.root'
628 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
629 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
639 cfg.printConfig(withDetails=
False)