ATLAS Offline Software
Functions
TrigHLTMonitorAlgorithm Namespace Reference

Functions

def createHLTDQConfigFlags ()
 
def verifySignatureDQSettings (inputFlags)
 
def TrigHLTMonTopConfig (inputFlags)
 

Function Documentation

◆ createHLTDQConfigFlags()

def TrigHLTMonitorAlgorithm.createHLTDQConfigFlags ( )

Definition at line 19 of file TrigHLTMonitorAlgorithm.py.

20  from AthenaConfiguration.AthConfigFlags import AthConfigFlags
21  acf=AthConfigFlags()
22 
23  from AthenaConfiguration.Enums import Format
24  from AthenaConfiguration.Enums import BeamType
25 
26  acf.addFlag('DQ.Steering.HLT.doGeneral', True)
27  acf.addFlag('DQ.Steering.HLT.doBjet', lambda flags: flags.Beam.Type is BeamType.Collisions) # b-jets disabled for cosmics following ATR-25036
28  acf.addFlag('DQ.Steering.HLT.doBphys', True)
29  acf.addFlag('DQ.Steering.HLT.doCalo', True)
30  acf.addFlag('DQ.Steering.HLT.doEgamma', True)
31  acf.addFlag('DQ.Steering.HLT.doInDet', True)
32  acf.addFlag('DQ.Steering.HLT.doJet', lambda flags: flags.Input.Format is Format.POOL or (flags.Input.Format is Format.BS and flags.Beam.Type is BeamType.Collisions))
33  acf.addFlag('DQ.Steering.HLT.doMET', lambda flags: flags.Reco.HIMode is not HIMode.HI)
34  acf.addFlag('DQ.Steering.HLT.doMinBias', True)
35  acf.addFlag('DQ.Steering.HLT.doMuon', True)
36  acf.addFlag('DQ.Steering.HLT.doTau', lambda flags: flags.Beam.Type is BeamType.Collisions and (flags.Reco.HIMode is not HIMode.HI))
37 
38  return acf
39 

◆ TrigHLTMonTopConfig()

def TrigHLTMonitorAlgorithm.TrigHLTMonTopConfig (   inputFlags)
Configuring the HLT signatures top-level steering in the DQ monitoring system.

Definition at line 48 of file TrigHLTMonitorAlgorithm.py.

48 def TrigHLTMonTopConfig(inputFlags):
49  '''Configuring the HLT signatures top-level steering in the DQ monitoring system.'''
50 
51 
53 
54  # Define one top-level monitoring algorithm. The new configuration
55  # framework uses a component accumulator.
56 
57  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
58  result = ComponentAccumulator()
59 
60  # do not run in RAWtoESD, if we have two-step reco
61  if inputFlags.DQ.Environment in ('online', 'tier0', 'tier0ESD', 'AOD'):
62 
63  # Verify signature settings in case of AOD input, as content monitored by some signatures not available in AOD.
64  # Will raise exception to prevent signature monitoring crashing during running.
65  verifySignatureDQSettings(inputFlags)
66 
67  if inputFlags.DQ.Steering.HLT.doGeneral:
68  from TrigHLTMonitoring.TrigGeneralMonitorAlgorithm import TrigGeneralMonConfig
69  result.merge(TrigGeneralMonConfig(inputFlags))
70 
71  if inputFlags.DQ.Steering.HLT.doInDet:
72  from TrigInDetMonitoring.TIDAMonitoring import TrigInDetMonConfig
73  result.merge(TrigInDetMonConfig(inputFlags))
74 
75  if inputFlags.DQ.Steering.HLT.doBjet:
76  from TrigBjetMonitoring.TrigBjetMonitorAlgorithm import TrigBjetMonConfig
77  result.merge(TrigBjetMonConfig(inputFlags))
78 
79  if inputFlags.DQ.Steering.HLT.doBphys:
80  from TrigBphysMonitoring.TrigBphysMonitorAlgorithm import TrigBphysMonConfig
81  result.merge(TrigBphysMonConfig(inputFlags))
82 
83  if inputFlags.DQ.Steering.HLT.doCalo:
84  from TrigCaloMonitoring.TrigCaloMonitorAlgorithm import TrigCaloMonConfig
85  result.merge(TrigCaloMonConfig(inputFlags))
86 
87  if inputFlags.DQ.Steering.HLT.doEgamma:
88  from TrigEgammaMonitoring.TrigEgammaMonitorAlgorithm import TrigEgammaMonConfig
89  result.merge(TrigEgammaMonConfig(inputFlags))
90 
91  if inputFlags.DQ.Steering.HLT.doJet:
92  from TrigJetMonitoring.TrigJetMonitorAlgorithm import TrigJetMonConfig
93  result.merge(TrigJetMonConfig(inputFlags))
94 
95  if inputFlags.DQ.Steering.HLT.doMET:
96  from TrigMETMonitoring.TrigMETMonitorAlgorithm import TrigMETMonConfig
97  result.merge(TrigMETMonConfig(inputFlags))
98 
99  if inputFlags.DQ.Steering.HLT.doMinBias:
100  from TrigMinBiasMonitoring.TrigMinBiasMonitoringMT import TrigMinBias
101  result.merge(TrigMinBias(inputFlags))
102 
103  if inputFlags.DQ.Steering.HLT.doMuon:
104  from TrigMuonMonitoring.TrigMuonMonitoringConfig import TrigMuonMonConfig
105  result.merge(TrigMuonMonConfig(inputFlags))
106 
107  if inputFlags.DQ.Steering.HLT.doTau:
108  from TrigTauMonitoring.TrigTauMonitorAlgorithm import TrigTauMonConfig
109  result.merge(TrigTauMonConfig(inputFlags))
110 
111  return result
112 
113 

