ATLAS Offline Software
TrigEgammaMonitCategory.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 # Categories currently used by offline Egamma TO monitoringMT tool
4 # Mechanism to read mongroups directly from trigger menu
5 
6 from AthenaMonitoring.DQConfigFlags import DQDataType
7 
8 def mongroupsCfg(moniAccess, data_type):
9 
10  shifter_eg = moniAccess.monitoredChains(signatures="egammaMon", monLevels=["shifter"])
11  shifter_tp = moniAccess.monitoredChains(signatures="egammaMon", monLevels=["shifter_tp"])
12  shifter_topo = moniAccess.monitoredChains(signatures="egammaMon", monLevels=["shifter_topo"])
13 
14  monitoring_electron = list(filter(lambda x: ('HLT_e' in x and 'L1eEM28' not in x), shifter_eg)) # etcut chains
15  monitoring_tags = []
16  monitoringTP_electron = list(filter(lambda x: ('L1eEM28' not in x), shifter_tp))
17 
18  monitoring_ph = list(filter(lambda x: ('HLT_g' in x and 'noringer' not in x), shifter_eg))
19  monitoring_photon = monitoring_ph + ['HLT_g140_loose_L1eEM26M']
20  monitoring_bootstrap = {
21  'HLT_g22_tight_L1eEM18M' : 'HLT_g20_tight_L1eEM18M',
22  'HLT_g25_medium_L1eEM24L' : 'HLT_g25_loose_L1eEM24L',
23  'HLT_g35_medium_L1eEM24L' : 'HLT_g25_loose_L1eEM24L',
24  'HLT_g50_loose_L1eEM24L' : 'HLT_g25_loose_L1eEM24L',
25  'HLT_g35_medium_noringer_L1eEM24L' : 'HLT_g25_loose_noringer_L1eEM24L',
26  }
27 
28  t0_tp = moniAccess.monitoredChains(signatures="egammaMon", monLevels=["t0_tp"])
29 
30  validationTP_electron_DNN = list(filter(lambda x: ('_dnn' in x), t0_tp ))
31  validation_electron = ['HLT_e25_etcut_L1eEM18M','HLT_e60_etcut_L1eEM26M']
32  validation_jpsi = list(filter(lambda x: ('_L1JPSI' in x), shifter_topo ))
33  validationTP_jpsiee = ['HLT_e10_lhvloose_L1eEM9']
34 
35  monitoring_topo = []
36  mongroups = {
37  'monitoring_electron' : monitoring_electron,
38  'monitoring_photon' : monitoring_photon ,
39  'monitoring_bootstrap' : monitoring_bootstrap,
40  'monitoringTP_electron' : monitoringTP_electron + ['HLT_e26_lhtight_L1eEM26M'] + validationTP_electron_DNN,
41  'monitoring_tags' : monitoring_tags,
42  'monitoring_topo' : monitoring_topo,
43  }
44 
45  if data_type is DQDataType.MC:
46 
47  mongroups['validation_electron'] = validation_electron
48  mongroups['validation_photon'] = monitoring_photon
49  mongroups['validation_jpsi'] = validation_jpsi
50  mongroups['validationTP_jpsiee'] = validationTP_jpsiee
51  mongroups['validationTP_electron_DNN'] = validationTP_electron_DNN
52 
53  elif data_type is DQDataType.Cosmics:
54  monitoring_electron_cosmic=['HLT_e5_etcut_L1eEM5']
55  monitoring_photon_cosmic=['HLT_g3_etcut_LArPEB_L1eEM5']
56  monitoring_bootstrap_cosmic = {'HLT_g3_etcut_LArPEB_L1eEM5' : 'HLT_g3_etcut_LArPEB_L1eEM5'}
57 
58  mongroups['monitoring_electron_cosmic'] = monitoring_electron_cosmic
59  mongroups['monitoring_photon_cosmic'] = monitoring_photon_cosmic
60  mongroups['monitoring_bootstrap_cosmic'] = monitoring_bootstrap_cosmic
61 
62  return mongroups
63 
64 # Topolological chains - monitoring configuration
65 topo_config = {
66  'Zee' : {'mass':(50 , 130) , 'dphi':(1.5, 5) },
67  'Jpsiee': {'mass':( 1 , 5) , 'dphi':(1.5, 5) },
68  'Heg' : {'mass':(90 , 140) , 'dphi':(1.5, 5) },
69  }
70 
71 
75 
76 primary_single_ele = [
77  'HLT_e26_lhtight_ivarloose_L1eEM26M',
78  'HLT_e26_lhtight_ivarloose_L1eEM26T',
79  'HLT_e28_lhtight_ivarloose_L1eEM28M',
80  'HLT_e60_lhmedium_L1eEM26M',
81  'HLT_e140_lhloose_L1eEM26M']
82 
83 primary_double_pho = [
84  'HLT_2g22_tight_L12eEM18M',
85  'HLT_g35_medium_g25_medium_L12eEM24L',
86  'HLT_2g50_loose_L12eEM24L',
87  ]
88 
89 monitoring_Zee = ['HLT_e26_lhtight_e14_etcut_probe_50invmAB130_L1eEM26M',
90  'HLT_e26_lhtight_e14_etcut_L1eEM26M',
91  'HLT_e26_lhtight_e14_etcut_probe_50invmAB130_L1eEM26M',
92  'HLT_e26_lhtight_e14_etcut_L1eEM26M'
93  ] + primary_single_ele
94 
95 monitoring_Jpsiee = [
96  'HLT_e5_lhtight_e9_etcut_1invmAB5_L1JPSI-1M5-eEM9',
97  'HLT_e5_lhtight_e14_etcut_1invmAB5_L1JPSI-1M5-eEM15',
98  'HLT_e9_lhtight_e4_etcut_1invmAB5_L1JPSI-1M5-eEM9',
99  'HLT_e14_lhtight_e4_etcut_1invmAB5_L1JPSI-1M5-eEM15',
100  'HLT_e10_lhvloose_L1eEM9',
101  'HLT_e14_lhvloose_L1eEM12L'
102  ]
covarianceTool.filter
filter
Definition: covarianceTool.py:514
python.TrigEgammaMonitCategory.mongroupsCfg
def mongroupsCfg(moniAccess, data_type)
Definition: TrigEgammaMonitCategory.py:8
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38