ATLAS Offline Software
HLTCalo_L2CaloEMClustersMonitor.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "CxxUtils/phihelper.h"
9 
10 template <typename T> struct clus_kin {
11  double et;
12  double eta;
13  double phi;
15 };
16 
17 HLTCalo_L2CaloEMClustersMonitor::HLTCalo_L2CaloEMClustersMonitor( const std::string& name, ISvcLocator* pSvcLocator )
18  : AthMonitorAlgorithm(name,pSvcLocator)
19 {
20  declareProperty("HLTContainer", m_HLT_cont_key = "HLT_FastCaloEMClusters");
21  declareProperty("OFFContainer", m_OFF_cont_key = "egammaClusters");
22  declareProperty("MonGroupName", m_mongroup_name = "TrigCaloMonitor");
23  declareProperty("HLTChainsT0", m_hltChainsT0 = "All");
24  declareProperty("OFFTypes", m_OFF_types);
25  declareProperty("HLThighET", m_HLT_high_et = 10000.0);
26  declareProperty("HLTMinET", m_HLT_min_et = -1.0);
27  declareProperty("OFFMinET", m_OFF_min_et = -1.0);
28  declareProperty("MaxDeltaR", m_max_delta_r = 0.04);
29 }
30 
31 
33  ATH_CHECK(m_HLT_cont_key.initialize());
36  ATH_CHECK( m_eventInfoDecorKey.initialize() );
38 }
39 
40 
42  using namespace Monitored;
43 
44  // Protect against noise bursts
46  ATH_CHECK(thisEvent.isValid());
48  return StatusCode::SUCCESS;
49 
50  // Get HLT cluster collections
52  if (! hltCluster_readHandle.isValid() ) {
53  ATH_MSG_ERROR("evtStore() does not contain a cluster Collection with key " << m_HLT_cont_key);
54  return StatusCode::FAILURE;
55  }
56 
57  // Get OFF cluster collections
59  if (! offCluster_readHandle.isValid() ) {
60  ATH_MSG_ERROR("evtStore() does not contain a cluster Collection with key " << m_OFF_cont_key);
61  return StatusCode::FAILURE;
62  }
63 
64  // Bunch crossing
65  int bcid = ctx.eventID().bunch_crossing_id();
66  auto HLT_bc = Monitored::Scalar<int>("HLT_bc",-1);
67 
69  if (!bcidHdl.isValid()) {
70  ATH_MSG_ERROR( "Unable to retrieve BunchCrossing conditions object" );
71  return StatusCode::FAILURE;
72  }
73  const BunchCrossingCondData* bcData=*bcidHdl;
75 
76 
77 
79  // Cache expensive et, eta and phi //
80  // calculations for the clusters //
82 
83  // prepare HLT clusters
84  std::vector<clus_kin<const xAOD::TrigEMCluster*> > vec_hlt_clusters;
85  std::vector<const xAOD::TrigEMCluster*> accepted_hlt_clusters = ifStepPassed(m_hltChainsT0);
86 
87  // For monitoring all hlt clusters
88  if(m_hltChainsT0 == "All"){
89  for (const auto hlt_cluster : *hltCluster_readHandle) {
90  auto hlt_clus_et = hlt_cluster->et();
91  if (hlt_clus_et < m_HLT_min_et) continue;
92  vec_hlt_clusters.push_back({hlt_clus_et*0.001, hlt_cluster->eta(), hlt_cluster->phi(), hlt_cluster});
93  }
94  }
95  // For monitoring signature specific clusters
96  else if (accepted_hlt_clusters.size()>0){
97  for (const auto* hlt_cluster : accepted_hlt_clusters) {
98  auto hlt_clus_et = hlt_cluster->et();
99  if (hlt_clus_et < m_HLT_min_et) continue;
100  vec_hlt_clusters.push_back({hlt_clus_et*0.001, hlt_cluster->eta(), hlt_cluster->phi(), hlt_cluster});
101  }
102  }
103  // prepare OFF clusters
104  std::vector<clus_kin<const xAOD::CaloCluster*> > vec_off_clusters;
105  for (const auto off_cluster : *offCluster_readHandle) {
106  auto off_clus_et = off_cluster->et();
107  if (off_clus_et < m_OFF_min_et) continue;
108 
109  bool OFF_type_match = false;
110 
111  for (unsigned int n = 0; n < m_OFF_types.size(); ++n) {
112  if (off_cluster->clusterSize() == m_OFF_types[n]) { OFF_type_match = true; break; }
113  }
114 
115  if (!m_OFF_types.empty() && !OFF_type_match) continue;
116 
117  vec_off_clusters.push_back({off_clus_et*0.001, off_cluster->eta(), off_cluster->phi(), off_cluster});
118  }
119 
121  // HLT CLUSTERS //
123 
124  unsigned int n_hlt_clusters = 0;
125  unsigned int n_hlt_barrel_high_et_clusters = 0;
126  unsigned int n_hlt_clusters_no_match = 0;
127  unsigned int n_hlt_clusters_with_match = 0;
128 
129  // All HLT clusters
130  auto HLT_num = Monitored::Scalar<int>("HLT_num",0);
131  auto HLT_et = Monitored::Collection("HLT_et", vec_hlt_clusters, &clus_kin<const xAOD::TrigEMCluster*>::et);
132  auto HLT_eta = Monitored::Collection("HLT_eta", vec_hlt_clusters, &clus_kin<const xAOD::TrigEMCluster*>::eta);
133  auto HLT_phi = Monitored::Collection("HLT_phi", vec_hlt_clusters, &clus_kin<const xAOD::TrigEMCluster*>::phi);
134  auto HLT_size = Monitored::Collection("HLT_size", vec_hlt_clusters, []( const clus_kin<const xAOD::TrigEMCluster*>& clus) { return clus.parent->nCells(); } );
135 
136  // HLT cut masks
137  std::vector<char> vec_hlt_barrel_high_et, vec_hlt_no_off_match, vec_hlt_with_off_match;
138  auto HLT_barrel_high_et = Monitored::Collection("HLT_barrel_high_et", vec_hlt_barrel_high_et);
139  auto HLT_no_OFF_match = Monitored::Collection("HLT_no_OFF_match", vec_hlt_no_off_match);
140  auto HLT_with_OFF_match = Monitored::Collection("HLT_with_OFF_match", vec_hlt_with_off_match);
141 
142  auto HLT_barrel_high_et_num = Monitored::Scalar<int>("HLT_barrel_high_et_num",0);
143  auto HLT_no_OFF_match_num = Monitored::Scalar<int>("HLT_no_OFF_match_num",0);
144  auto HLT_with_OFF_match_num = Monitored::Scalar<int>("HLT_with_OFF_match_num",0);
145 
146  // HLT clusters vs. OFF clusters
147  std::vector<float> vec_hlt_vs_off_minimum_delta_r, vec_hlt_vs_off_delta_eta, vec_hlt_vs_off_delta_phi, vec_hlt_vs_off_resolution, vec_off_match_et;
148 
149  auto HLT_matched_fraction = Monitored::Scalar<float>("HLT_matched_fraction", 0.0);
150  auto HLT_vs_OFF_minimum_delta_r = Monitored::Collection("HLT_vs_OFF_minimum_delta_r", vec_hlt_vs_off_minimum_delta_r);
151  auto HLT_vs_OFF_minimum_delta_eta = Monitored::Collection("HLT_vs_OFF_minimum_delta_eta", vec_hlt_vs_off_delta_eta);
152  auto HLT_vs_OFF_minimum_delta_phi = Monitored::Collection("HLT_vs_OFF_minimum_delta_phi", vec_hlt_vs_off_delta_phi);
153  auto HLT_vs_OFF_resolution = Monitored::Collection("HLT_vs_OFF_resolution", vec_hlt_vs_off_resolution);
154  auto OFF_match_et = Monitored::Collection("OFF_match_et", vec_off_match_et);
155 
156  const clus_kin<const xAOD::CaloCluster*> *off_match = nullptr; // For matching
157 
158  // Loop over HLT clusters
159 
160  for (const auto& hlt_cluster : vec_hlt_clusters) {
161 
162  ++n_hlt_clusters;
163 
164  // high-ET clusters
165  if (hlt_cluster.et > (m_HLT_high_et*0.001) && fabs(hlt_cluster.eta) < 2.5) {
166 
167  ++n_hlt_barrel_high_et_clusters;
168 
169  vec_hlt_barrel_high_et.push_back(1);
170  }
171  else vec_hlt_barrel_high_et.push_back(0);
172 
173  // matching HLT clusters to OFF clusters
174 
175  float min_delta_r = 999999.9;
176 
177  for (const auto& off_cluster : vec_off_clusters) {
178 
179  float delta_r = calculateDeltaR(m_max_delta_r, hlt_cluster.eta, hlt_cluster.phi, off_cluster.eta, off_cluster.phi);
180 
181  if (delta_r < min_delta_r) {
182 
183  min_delta_r = delta_r;
184  off_match = &off_cluster;
185  }
186 
187  } // End loop over OFF clusters
188 
189  vec_hlt_vs_off_minimum_delta_r.push_back(min_delta_r);
190 
191  // No OFF match
192  if (min_delta_r >= m_max_delta_r) {
193 
194  ++n_hlt_clusters_no_match;
195 
196  vec_off_match_et.push_back(0.);
197  vec_hlt_vs_off_resolution.push_back(0.);
198  vec_hlt_vs_off_delta_eta.push_back(0.);
199  vec_hlt_vs_off_delta_phi.push_back(0.);
200 
201  vec_hlt_no_off_match.push_back(1);
202  vec_hlt_with_off_match.push_back(0);
203  }
204 
205  // With OFF match
206  else {
207 
208  ++n_hlt_clusters_with_match;
209 
210  vec_off_match_et.push_back(off_match->et);
211  vec_hlt_vs_off_resolution.push_back(((off_match->et - hlt_cluster.et) / off_match->et) * 100);
212  vec_hlt_vs_off_delta_eta.push_back(off_match->eta - hlt_cluster.eta);
213  vec_hlt_vs_off_delta_phi.push_back(std::abs(CxxUtils::deltaPhi(off_match->phi, hlt_cluster.phi)));
214 
215  vec_hlt_no_off_match.push_back(0);
216  vec_hlt_with_off_match.push_back(1);
217  }
218 
219  } // End loop over HLT clusters
220 
221  HLT_num = n_hlt_clusters;
222  HLT_barrel_high_et_num = n_hlt_barrel_high_et_clusters;
223  HLT_no_OFF_match_num = n_hlt_clusters_no_match;
224  HLT_with_OFF_match_num = n_hlt_clusters_with_match;
225  if (n_hlt_clusters>0) {
226  HLT_matched_fraction = static_cast<float>(n_hlt_clusters_with_match) / n_hlt_clusters;
227  }
228 
230  // OFF CLUSTERS //
232 
233  unsigned int n_off_clusters = 0;
234  unsigned int n_off_clusters_no_match = 0;
235  unsigned int n_off_clusters_with_match = 0;
236 
237  // OFF cluster
238  auto OFF_num = Monitored::Scalar<int>("OFF_num",0);
239  auto OFF_et = Monitored::Collection("OFF_et", vec_off_clusters, &clus_kin<const xAOD::CaloCluster*>::et);
240  auto OFF_eta = Monitored::Collection("OFF_eta", vec_off_clusters, &clus_kin<const xAOD::CaloCluster*>::eta);
241  auto OFF_phi = Monitored::Collection("OFF_phi", vec_off_clusters, &clus_kin<const xAOD::CaloCluster*>::phi);
242  auto OFF_type = Monitored::Collection("OFF_type", vec_off_clusters, []( const clus_kin<const xAOD::CaloCluster*>& clus) { return clus.parent->clusterSize(); } );
243 
244  // cut masks
245  std::vector<char> vec_off_no_hlt_match, vec_off_with_hlt_match;
246  auto OFF_no_HLT_match = Monitored::Collection("OFF_no_HLT_match", vec_off_no_hlt_match);
247  auto OFF_with_HLT_match = Monitored::Collection("OFF_with_HLT_match", vec_off_with_hlt_match);
248 
249  auto OFF_no_HLT_match_num = Monitored::Scalar<int>("OFF_no_HLT_match_num",0);
250  auto OFF_with_HLT_match_num = Monitored::Scalar<int>("OFF_with_HLT_match_num",0);
251 
252  // OFF clusters vs. HLT clusters
253  std::vector<float> vec_off_vs_hlt_minimum_delta_r, vec_off_vs_hlt_delta_eta, vec_off_vs_hlt_delta_phi, vec_off_vs_hlt_resolution, vec_hlt_match_et;
254 
255  auto OFF_matched_fraction = Monitored::Scalar<float>("OFF_matched_fraction", 0.0);
256  auto OFF_vs_HLT_minimum_delta_r = Monitored::Collection("OFF_vs_HLT_minimum_delta_r", vec_off_vs_hlt_minimum_delta_r);
257  auto OFF_vs_HLT_minimum_delta_eta = Monitored::Collection("OFF_vs_HLT_minimum_delta_eta", vec_off_vs_hlt_delta_eta);
258  auto OFF_vs_HLT_minimum_delta_phi = Monitored::Collection("OFF_vs_HLT_minimum_delta_phi", vec_off_vs_hlt_delta_phi);
259  auto OFF_vs_HLT_resolution = Monitored::Collection("OFF_vs_HLT_resolution", vec_off_vs_hlt_resolution);
260  auto HLT_match_et = Monitored::Collection("HLT_match_et", vec_hlt_match_et);
261 
262  const clus_kin<const xAOD::TrigEMCluster*> *hlt_match = nullptr; // For matching
263 
264  // Loop over OFF clusters
265 
266  for (const auto& off_cluster : vec_off_clusters) {
267 
268  ++n_off_clusters;
269 
270  // matching HLT clusters to OFF clusters
271 
272  float min_delta_r = 999999.9;
273 
274  for (const auto& hlt_cluster : vec_hlt_clusters) {
275 
276  float delta_r = calculateDeltaR(m_max_delta_r, off_cluster.eta, off_cluster.phi, hlt_cluster.eta, hlt_cluster.phi);
277 
278  if (delta_r < min_delta_r) {
279 
280  min_delta_r = delta_r;
281  hlt_match = &hlt_cluster; // avoid HLT double counts?
282  }
283 
284  } // End loop over HLT clusters
285 
286  vec_off_vs_hlt_minimum_delta_r.push_back(min_delta_r);
287 
288  // No HLT match
289  if (min_delta_r >= m_max_delta_r) {
290 
291  ++n_off_clusters_no_match;
292 
293  vec_hlt_match_et.push_back(0.);
294 
295  vec_off_vs_hlt_resolution.push_back(0.);
296  vec_off_vs_hlt_delta_eta.push_back(0.);
297  vec_off_vs_hlt_delta_phi.push_back(0.);
298 
299  vec_off_no_hlt_match.push_back(1);
300  vec_off_with_hlt_match.push_back(0);
301  }
302 
303  // With HLT match
304  else {
305 
306  ++n_off_clusters_with_match;
307 
308  vec_hlt_match_et.push_back(hlt_match->et);
309 
310  vec_off_vs_hlt_resolution.push_back(((off_cluster.et - hlt_match->et) / off_cluster.et) * 100);
311  vec_off_vs_hlt_delta_eta.push_back(off_cluster.eta - hlt_match->eta);
312  vec_off_vs_hlt_delta_phi.push_back(std::abs(CxxUtils::deltaPhi(off_cluster.phi, hlt_match->phi)));
313 
314  vec_off_no_hlt_match.push_back(0);
315  vec_off_with_hlt_match.push_back(1);
316  }
317 
318  } // End loop over OFF clusters
319 
320  OFF_num = n_off_clusters;
321  OFF_no_HLT_match_num = n_off_clusters_no_match;
322  OFF_with_HLT_match_num = n_off_clusters_with_match;
323  if (n_off_clusters>0) {
324  OFF_matched_fraction = static_cast<float>(n_off_clusters_with_match) / n_off_clusters;
325  }
326 
327  if(m_hltChainsT0 == "All") {
328  ATH_MSG_DEBUG("Filling for : "<<m_hltChainsT0);
330  // HLT clusters
331  HLT_num, HLT_et, HLT_eta, HLT_phi, HLT_size, HLT_barrel_high_et_num, HLT_bc,
332 
333  // HLT cutmasks
334  HLT_barrel_high_et, HLT_no_OFF_match, HLT_with_OFF_match,
335 
336  // OFF clusters
337  OFF_num, OFF_et, OFF_eta, OFF_phi, OFF_type,
338 
339  // OFF cutmasks
340  OFF_no_HLT_match, OFF_with_HLT_match,
341 
342  // HLT matched to OFF
343  HLT_matched_fraction, HLT_no_OFF_match_num, HLT_vs_OFF_minimum_delta_r, HLT_with_OFF_match_num,
344  OFF_match_et, HLT_vs_OFF_resolution, HLT_vs_OFF_minimum_delta_eta, HLT_vs_OFF_minimum_delta_phi,
345 
346  // OFF matched to OFF
347  OFF_matched_fraction, OFF_no_HLT_match_num, OFF_vs_HLT_minimum_delta_r, OFF_with_HLT_match_num,
348  HLT_match_et, OFF_vs_HLT_resolution, OFF_vs_HLT_minimum_delta_eta, OFF_vs_HLT_minimum_delta_phi
349  );
350  }
351  else if(accepted_hlt_clusters.size()>0){
352  ATH_MSG_DEBUG("Filling for : "<<m_hltChainsT0);
354  // HLT clusters
355  HLT_num, HLT_et, HLT_eta, HLT_phi, HLT_size, HLT_barrel_high_et_num, HLT_bc,
356 
357  // HLT cutmasks
358  HLT_barrel_high_et, HLT_no_OFF_match, HLT_with_OFF_match,
359 
360  // OFF clusters
361  OFF_num, OFF_et, OFF_eta, OFF_phi, OFF_type,
362 
363  // OFF cutmasks
364  OFF_no_HLT_match, OFF_with_HLT_match,
365 
366  // HLT matched to OFF
367  HLT_matched_fraction, HLT_no_OFF_match_num, HLT_vs_OFF_minimum_delta_r, HLT_with_OFF_match_num,
368  OFF_match_et, HLT_vs_OFF_resolution, HLT_vs_OFF_minimum_delta_eta, HLT_vs_OFF_minimum_delta_phi,
369 
370  // OFF matched to OFF
371  OFF_matched_fraction, OFF_no_HLT_match_num, OFF_vs_HLT_minimum_delta_r, OFF_with_HLT_match_num,
372  HLT_match_et, OFF_vs_HLT_resolution, OFF_vs_HLT_minimum_delta_eta, OFF_vs_HLT_minimum_delta_phi
373  );
374  }
375  return StatusCode::SUCCESS;
376 }
377 
378 
379 float HLTCalo_L2CaloEMClustersMonitor::calculateDeltaR( float max_deltar, float eta_1, float phi_1, float eta_2, float phi_2 ) const {
380  // reject the match as early as possible to avoid the expensive delta r calculation
381  if (fabs(eta_1-eta_2) > max_deltar) return 99.9;
382  double DeltaPhi = std::abs(CxxUtils::deltaPhi(phi_1, phi_2));
383  if (DeltaPhi > max_deltar) return 99.9;
384  return sqrt( ((eta_1-eta_2)*(eta_1-eta_2)) + (DeltaPhi*DeltaPhi) );
385 }
386 
387 std::vector<const xAOD::TrigEMCluster*> HLTCalo_L2CaloEMClustersMonitor::ifStepPassed(const std::string& chain) const{
388  Trig::FeatureRequestDescriptor featureRequestDescriptor;
389  featureRequestDescriptor.setChainGroup(chain);
390  featureRequestDescriptor.setCondition(TrigDefs::includeFailedDecisions);
391  std::vector<TrigCompositeUtils::LinkInfo<xAOD::TrigEMClusterContainer>> fVec = getTrigDecisionTool()->features<xAOD::TrigEMClusterContainer>(featureRequestDescriptor);
392  std::vector<const xAOD::TrigEMCluster*> clustersToMonitorForChain;
395  clustersToMonitorForChain.push_back( *(f.link) );
396  }
397  }
398  ATH_MSG_DEBUG("clustersToMonitorForChain.size(): "<<clustersToMonitorForChain.size());
399  for(auto &p: clustersToMonitorForChain)
400  ATH_MSG_DEBUG("clustersToMonitorForChain->et(): "<<p->et());
401  return clustersToMonitorForChain;
402 }
Trig::FeatureRequestDescriptor::setCondition
FeatureRequestDescriptor & setCondition(const unsigned int condition)
Set the Condition: TrigDefs::Physics - (default), only returns features from paths through the naviga...
Definition: FeatureRequestDescriptor.cxx:83
clus_kin::et
double et
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:11
HLTCalo_L2CaloEMClustersMonitor::m_hltChainsT0
std::string m_hltChainsT0
Definition: HLTCalo_L2CaloEMClustersMonitor.h:33
Trig::FeatureRequestDescriptor
Definition: FeatureRequestDescriptor.h:37
clus_kin::eta
double eta
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:12
BunchCrossingCondData
Definition: BunchCrossingCondData.h:23
clus_kin::parent
T parent
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:14
HLTCalo_L2CaloEMClustersMonitor::m_OFF_cont_key
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_OFF_cont_key
Definition: HLTCalo_L2CaloEMClustersMonitor.h:32
xAOD::TrigCaloCluster_v1::nCells
int nCells() const
get number of cells used from RoI
runLayerRecalibration.chain
chain
Definition: runLayerRecalibration.py:175
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
HLTCalo_L2CaloEMClustersMonitor::m_mongroup_name
std::string m_mongroup_name
Definition: HLTCalo_L2CaloEMClustersMonitor.h:36
Trig::FeatureRequestDescriptor::setChainGroup
FeatureRequestDescriptor & setChainGroup(const std::string &chainGroupName)
Set the desired Chain or Chain Group.
Definition: FeatureRequestDescriptor.cxx:77
HLTCalo_L2CaloEMClustersMonitor.h
AthMonitorAlgorithm::getTrigDecisionTool
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
Definition: AthMonitorAlgorithm.cxx:189
SG::ReadCondHandle::isValid
bool isValid()
Definition: ReadCondHandle.h:206
HLTCalo_L2CaloEMClustersMonitor::m_max_delta_r
float m_max_delta_r
Definition: HLTCalo_L2CaloEMClustersMonitor.h:41
HLTCalo_L2CaloEMClustersMonitor::ifStepPassed
std::vector< const xAOD::TrigEMCluster * > ifStepPassed(const std::string &chain) const
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:387
xAOD::EventInfo_v1::LAr
@ LAr
The LAr calorimeter.
Definition: EventInfo_v1.h:335
HLTCalo_L2CaloEMClustersMonitor::m_eventInfoDecorKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition: HLTCalo_L2CaloEMClustersMonitor.h:29
LArEventBitInfo.h
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition: MonitoredCollection.h:38
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
xAOD::CaloCluster_v1::clusterSize
ClusterSize clusterSize() const
Get cluster size.
Definition: CaloCluster_v1.cxx:364
LArEventBitInfo::NOISEBURSTVETO
@ NOISEBURSTVETO
Definition: LArEventBitInfo.h:13
HLTCalo_L2CaloEMClustersMonitor::initialize
virtual StatusCode initialize() override
initialize
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:32
HLTCalo_L2CaloEMClustersMonitor::m_OFF_types
std::vector< int > m_OFF_types
Definition: HLTCalo_L2CaloEMClustersMonitor.h:40
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
clus_kin::phi
double phi
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:13
Monitored
Generic monitoring tool for athena components.
Definition: GenericMonitoringTool.h:30
HLTCalo_L2CaloEMClustersMonitor::calculateDeltaR
float calculateDeltaR(float max_deltar, float eta_1, float phi_1, float eta_2, float phi_2) const
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:379
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
HLTCalo_L2CaloEMClustersMonitor::m_OFF_min_et
float m_OFF_min_et
Definition: HLTCalo_L2CaloEMClustersMonitor.h:39
BunchCrossingCondData::BunchCrossings
@ BunchCrossings
Distance in units of 25 nanoseconds.
Definition: BunchCrossingCondData.h:132
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
hist_file_dump.f
f
Definition: hist_file_dump.py:135
AthMonitorAlgorithm::fill
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
AthMonitorAlgorithm::GetEventInfo
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
Definition: AthMonitorAlgorithm.cxx:107
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
SG::ReadHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
HLTCalo_L2CaloEMClustersMonitor::HLTCalo_L2CaloEMClustersMonitor
HLTCalo_L2CaloEMClustersMonitor(const std::string &name, ISvcLocator *pSvcLocator)
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:17
BunchCrossingCondData::distanceFromFront
int distanceFromFront(const bcid_type bcid, const BunchDistanceType type=NanoSec) const
The distance of the specific bunch crossing from the front of the train.
Definition: BunchCrossingCondData.cxx:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CxxUtils::deltaPhi
T deltaPhi(T phiA, T phiB)
Return difference phiA - phiB in range [-pi, pi].
Definition: phihelper.h:42
phihelper.h
Helper for azimuthal angle calculations.
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
AthMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: AthMonitorAlgorithm.cxx:18
TrigCompositeUtils::LinkInfo
Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGr...
Definition: LinkInfo.h:28
HLTCalo_L2CaloEMClustersMonitor::m_HLT_cont_key
SG::ReadHandleKey< xAOD::TrigEMClusterContainer > m_HLT_cont_key
Definition: HLTCalo_L2CaloEMClustersMonitor.h:31
xAOD::EventInfo_v1::isEventFlagBitSet
bool isEventFlagBitSet(EventFlagSubDet subDet, size_t bit) const
Check one particular bit of one particular sub-detector.
Definition: EventInfo_v1.cxx:703
ReadDecorHandle.h
Handle class for reading a decoration on an object.
ACTIVE
@ ACTIVE
Definition: ZdcID.h:21
HLTCalo_L2CaloEMClustersMonitor::m_bunchCrossingKey
SG::ReadCondHandleKey< BunchCrossingCondData > m_bunchCrossingKey
Definition: HLTCalo_L2CaloEMClustersMonitor.h:30
Monitored::Scalar
Declare a monitored scalar variable.
Definition: MonitoredScalar.h:34
HLTCalo_L2CaloEMClustersMonitor::m_HLT_min_et
float m_HLT_min_et
Definition: HLTCalo_L2CaloEMClustersMonitor.h:38
HLTCalo_L2CaloEMClustersMonitor::m_HLT_high_et
float m_HLT_high_et
Definition: HLTCalo_L2CaloEMClustersMonitor.h:37
clus_kin
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:10
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
HLTCalo_L2CaloEMClustersMonitor::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:41