◆ verifySignatureDQSettings()

def TrigHLTMonitorAlgorithm.verifySignatureDQSettings (   inputFlags)

Definition at line 40 of file TrigHLTMonitorAlgorithm.py.

40 def verifySignatureDQSettings(inputFlags):
41  if inputFlags.DQ.Environment == 'AOD' and not inputFlags.Input.isMC:
42  for signature in RAWonlySignatureList:
43  sigFlag = f"do{signature}"
44  if getattr(inputFlags.DQ.Steering.HLT, sigFlag):
45  logger.error(f"HLT monitoring on data AOD input for {signature} not allowed - not all HLT collections are recorded to AOD! Try set DQ.Steering.HLT.{sigFlag}=False.")
46  raise ValueError("HLT monitoring enabled on data AOD input.")
47 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TIDAMonitoring.TrigInDetMonConfig
def TrigInDetMonConfig(flags, monlevels=None)
Definition: TIDAMonitoring.py:542
TrigJetMonitorAlgorithm.TrigJetMonConfig
def TrigJetMonConfig(inputFlags)
Definition: TrigJetMonitorAlgorithm.py:492
TrigMinBiasMonitoringMT.TrigMinBias
def TrigMinBias(flags)
Definition: TrigMinBiasMonitoringMT.py:21
python.TrigBjetMonitorAlgorithm.TrigBjetMonConfig
def TrigBjetMonConfig(inputFlags)
Definition: TrigBjetMonitorAlgorithm.py:12
TrigGeneralMonitorAlgorithm.TrigGeneralMonConfig
def TrigGeneralMonConfig(inputFlags)
Definition: TrigGeneralMonitorAlgorithm.py:11
TrigMETMonitorAlgorithm.TrigMETMonConfig
def TrigMETMonConfig(inputFlags)
Definition: TrigMETMonitorAlgorithm.py:13
TrigHLTMonitorAlgorithm.createHLTDQConfigFlags
def createHLTDQConfigFlags()
Definition: TrigHLTMonitorAlgorithm.py:19
TrigCaloMonitorAlgorithm.TrigCaloMonConfig
def TrigCaloMonConfig(inputFlags)
Definition: TrigCaloMonitorAlgorithm.py:14
TrigHLTMonitorAlgorithm.TrigHLTMonTopConfig
def TrigHLTMonTopConfig(inputFlags)
Definition: TrigHLTMonitorAlgorithm.py:48
TrigHLTMonitorAlgorithm.verifySignatureDQSettings
def verifySignatureDQSettings(inputFlags)
Definition: TrigHLTMonitorAlgorithm.py:40
python.TrigTauMonitorAlgorithm.TrigTauMonConfig
def TrigTauMonConfig(inputFlags)
Definition: TrigTauMonitorAlgorithm.py:3
python.TrigEgammaMonitorAlgorithm.TrigEgammaMonConfig
def TrigEgammaMonConfig(inputFlags, emulator=None)
Definition: TrigEgammaMonitorAlgorithm.py:17
TrigBphysMonitorAlgorithm.TrigBphysMonConfig
def TrigBphysMonConfig(inputFlags)
Definition: TrigBphysMonitorAlgorithm.py:5
python.TrigMuonMonitoringConfig.TrigMuonMonConfig
def TrigMuonMonConfig(inputFlags)
Definition: TrigMuonMonitoringConfig.py:15