17def TIDAMonitoring( flags=None, name=None, monlevel=None, mcTruth=False ) :
21 from AthenaCommon.Logging
import logging
22 log = logging.getLogger(
"TIDAMonitoring")
24 log.info(
"Creating TIDA monitoring: " + name )
25 log.info(
" mcTruth: " + str(mcTruth) )
30 if monlevel
is not None:
31 log.info(
"TIDA monitoring not None: monlevel: " + monlevel )
35 elif "shifter" in monlevel:
42 TIDAelectron( flags, key, toolkey, tools, monlevel, mcTruth )
43 TIDAmuon( flags, key, toolkey, tools, monlevel, mcTruth )
44 TIDAtau( flags, key, toolkey, tools, monlevel, mcTruth )
45 TIDAbjet( flags, key, toolkey, tools, monlevel, mcTruth )
46 TIDAminbias( flags, key, toolkey, tools, monlevel, mcTruth )
47 TIDAcosmic( flags, key, toolkey, tools, monlevel, mcTruth )
48 TIDAbphys( flags, key, toolkey, tools, monlevel, mcTruth )
49 TIDAutt( flags, key, toolkey, tools, monlevel, mcTruth )
73def TIDAsignature( flags, signature, key, toolkey, tools, monlevel, mcTruth, chain_regex ) :
76 tida =
TrigR3Mon_builder( flags, name =
"ID"+signature+
"Truth"+toolkey+
"Tool", mcTruth=
True, pdgID=11 )
77 tida.SliceTag =
"HLT/TRIDT/"+signature+
"Truth/"+key
79 tida =
TrigR3Mon_builder( flags, name =
"ID"+signature+toolkey+
"Tool", useHighestPT=
True )
80 tida.SliceTag =
"HLT/TRIDT/"+signature+
"/"+key
82 tida.AnalysisConfig =
"Tier0"
84 from TrigInDetMonitoring.TIDAChains
import getchains
86 chains = getchains( flags, chain_regex, monlevel )
91 tida.ntupleChainNames = chains
108 tidaegamma =
TrigR3Mon_builder( flags, name =
"IDEgammaTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=11 )
109 tidaegamma.SliceTag =
"HLT/TRIDT/EgammaTruth/"+key
111 tidaegamma =
TrigR3Mon_builder( flags, name =
"IDEgamma"+toolkey+
"Tool", useHighestPT=
True )
112 tidaegamma.SliceTag =
"HLT/TRIDT/Egamma/"+key
114 tidaegamma.AnalysisConfig =
"Tier0"
116 from TrigInDetMonitoring.TIDAChains
import getchains
118 chains = getchains( flags,
119 [
"HLT_e.(?!.*lrtloose.*).*idperf(?!.*lrtloose.*).*:key=HLT_IDTrack_Electron_FTF:roi=HLT_Roi_FastElectron",
120 "HLT_e.(?!.*lrtloose.*).*idperf(?!.*lrtloose.*).*:key=HLT_IDTrack_Electron_IDTrig",
121 "HLT_e.(?!.*lrtloose.*).*idperf(?!.*lrtloose.*)(?!.*nogsf.*).*:key=HLT_IDTrack_Electron_GSF",
122 "HLT_e.*idperf.*ion.*:key=HLT_IDTrack_Electron_FTF:roi=HLT_Roi_FastElectron",
123 "HLT_e.*idperf.*ion.*:key=HLT_IDTrack_Electron_FTF",
124 "HLT_e.*idperf.*ion.*:key=HLT_IDTrack_Electron_IDTrig",
125 "HLT_e.*_lhtight.*_e.*_idperf_tight_nogsf_probe_.*inv.*:key=HLT_IDTrack_Electron_FTF:roi=HLT_Roi_FastElectron:te=1",
126 "HLT_e.*_lhtight.*_e.*_idperf_tight_nogsf_probe_.*inv.*:key=HLT_IDTrack_Electron_FTF:extra=el_tag:roi=HLT_Roi_FastElectron:te=0",
127 "HLT_e.*_lhtight.*_e.*_idperf_tight_nogsf_probe_.*inv.*:key=HLT_IDTrack_Electron_FTF:extra=el_probe:roi=HLT_Roi_FastElectron:te=1",
128 "HLT_e.*_lhtight.*_e.*_idperf_tight_nogsf_probe_.*inv.*:key=HLT_IDTrack_Electron_IDTrig:te=1",
129 "HLT_e.*_lhtight.*_e.*_idperf_tight_nogsf_probe_.*inv.*:key=HLT_IDTrack_Electron_IDTrig:extra=el_tag:te=0",
130 "HLT_e.*_lhtight.*_e.*_idperf_tight_nogsf_probe_.*inv.*:key=HLT_IDTrack_Electron_IDTrig:extra=el_probe:te=1",
131 "HLT_e.*_lhtight.*_e.*_idperf_tight_probe_.*inv.*:key=HLT_IDTrack_Electron_GSF:te=1",
132 "HLT_e.*_lhtight.*_e.*_idperf_tight_probe_.*inv.*:key=HLT_IDTrack_Electron_GSF:extra=el_tag:te=0",
133 "HLT_e.*_lhtight.*_e.*_idperf_tight_probe_.*inv.*:key=HLT_IDTrack_Electron_GSF:extra=el_probe:te=1" ], monlevel )
137 tidaegamma.ntupleChainNames = chains
139 tidaegamma.MonTools =
createMonTools( flags, tidaegamma.SliceTag, chains )
141 tools += [ tidaegamma ]
148 tidaegammalrt =
TrigR3Mon_builder( flags, name =
"IDEgammaLRTTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=11 )
149 tidaegammalrt.SliceTag =
"HLT/TRIDT/EgammaLRTTruth/"+key
151 tidaegammalrt =
TrigR3Mon_builder( flags, name =
"IDEgammaLRT"+toolkey+
"Tool", useHighestPT=
True )
152 tidaegammalrt.SliceTag =
"HLT/TRIDT/EgammaLRT/"+key
154 tidaegammalrt.AnalysisConfig =
"Tier0"
155 tidaegammalrt.mind0CutOffline = 2.
157 from TrigInDetMonitoring.TIDAChains
import getchains
159 chains = getchains( flags,
160 [
"HLT_e.*idperf_loose_lrtloose.*:key=HLT_IDTrack_ElecLRT_FTF:roi=HLT_Roi_FastElectron_LRT",
161 "HLT_e.*idperf_loose_lrtloose.*:key=HLT_IDTrack_ElecLRT_IDTrig:roi=HLT_Roi_FastElectron_LRT",
162 "HLT_e.*lrtloose_idperf.*:key=HLT_IDTrack_ElecLRT_FTF:roi=HLT_Roi_FastElectron_FTF",
163 "HLT_e.*lrtloose_idperf.*:key=HLT_IDTrack_ElecLRT_IDTrig:roi=HLT_Roi_FastElectron_LRT",
168 tidaegammalrt.ntupleChainNames = chains
169 tidaegammalrt.ntupleChainNames += [
"Offline",
"Offline:+InDetLargeD0TrackParticles" ]
171 tidaegammalrt.MonTools =
createMonTools( flags, tidaegammalrt.SliceTag, chains )
173 tools += [ tidaegammalrt ]
178def TIDAmuon( flags, key, toolkey, tools, monlevel, mcTruth ) :
183 tidamuon =
TrigR3Mon_builder( flags, name =
"IDMuonTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=13 )
184 tidamuon.SliceTag =
"HLT/TRIDT/MuonTruth/"+key
186 tidamuon =
TrigR3Mon_builder( flags, name =
"IDMuon"+toolkey+
"Tool", useHighestPT=
True )
187 tidamuon.SliceTag =
"HLT/TRIDT/Muon/"+key
189 tidamuon.AnalysisConfig =
"Tier0"
191 from TrigInDetMonitoring.TIDAChains
import getchains
193 chains = getchains( flags,
194 [
"HLT_mu(?!.*LRT.*)(?!.*tau.*).*_idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon",
195 "HLT_mu(?!.*LRT.*)(?!.*tau.*).*_idperf.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon",
196 "HLT_mu.*ivarperf.*:key=HLT_IDTrack_MuonIso_FTF:roi=HLT_Roi_MuonIso",
197 "HLT_mu.*ivarperf.*:key=HLT_IDTrack_MuonIso_IDTrig:roi=HLT_Roi_MuonIso",
198 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon",
199 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon",
200 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon",
201 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon",
202 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:te=1",
203 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:te=1",
204 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=mu_tag:te=0",
205 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=mu_probe:te=1",
206 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:extra=mu_tag:te=0",
207 "HLT_mu.*_mu.*idtp.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:extra=mu_probe:te=1",
208 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:te=1",
209 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:te=1",
210 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=mu_tag:te=0",
211 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=mu_probe:te=1",
212 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:extra=mu_tag:te=0",
213 "HLT_mu.*_mu.*_idperf.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:extra=mu_probe:te=1" ], monlevel )
217 tidamuon.ntupleChainNames = chains
219 tidamuon.MonTools =
createMonTools( flags, tidamuon.SliceTag, chains )
221 tools += [ tidamuon ]
228 tidamuonlrt =
TrigR3Mon_builder(flags, name =
"IDMuonLRTTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=13 )
229 tidamuonlrt.SliceTag =
"HLT/TRIDT/MuonLRTTruth/"+key
231 tidamuonlrt =
TrigR3Mon_builder( flags, name =
"IDMuonLRT"+toolkey+
"Tool", useHighestPT=
True )
232 tidamuonlrt.SliceTag =
"HLT/TRIDT/MuonLRT/"+key
234 tidamuonlrt.AnalysisConfig =
"Tier0"
235 tidamuonlrt.mind0CutOffline = 2.
237 from TrigInDetMonitoring.TIDAChains
import getchains
239 chains = getchains( flags,
240 [
"HLT_mu.*_LRT_idperf.*:key=HLT_IDTrack_MuonLRT_FTF:roi=HLT_Roi_L2SAMuon_LRT",
241 "HLT_mu.*_LRT_idperf.*:key=HLT_IDTrack_MuonLRT_IDTrig:roi=HLT_Roi_L2SAMuon_LRT"], monlevel )
245 tidamuonlrt.ntupleChainNames = chains
246 tidamuonlrt.ntupleChainNames += [
"Offline",
"Offline:+InDetLargeD0TrackParticles" ]
248 tidamuonlrt.MonTools =
createMonTools( flags, tidamuonlrt.SliceTag, chains )
250 tools += [ tidamuonlrt ]
256def TIDAtau( flags, key, toolkey, tools, monlevel, mcTruth ) :
261 tidatau =
TrigR3Mon_builder( flags, name =
"IDTauTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=15 )
262 tidatau.SliceTag =
"HLT/TRIDT/TauTruth/"+key
264 tidatau =
TrigR3Mon_builder( flags, name =
"IDTau"+toolkey+
"Tool", useHighestPT=
True )
265 tidatau.SliceTag =
"HLT/TRIDT/Tau/"+key
267 tidatau.AnalysisConfig =
"Tier0"
269 from TrigInDetMonitoring.TIDAChains
import getchains
271 chains = getchains( flags,
272 [
"HLT_tau.*idperf.*tracktwoMVA_.*:key=HLT_IDTrack_TauCore_FTF:roi=HLT_Roi_TauCore",
273 "HLT_tau.*idperf.*tracktwoMVA_.*:key=HLT_IDTrack_TauIso_FTF:roi=HLT_Roi_TauIso",
274 "HLT_tau.*idperf.*tracktwoMVA_.*:key=HLT_IDTrack_Tau_IDTrig:roi=HLT_Roi_TauIso",
275 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_TauCore_FTF:roi=HLT_Roi_TauCore",
276 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_TauIso_FTF:roi=HLT_Roi_TauIso",
277 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_Tau_IDTrig:roi=HLT_Roi_TauIso",
278 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=tau1_tag:te=0",
279 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_TauCore_FTF:roi=HLT_Roi_TauCore:extra=tau1_probe:te=1",
280 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_Muon_FTF:roi=HLT_Roi_L2SAMuon:extra=tau0_tag:te=0",
281 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_TauIso_FTF:roi=HLT_Roi_TauIso:extra=tau0_probe:te=1",
282 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_Muon_IDTrig:roi=HLT_Roi_L2SAMuon:extra=tau_tag:te=0",
283 "HLT_mu.*tau.*idperf.*:key=HLT_IDTrack_Tau_IDTrig:roi=HLT_Roi_TauIso:extra=tau_probe:te=1" ], monlevel )
287 tidatau.ntupleChainNames = chains
289 tidatau.MonTools =
createMonTools( flags, tidatau.SliceTag, chains )
297 tidataulrt =
TrigR3Mon_builder(flags, name =
"IDTauLRTTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=15 )
298 tidataulrt.SliceTag =
"HLT/TRIDT/TauLRTTruth/"+key
300 tidataulrt =
TrigR3Mon_builder( flags, name =
"IDTauLRT"+toolkey+
"Tool", useHighestPT=
True )
301 tidataulrt.SliceTag =
"HLT/TRIDT/TauLRT/"+key
303 tidataulrt.AnalysisConfig =
"Tier0"
304 tidataulrt.mind0CutOffline = 2.
306 from TrigInDetMonitoring.TIDAChains
import getchains
308 chains = getchains( flags,
309 [
"HLT_tau.*_idperf.*_trackLRT.*:key=HLT_IDTrack_TauLRT_FTF:roi=HLT_Roi_LRT",
310 "HLT_tau.*_idperf.*_trackLRT.*:key=HLT_IDTrack_TauLRT_IDTrig:roi=HLT_Roi_TauLRT"], monlevel )
314 tidataulrt.ntupleChainNames = chains
315 tidataulrt.ntupleChainNames += [
"Offline",
"Offline:+InDetLargeD0TrackParticles" ]
317 tidataulrt.MonTools =
createMonTools( flags, tidataulrt.SliceTag, chains )
319 tools += [ tidataulrt ]
325def TIDAbjet( flags, key, toolkey, tools, monlevel, mcTruth ) :
330 tidabjet =
TrigR3Mon_builder( flags, name =
"IDBjetTruth"+toolkey+
"Tool", mcTruth=
True )
331 tidabjet.SliceTag =
"HLT/TRIDT/BjetTruth/"+key
334 tidabjet.SliceTag =
"HLT/TRIDT/Bjet/"+key
336 tidabjet.AnalysisConfig =
"Tier0"
338 from TrigInDetMonitoring.TIDAChains
import getchains
340 chains = getchains( flags,
341 [
"HLT_j.*presel.*b.*:key=HLT_IDTrack_JetSuper_FTF:roi=HLT_Roi_JetSuper:vtx=HLT_IDVertex_JetSuper",
342 "HLT_j.*roiftf.*:key=HLT_IDTrack_JetSuper_FTF:roi=HLT_Roi_JetSuper:vtx=HLT_IDVertex_JetSuper",
343 "HLT_j.*presel.*b.*:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
344 "HLT_j.*boffperf.*:key=HLT_IDTrack_Bjet_FTF:roi=HLT_Roi_Bjet",
345 "HLT_j.*boffperf.*:key=HLT_IDTrack_Bjet_IDTrig:roi=HLT_Roi_Bjet",
346 "HLT_j45_pf_ftf_preselj20_L1J15:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
347 "HLT_j.*_ftf.*boffperf.*:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
348 "HLT_j.*boffperf.*_ftf.*:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
349 "HLT_.*_j.*ion.*:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
350 "HLT_.*_j.*ion.*:key=HLT_IDTrack_Bjet_FTF:roi=HLT_Roi_Bjet",
351 "HLT_.*_j.*ion.*:key=HLT_IDTrack_Bjet_IDTrig:roi=HLT_Roi_Bjet"
357 chains = getchains( flags,
361 "HLT_j(?!0).*:key=HLT_IDTrack_FS_FTF:roi=HLT_FSRoI:vtx=HLT_IDVertex_FS",
367 tidabjet.ntupleChainNames += chains
369 tidabjet.MonTools =
createMonTools( flags, tidabjet.SliceTag, chains )
371 tools += [ tidabjet ]
382 tidaminbias =
TrigR3Mon_builder( flags, name =
"IDMinbiasTruth"+toolkey+
"Tool", mcTruth=
True )
383 tidaminbias.SliceTag =
"HLT/TRIDT/MinbiasTruth/"+key
386 tidaminbias.SliceTag =
"HLT/TRIDT/Minbias/"+key
388 tidaminbias.AnalysisConfig =
"Tier0"
389 tidaminbias.z0CutOffline = 120
390 tidaminbias.pTCutOffline = 200
392 from TrigInDetMonitoring.TIDAChains
import getchains
394 chains = getchains( flags,
395 [
"HLT_mb_sptrk.*:key=HLT_IDTrack_MinBias_IDTrig",
396 "HLT_mb_.*pix.*:key=HLT_IDTrack_MinBiasPixel_IDTrig" ], monlevel )
400 tidaminbias.ntupleChainNames += chains
402 tidaminbias.MonTools =
createMonTools( flags, tidaminbias.SliceTag, chains )
404 tools += [ tidaminbias ]
409def TIDAcosmic( flags, key, toolkey, tools, monlevel, mcTruth ) :
414 tidacosmic =
TrigR3Mon_builder( flags, name =
"CosmicTruth"+toolkey+
"Tool", mcTruth=
True )
415 tidacosmic.SliceTag =
"HLT/TRIDT/CosmicTruth/"+key
418 tidacosmic.SliceTag =
"HLT/TRIDT/Cosmic/"+key
420 tidacosmic.AnalysisConfig =
"Tier0"
422 from TrigInDetMonitoring.TIDAChains
import getchains
424 chains = getchains( flags,
425 [
"HLT_.*cosmic.*:key=HLT_IDTrack_Cosmic_IDTrig" ], monlevel )
429 tidacosmic.ntupleChainNames += chains
431 tidacosmic.MonTools =
createMonTools( flags, tidacosmic.SliceTag, chains )
433 tools += [ tidacosmic ]
439def TIDAbphys( flags, key, toolkey, tools, monlevel, mcTruth ) :
444 tidabphysics =
TrigR3Mon_builder( flags, name =
"IDBphysicsTruth"+toolkey+
"Tool", mcTruth=
True, pdgID=531 )
445 tidabphysics.SliceTag =
"HLT/TRIDT/BphysicsTruth/"+key
447 tidabphysics =
TrigR3Mon_builder( flags, name =
"IDBphysics"+toolkey+
"Tool", useHighestPT=
True )
448 tidabphysics.SliceTag =
"HLT/TRIDT/Bphysics/"+key
450 tidabphysics.AnalysisConfig =
"Tier0"
452 from TrigInDetMonitoring.TIDAChains
import getchains
454 chains = getchains( flags,
455 [
"HLT_mu.*_bBmumux_BsmumuPhi.*:key=HLT_IDTrack_Bmumux_FTF",
456 "HLT_mu.*_bBmumux_BsmumuPhi.*:key=HLT_IDTrack_Bmumux_IDTrig",
457 "HLT_mu.*_bBmumux_Bidperf.*:key=HLT_IDTrack_Bmumux_FTF",
458 "HLT_mu.*_bBmumux_Bidperf.*:key=HLT_IDTrack_Bmumux_IDTrig",
459 "HLT_.*Bhh.*:key=HLT_IDTrack_Bhh_FTF:roi=HLT_Roi_Bhh"], monlevel )
463 tidabphysics.ntupleChainNames += chains
465 tidabphysics.MonTools =
createMonTools( flags, tidabphysics.SliceTag, chains )
467 tools += [ tidabphysics ]
472def TIDAutt( flags, key, toolkey, tools, monlevel, mcTruth ) :
477 tidautt =
TrigR3Mon_builder( flags, name =
"IDUttTruth"+toolkey+
"Tool", mcTruth=
True )
478 tidautt.SliceTag =
"HLT/TRIDT/UTT/"+key
481 tidautt.SliceTag =
"HLT/TRIDT/UTT/"+key
483 tidautt.AnalysisConfig =
"Tier0"
485 from TrigInDetMonitoring.TIDAChains
import getchains
487 chains = getchains( flags,
488 [
"HLT_j180_.*dispjet.*_L1J100:key=HLT_IDTrack_DJLRT_FTF:roi=HLT_Roi_DJ",
489 "HLT_j180_.*dispjet.*_L1jJ160:key=HLT_IDTrack_DJLRT_FTF:roi=HLT_Roi_DJ" ], monlevel )
493 tidautt.ntupleChainNames += chains
495 tidautt.MonTools =
createMonTools( flags, tidautt.SliceTag, chains )
511 from TrigInDetAnalysisExample.chainString
import chainString
512 from TrigInDetAnalysisExample.TIDAMonTool
import createMonTool
514 if excludeTagChains
and "tag" in chainString(mt).extra:
516 tool = createMonTool( flags, label, mt )
526 from TrigInDetAnalysisExample.TrigInDetAnalysisExampleConf
import TrigR3Mon
529 from AthenaConfiguration.ComponentFactory
import CompFactory
530 alg = CompFactory.TrigR3Mon( name=name )
532 alg.UseHighestPT = useHighestPT
537 alg.pixHitsOffline = -1
538 alg.sctHitsOffline = -1
539 alg.siHitsOffline = -1
543 alg.SelectParentTruthPdgId = 15
545 alg.SelectTruthPdgId = pdgID
563 from AthenaMonitoring
import AthMonitorCfgHelper
564 monConfig = AthMonitorCfgHelper(flags,
"TrigIDMon")
567 algs = TIDAMonitoring(flags,
"Tier0", monlevel=
"idMon:t0:shifter" )
568 algs += TIDAMonitoring(flags,
"Shifter", monlevel=
"idMon:shifter", mcTruth=
False )
571 algs += TIDAMonitoring(flags, name=
"PhysVal", monlevel=
"idMon:t0", mcTruth=
True )
572 algs += TIDAMonitoring(flags, name=
"PhysValShifter", monlevel=
"idMon:shifter", mcTruth=
True )
575 monConfig.addAlgorithm(a)
577 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
578 ca = ComponentAccumulator()
579 ca.merge(monConfig.result())
590 from AthenaCommon.Logging
import log
592 if flags.Output.HISTFileName:
593 log.info(
"histsvc: Create THistSvc with file name: "+flags.Output.HISTFileName )
595 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
596 ca = ComponentAccumulator()
598 from AthenaConfiguration.ComponentFactory
import CompFactory
599 THistSvc = CompFactory.THistSvc
602 if flags.Output.HISTFileName:
603 histsvc.Output += [
"%s DATAFILE='%s' OPT='RECREATE'" % (flags.DQ.FileKey, flags.Output.HISTFileName)]
604 log.info(
"histsvc: "+histsvc.Output[-1] )
606 ca.addService(histsvc)
612if __name__==
'__main__':
615 from AthenaCommon.Logging
import log
616 log.info(
"test running" )
619 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
621 flags = initConfigFlags()
625 file =
'AOD.pool.root'
627 flags.Input.Files = [file]
628 flags.Input.isMC =
True
630 flags.Output.HISTFileName =
'duff.root'
635 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
636 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
637 cfg = MainServicesCfg(flags)
639 cfg.merge( PoolReadCfg(flags) )
646 cfg.printConfig(withDetails=
False)
TIDAcosmic(flags, key, toolkey, tools, monlevel, mcTruth)
createMonTools(flags, label, chains, excludeTagChains=True)
TIDAsignature(flags, signature, key, toolkey, tools, monlevel, mcTruth, chain_regex)
TrigInDetMonConfig(flags, monlevels=None)
TIDAutt(flags, key, toolkey, tools, monlevel, mcTruth)
TIDAelectron(flags, key, toolkey, tools, monlevel, mcTruth)
TIDAbphys(flags, key, toolkey, tools, monlevel, mcTruth)
TIDAtau(flags, key, toolkey, tools, monlevel, mcTruth)
TIDAMonitoringCA(flags, monlevels=None)
TrigR3Mon_builder(flags=None, name="NoName", useHighestPT=False, mcTruth=False, pdgID=0)
TIDAbjet(flags, key, toolkey, tools, monlevel, mcTruth)
TIDAmuon(flags, key, toolkey, tools, monlevel, mcTruth)
TIDAminbias(flags, key, toolkey, tools, monlevel, mcTruth)