ATLAS Offline Software
HLTCalo_TopoCaloClustersMonitor.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 
10 struct clus_kin {
11  double et;
12  double eta;
13  double phi;
15 };
16 
17 HLTCalo_TopoCaloClustersMonitor::HLTCalo_TopoCaloClustersMonitor( const std::string& name, ISvcLocator* pSvcLocator )
18  : AthMonitorAlgorithm(name,pSvcLocator)
19 {
20  declareProperty("HLTContainer", m_HLT_cont_key = "HLT_TopoCaloClustersFS");
21  declareProperty("OFFContainer", m_OFF_cont_key = "CaloCalTopoClusters");
22  declareProperty("MonGroupName", m_mongroup_name = "TrigCaloMonitor");
23  declareProperty("HLTChainsT0", m_hltChainsT0 = "All");
24  declareProperty("HLTTypes", m_HLT_types);
25  declareProperty("OFFTypes", m_OFF_types);
26  declareProperty("HLThighET", m_HLT_high_et = 5000.0);
27  declareProperty("HLTMinET", m_HLT_min_et = -1.0);
28  declareProperty("OFFMinET", m_OFF_min_et = -1.0);
29  declareProperty("MatchType", m_match_types = false);
30  declareProperty("DoLC", m_doLC = false);
31  declareProperty("MaxDeltaR", m_max_delta_r = 0.04);
32 }
33 
34 
36 
37 
42  ATH_CHECK( m_eventInfoDecorKey.initialize() );
43 
45 }
46 
47 
49  using namespace Monitored;
50 
51  // Protect against noise bursts
53  ATH_CHECK(thisEvent.isValid());
54 
56  return StatusCode::SUCCESS;
57 
58  // Protect against HLT truncated results
59  if (m_trigDecTool->ExperimentalAndExpertMethods().isHLTTruncated()){
60  ATH_MSG_WARNING("HLTResult truncated, skipping event");
61  return StatusCode::SUCCESS;
62  }
63 
64  // Get HLT cluster collections
66  if (! hltCluster_readHandle.isValid() ) {
67  ATH_MSG_ERROR("evtStore() does not contain a cluster Collection with key " << m_HLT_cont_key);
68  return StatusCode::FAILURE;
69  }
70 
71  // Get OFF cluster collections
73  if (! offCluster_readHandle.isValid() ) {
74  ATH_MSG_ERROR("evtStore() does not contain a cluster Collection with key " << m_OFF_cont_key);
75  return StatusCode::FAILURE;
76  }
77 
78  // Bunch crossing
79  int bcid = ctx.eventID().bunch_crossing_id();
80  auto HLT_bc = Monitored::Scalar<int>("HLT_bc",-1);
81 
83  if (!bcidHdl.isValid()) {
84  ATH_MSG_ERROR( "Unable to retrieve BunchCrossing conditions object" );
85  return StatusCode::FAILURE;
86  }
87  const BunchCrossingCondData* bcData=*bcidHdl;
88 
91  // Cache expensive et, eta and phi //
92  // calculations for the clusters //
94 
95  // prepare HLT clusters
96  std::vector<clus_kin> vec_hlt_clusters;
97  std::vector<const xAOD::CaloCluster*> accepted_hlt_clusters = ifStepPassed(m_hltChainsT0);
98 
99  // For monitoring signature specific clusters
100  if (accepted_hlt_clusters.size()>0){
101  for (const auto* hlt_cluster : accepted_hlt_clusters) {
102  auto hlt_clus_et = hlt_cluster->et();
103  if (hlt_clus_et < m_HLT_min_et) continue;
104 
105  bool HLT_type_match = false;
106 
107  for (unsigned int n = 0; n < m_HLT_types.size(); ++n) {
108  if (hlt_cluster->clusterSize() == m_HLT_types[n]) { HLT_type_match = true; break; }
109  }
110 
111  if (!m_HLT_types.empty() && !HLT_type_match) continue;
112  vec_hlt_clusters.push_back({hlt_clus_et*0.001, hlt_cluster->eta(), hlt_cluster->phi(), hlt_cluster});
113  }
114  }
115  else{
116  for (const auto hlt_cluster : *hltCluster_readHandle) {
117  auto hlt_clus_et = hlt_cluster->et();
118  if (hlt_clus_et < m_HLT_min_et) continue;
119 
120  bool HLT_type_match = false;
121 
122  for (unsigned int n = 0; n < m_HLT_types.size(); ++n) {
123  if (hlt_cluster->clusterSize() == m_HLT_types[n]) { HLT_type_match = true; break; }
124  }
125 
126  if (!m_HLT_types.empty() && !HLT_type_match) continue;
127  vec_hlt_clusters.push_back({hlt_clus_et*0.001, hlt_cluster->eta(), hlt_cluster->phi(), hlt_cluster});
128  }
129  }
130 
131  // prepare OFF clusters
132  float off_clus_eta = 0;
133  float off_clus_phi = 0;
134  float off_clus_et = 0;
135  std::vector<clus_kin> vec_off_clusters;
136  for (const auto off_cluster : *offCluster_readHandle) {
137  if (m_doLC){
138  off_clus_et = off_cluster->et();
139  off_clus_eta = off_cluster->eta();
140  off_clus_phi = off_cluster->phi();
141  }
142  else{
143  off_clus_et = off_cluster->rawE()/std::cosh(std::abs(off_cluster->rawEta()));
144  off_clus_eta = off_cluster->rawEta();
145  off_clus_phi = off_cluster->rawPhi();
146  }
147  if (off_clus_et < m_OFF_min_et) continue;
148 
149  bool OFF_type_match = false;
150 
151  for (unsigned int n = 0; n < m_OFF_types.size(); ++n) {
152  if (off_cluster->clusterSize() == m_OFF_types[n]) { OFF_type_match = true; break; }
153  }
154 
155  if (!m_OFF_types.empty() && !OFF_type_match) continue;
156  vec_off_clusters.push_back({off_clus_et*0.001, off_clus_eta, off_clus_phi, off_cluster});
157  }
158 
159 
161  // HLT CLUSTERS //
163 
164  unsigned int n_hlt_clusters = 0;
165  unsigned int n_hlt_barrel_high_et_clusters = 0;
166  unsigned int n_hlt_clusters_no_match = 0;
167  unsigned int n_hlt_clusters_with_match = 0;
168 
169  // All HLT clusters
170  auto HLT_num = Monitored::Scalar<int>("HLT_num",0);
171  auto HLT_et = Monitored::Collection("HLT_et", vec_hlt_clusters, &clus_kin::et);
172  auto HLT_eta = Monitored::Collection("HLT_eta", vec_hlt_clusters, &clus_kin::eta);
173  auto HLT_phi = Monitored::Collection("HLT_phi", vec_hlt_clusters, &clus_kin::phi);
174  auto HLT_type = Monitored::Collection("HLT_type", vec_hlt_clusters, []( const clus_kin& clus) { return clus.parent->clusterSize(); } );
175  // nCells is a decorated variable not available for older input files
176  auto HLT_size = Monitored::Collection("HLT_size", vec_hlt_clusters, []( const clus_kin& clus) {
177  static const SG::ConstAccessor<int> nCellsAcc("nCells");
178  return nCellsAcc.withDefault(*clus.parent, 0);
179  });
180  auto HLT_time = Monitored::Collection("HLT_time", vec_hlt_clusters, []( const clus_kin& clus) { return clus.parent->time(); } );
181 
182  // HLT cut masks
183  std::vector<char> vec_hlt_barrel_high_et, vec_hlt_no_off_match, vec_hlt_with_off_match;
184  auto HLT_barrel_high_et = Monitored::Collection("HLT_barrel_high_et", vec_hlt_barrel_high_et);
185  auto HLT_no_OFF_match = Monitored::Collection("HLT_no_OFF_match", vec_hlt_no_off_match);
186  auto HLT_with_OFF_match = Monitored::Collection("HLT_with_OFF_match", vec_hlt_with_off_match);
187 
188  auto HLT_barrel_high_et_num = Monitored::Scalar<int>("HLT_barrel_high_et_num",0);
189  auto HLT_no_OFF_match_num = Monitored::Scalar<int>("HLT_no_OFF_match_num",0);
190  auto HLT_with_OFF_match_num = Monitored::Scalar<int>("HLT_with_OFF_match_num",0);
191 
192  // HLT clusters vs. OFF clusters
193  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_delta_time, vec_hlt_vs_off_resolution, vec_off_match_et;
194 
195  auto HLT_matched_fraction = Monitored::Scalar<float>("HLT_matched_fraction", 0.0);
196  auto HLT_vs_OFF_minimum_delta_r = Monitored::Collection("HLT_vs_OFF_minimum_delta_r", vec_hlt_vs_off_minimum_delta_r);
197  auto HLT_vs_OFF_delta_eta = Monitored::Collection("HLT_vs_OFF_delta_eta", vec_hlt_vs_off_delta_eta);
198  auto HLT_vs_OFF_delta_phi = Monitored::Collection("HLT_vs_OFF_delta_phi", vec_hlt_vs_off_delta_phi);
199  auto HLT_vs_OFF_delta_time = Monitored::Collection("HLT_vs_OFF_delta_time", vec_hlt_vs_off_delta_time);
200  auto HLT_vs_OFF_resolution = Monitored::Collection("HLT_vs_OFF_resolution", vec_hlt_vs_off_resolution);
201  auto OFF_match_et = Monitored::Collection("OFF_match_et", vec_off_match_et);
202 
203  const clus_kin *off_match = nullptr; // For matching
204 
205  // Loop over HLT clusters
206 
207  for (const auto& hlt_cluster : vec_hlt_clusters) {
208 
209  ++n_hlt_clusters;
210 
211  // high-ET clusters
212  if (hlt_cluster.et > (m_HLT_high_et * 0.001) && std::abs(hlt_cluster.eta) < 2.5) {
213  ++n_hlt_barrel_high_et_clusters;
214  vec_hlt_barrel_high_et.push_back(1);
215  }
216  else vec_hlt_barrel_high_et.push_back(0);
217 
218  // matching HLT clusters to OFF clusters
219 
220  float min_delta_r = 999999.9;
221 
222  for (const auto& off_cluster : vec_off_clusters) {
223  float delta_r = calculateDeltaR(m_max_delta_r, hlt_cluster.eta, hlt_cluster.phi, off_cluster.eta, off_cluster.phi);
224 
225  if (delta_r < min_delta_r) {
226 
227  min_delta_r = delta_r;
228  off_match = &off_cluster;
229  }
230 
231  } // End loop over OFF clusters
232 
233  vec_hlt_vs_off_minimum_delta_r.push_back(min_delta_r);
234 
235  // No OFF match
236  if (min_delta_r >= m_max_delta_r) {
237 
238  ++n_hlt_clusters_no_match;
239 
240  vec_off_match_et.push_back(0.);
241 
242  vec_hlt_vs_off_resolution.push_back(0.);
243  vec_hlt_vs_off_delta_eta.push_back(0.);
244  vec_hlt_vs_off_delta_phi.push_back(0.);
245  vec_hlt_vs_off_delta_time.push_back(0.);
246 
247  vec_hlt_no_off_match.push_back(1);
248  vec_hlt_with_off_match.push_back(0);
249  }
250 
251  // With OFF match
252  else {
253 
254  ++n_hlt_clusters_with_match;
255 
256  vec_off_match_et.push_back(off_match->et);
257 
258  vec_hlt_vs_off_resolution.push_back(((off_match->et - hlt_cluster.et) / off_match->et) * 100);
259  vec_hlt_vs_off_delta_eta.push_back(off_match->eta - hlt_cluster.eta);
260  vec_hlt_vs_off_delta_phi.push_back(calculateDeltaPhi(off_match->phi, hlt_cluster.phi));
261  vec_hlt_vs_off_delta_time.push_back(off_match->parent->time() - hlt_cluster.parent->time());
262 
263  vec_hlt_no_off_match.push_back(0);
264  vec_hlt_with_off_match.push_back(1);
265  }
266 
267  } // End loop over HLT clusters
268 
269  HLT_num = n_hlt_clusters;
270  HLT_barrel_high_et_num = n_hlt_barrel_high_et_clusters;
271  HLT_no_OFF_match_num = n_hlt_clusters_no_match;
272  HLT_with_OFF_match_num = n_hlt_clusters_with_match;
273  if (n_hlt_clusters>0) {
274  HLT_matched_fraction = static_cast<float>(n_hlt_clusters_with_match) / n_hlt_clusters;
275  }
276 
278  // OFF CLUSTERS //
280 
281  unsigned int n_off_clusters = 0;
282  unsigned int n_off_clusters_no_match = 0;
283  unsigned int n_off_clusters_with_match = 0;
284 
285  // OFF cluster
286  std::vector<float> vec_off_et, vec_off_eta, vec_off_phi, vec_off_time;
287  std::vector<int> vec_off_type;
288 
289  auto OFF_num = Monitored::Scalar<int>("OFF_num",0);
290  auto OFF_et = Monitored::Collection("OFF_et", vec_off_clusters, &clus_kin::et);
291  auto OFF_eta = Monitored::Collection("OFF_eta", vec_off_clusters, &clus_kin::eta);
292  auto OFF_phi = Monitored::Collection("OFF_phi", vec_off_clusters, &clus_kin::phi);
293  auto OFF_time = Monitored::Collection("OFF_time", vec_off_clusters, []( const clus_kin& clus) { return clus.parent->time(); } );
294  auto OFF_type = Monitored::Collection("OFF_type", vec_off_clusters, []( const clus_kin& clus) { return clus.parent->clusterSize(); } );
295 
296  // cut masks
297  std::vector<char> vec_off_no_hlt_match, vec_off_with_hlt_match;
298  auto OFF_no_HLT_match = Monitored::Collection("OFF_no_HLT_match", vec_off_no_hlt_match);
299  auto OFF_with_HLT_match = Monitored::Collection("OFF_with_HLT_match", vec_off_with_hlt_match);
300 
301  auto OFF_no_HLT_match_num = Monitored::Scalar<int>("OFF_no_HLT_match_num",0);
302  auto OFF_with_HLT_match_num = Monitored::Scalar<int>("OFF_with_HLT_match_num",0);
303 
304  // OFF clusters vs. HLT clusters
305  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_delta_time, vec_off_vs_hlt_resolution, vec_hlt_match_et;
306 
307  auto OFF_matched_fraction = Monitored::Scalar<float>("OFF_matched_fraction", 0.0);
308  auto OFF_vs_HLT_minimum_delta_r = Monitored::Collection("OFF_vs_HLT_minimum_delta_r", vec_off_vs_hlt_minimum_delta_r);
309  auto OFF_vs_HLT_delta_eta = Monitored::Collection("OFF_vs_HLT_delta_eta", vec_off_vs_hlt_delta_eta);
310  auto OFF_vs_HLT_delta_phi = Monitored::Collection("OFF_vs_HLT_delta_phi", vec_off_vs_hlt_delta_phi);
311  auto OFF_vs_HLT_delta_time = Monitored::Collection("OFF_vs_HLT_delta_time", vec_off_vs_hlt_delta_time);
312  auto OFF_vs_HLT_resolution = Monitored::Collection("OFF_vs_HLT_resolution", vec_off_vs_hlt_resolution);
313  auto HLT_match_et = Monitored::Collection("HLT_match_et", vec_hlt_match_et);
314 
315  const clus_kin *hlt_match = nullptr; // For matching
316 
317  // Loop over OFF clusters
318 
319  for (const auto& off_cluster: vec_off_clusters) {
320 
321  ++n_off_clusters;
322 
323  // matching OFF clusters to HLT clusters
324 
325  float min_delta_r = 999999.9;
326 
327  for (const auto& hlt_cluster : vec_hlt_clusters) {
328 
329  float delta_r = calculateDeltaR(m_max_delta_r, off_cluster.eta, off_cluster.phi, hlt_cluster.eta, hlt_cluster.phi);
330 
331  if (delta_r < min_delta_r) {
332 
333  min_delta_r = delta_r;
334  hlt_match = &hlt_cluster; // avoid HLT double counts?
335  }
336 
337  } // End loop over HLT clusters
338 
339  vec_off_vs_hlt_minimum_delta_r.push_back(min_delta_r);
340 
341  // No HLT match
342  if (min_delta_r >= m_max_delta_r) {
343 
344  ++n_off_clusters_no_match;
345 
346  vec_hlt_match_et.push_back(0.);
347 
348  vec_off_vs_hlt_resolution.push_back(0.);
349  vec_off_vs_hlt_delta_eta.push_back(0.);
350  vec_off_vs_hlt_delta_phi.push_back(0.);
351  vec_off_vs_hlt_delta_time.push_back(0.);
352 
353  vec_off_no_hlt_match.push_back(1);
354  vec_off_with_hlt_match.push_back(0);
355  }
356  // With HLT match
357  else {
358 
359  ++n_off_clusters_with_match;
360 
361  vec_hlt_match_et.push_back(hlt_match->et);
362 
363  vec_off_vs_hlt_resolution.push_back(((off_cluster.et - hlt_match->et) / off_cluster.et) * 100);
364  vec_off_vs_hlt_delta_eta.push_back(off_cluster.eta - hlt_match->eta);
365  vec_off_vs_hlt_delta_phi.push_back(calculateDeltaPhi(off_cluster.phi, hlt_match->phi));
366  vec_off_vs_hlt_delta_time.push_back(off_cluster.parent->time() - hlt_match->parent->time());
367 
368  vec_off_no_hlt_match.push_back(0);
369  vec_off_with_hlt_match.push_back(1);
370  }
371 
372  } // End loop over OFF clusters
373 
374 
375  OFF_num = n_off_clusters;
376  OFF_no_HLT_match_num = n_off_clusters_no_match;
377  OFF_with_HLT_match_num = n_off_clusters_with_match;
378  if (n_off_clusters>0) {
379  OFF_matched_fraction = static_cast<float>(n_off_clusters_with_match) / n_off_clusters;
380  }
381  const std::string chain = m_hltChainsT0;
382 
383  if(m_hltChainsT0 != "All"){
384  if(accepted_hlt_clusters.size()>0){
385  ATH_MSG_DEBUG("Filling for : "<<m_hltChainsT0);
386 
388  // HLT clusters
389  HLT_num, HLT_et, HLT_eta, HLT_phi, HLT_time, HLT_type, HLT_size, HLT_barrel_high_et_num, HLT_bc,
390 
391  // HLT cutmasks
392  HLT_barrel_high_et, HLT_no_OFF_match, HLT_with_OFF_match,
393 
394  // OFF clusters
395  OFF_num, OFF_et, OFF_eta, OFF_phi, OFF_time, OFF_type,
396 
397  // OFF cutmasks
398  OFF_no_HLT_match, OFF_with_HLT_match,
399 
400  // HLT matched to OFF
401  HLT_matched_fraction, HLT_no_OFF_match_num, HLT_vs_OFF_minimum_delta_r, HLT_with_OFF_match_num,
402  OFF_match_et, HLT_vs_OFF_resolution, HLT_vs_OFF_delta_eta, HLT_vs_OFF_delta_phi, HLT_vs_OFF_delta_time,
403 
404  // OFF matched to HLT
405  OFF_matched_fraction, OFF_no_HLT_match_num, OFF_vs_HLT_minimum_delta_r, OFF_with_HLT_match_num,
406  HLT_match_et, OFF_vs_HLT_resolution, OFF_vs_HLT_delta_eta, OFF_vs_HLT_delta_phi, OFF_vs_HLT_delta_time
407  );
408 
409  }
410  else if(getTrigDecisionTool()->isPassed(m_hltChainsT0)){
411  ATH_MSG_DEBUG("Filling for : "<<m_hltChainsT0);
413  // HLT clusters
414  HLT_num, HLT_et, HLT_eta, HLT_phi, HLT_time, HLT_type, HLT_size, HLT_barrel_high_et_num, HLT_bc,
415 
416  // HLT cutmasks
417  HLT_barrel_high_et, HLT_no_OFF_match, HLT_with_OFF_match,
418 
419  // OFF clusters
420  OFF_num, OFF_et, OFF_eta, OFF_phi, OFF_time, OFF_type,
421 
422  // OFF cutmasks
423  OFF_no_HLT_match, OFF_with_HLT_match,
424 
425  // HLT matched to OFF
426  HLT_matched_fraction, HLT_no_OFF_match_num, HLT_vs_OFF_minimum_delta_r, HLT_with_OFF_match_num,
427  OFF_match_et, HLT_vs_OFF_resolution, HLT_vs_OFF_delta_eta, HLT_vs_OFF_delta_phi, HLT_vs_OFF_delta_time,
428 
429  // OFF matched to HLT
430  OFF_matched_fraction, OFF_no_HLT_match_num, OFF_vs_HLT_minimum_delta_r, OFF_with_HLT_match_num,
431  HLT_match_et, OFF_vs_HLT_resolution, OFF_vs_HLT_delta_eta, OFF_vs_HLT_delta_phi, OFF_vs_HLT_delta_time
432  );
433  }
434  }
435  else {
436  ATH_MSG_DEBUG("Filling for : "<<m_hltChainsT0);
438  // HLT clusters
439  HLT_num, HLT_et, HLT_eta, HLT_phi, HLT_time, HLT_type, HLT_size, HLT_barrel_high_et_num, HLT_bc,
440 
441  // HLT cutmasks
442  HLT_barrel_high_et, HLT_no_OFF_match, HLT_with_OFF_match,
443 
444  // OFF clusters
445  OFF_num, OFF_et, OFF_eta, OFF_phi, OFF_time, OFF_type,
446 
447  // OFF cutmasks
448  OFF_no_HLT_match, OFF_with_HLT_match,
449 
450  // HLT matched to OFF
451  HLT_matched_fraction, HLT_no_OFF_match_num, HLT_vs_OFF_minimum_delta_r, HLT_with_OFF_match_num,
452  OFF_match_et, HLT_vs_OFF_resolution, HLT_vs_OFF_delta_eta, HLT_vs_OFF_delta_phi, HLT_vs_OFF_delta_time,
453 
454  // OFF matched to HLT
455  OFF_matched_fraction, OFF_no_HLT_match_num, OFF_vs_HLT_minimum_delta_r, OFF_with_HLT_match_num,
456  HLT_match_et, OFF_vs_HLT_resolution, OFF_vs_HLT_delta_eta, OFF_vs_HLT_delta_phi, OFF_vs_HLT_delta_time
457  );
458 
459  }
460  return StatusCode::SUCCESS;
461 }
462 
463 
464 float HLTCalo_TopoCaloClustersMonitor::calculateDeltaR( float max_deltar, float eta_1, float phi_1, float eta_2, float phi_2 ) const {
465  // reject the match as early as possible to avoid the expensive delta r calculation
466  if (std::abs(eta_1-eta_2) > max_deltar) return 99.9;
467  double DeltaPhi = calculateDeltaPhi(phi_1, phi_2);
468  if (DeltaPhi > max_deltar) return 99.9;
469  return sqrt( ((eta_1-eta_2)*(eta_1-eta_2)) + (DeltaPhi*DeltaPhi) );
470 }
471 
472 float HLTCalo_TopoCaloClustersMonitor::calculateDeltaPhi( float phi_1, float phi_2 ) const {
473  return std::abs( std::abs( std::abs( phi_1 - phi_2 ) - TMath::Pi() ) - TMath::Pi() );
474 }
475 
476 std::vector<const xAOD::CaloCluster*> HLTCalo_TopoCaloClustersMonitor::ifStepPassed(const std::string& chain) const{
477  Trig::FeatureRequestDescriptor featureRequestDescriptor;
478  featureRequestDescriptor.setChainGroup(chain);
479  featureRequestDescriptor.setCondition(TrigDefs::includeFailedDecisions);
480  std::vector<TrigCompositeUtils::LinkInfo<xAOD::CaloClusterContainer>> fVec = getTrigDecisionTool()->features<xAOD::CaloClusterContainer>(featureRequestDescriptor);
481  std::vector<const xAOD::CaloCluster*> clustersToMonitorForChain;
484  clustersToMonitorForChain.push_back( *(f.link) );
485  }
486  }
487  ATH_MSG_DEBUG("clustersToMonitorForChain.size(): "<<clustersToMonitorForChain.size());
488  for(auto &p: clustersToMonitorForChain)
489  ATH_MSG_DEBUG("clustersToMonitorForChain->et(): "<<p->et());
490  return clustersToMonitorForChain;
491 }
492 
493 
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:79
HLTCalo_TopoCaloClustersMonitor::m_max_delta_r
float m_max_delta_r
Definition: HLTCalo_TopoCaloClustersMonitor.h:45
clus_kin::et
double et
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:11
Trig::FeatureRequestDescriptor
Definition: TrigAnalysisHelpers/TrigAnalysisHelpers/FeatureRequestDescriptor.h:32
HLTCalo_TopoCaloClustersMonitor::m_match_types
bool m_match_types
Definition: HLTCalo_TopoCaloClustersMonitor.h:43
HLTCalo_TopoCaloClustersMonitor::m_OFF_types
std::vector< int > m_OFF_types
Definition: HLTCalo_TopoCaloClustersMonitor.h:42
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
runLayerRecalibration.chain
chain
Definition: runLayerRecalibration.py:175
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
AthMonitorAlgorithm::m_trigDecTool
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
Definition: AthMonitorAlgorithm.h:340
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
Trig::FeatureRequestDescriptor::setChainGroup
FeatureRequestDescriptor & setChainGroup(const std::string &chainGroupName)
Set the desired Chain or Chain Group.
Definition: FeatureRequestDescriptor.cxx:73
AthMonitorAlgorithm::getTrigDecisionTool
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
Definition: AthMonitorAlgorithm.cxx:194
HLTCalo_TopoCaloClustersMonitor::m_hltChainsT0
std::string m_hltChainsT0
Definition: HLTCalo_TopoCaloClustersMonitor.h:34
SG::ReadCondHandle::isValid
bool isValid()
Definition: ReadCondHandle.h:210
HLTCalo_TopoCaloClustersMonitor::m_OFF_min_et
float m_OFF_min_et
Definition: HLTCalo_TopoCaloClustersMonitor.h:40
SG::ConstAccessor< int >
xAOD::EventInfo_v1::LAr
@ LAr
The LAr calorimeter.
Definition: EventInfo_v1.h:335
HLTCalo_TopoCaloClustersMonitor::m_HLT_types
std::vector< int > m_HLT_types
Definition: HLTCalo_TopoCaloClustersMonitor.h:41
HLTCalo_TopoCaloClustersMonitor::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: HLTCalo_TopoCaloClustersMonitor.cxx:48
LArEventBitInfo.h
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition: MonitoredCollection.h:38
HLTCalo_TopoCaloClustersMonitor::m_mongroup_name
std::string m_mongroup_name
Definition: HLTCalo_TopoCaloClustersMonitor.h:37
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
LArEventBitInfo::NOISEBURSTVETO
@ NOISEBURSTVETO
Definition: LArEventBitInfo.h:13
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:62
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
clus_kin::phi
double phi
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:13
HLTCalo_TopoCaloClustersMonitor::~HLTCalo_TopoCaloClustersMonitor
virtual ~HLTCalo_TopoCaloClustersMonitor()
Definition: HLTCalo_TopoCaloClustersMonitor.cxx:35
Monitored
Generic monitoring tool for athena components.
Definition: GenericMonitoringTool.h:30
beamspotman.n
n
Definition: beamspotman.py:729
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
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
HLTCalo_TopoCaloClustersMonitor::calculateDeltaPhi
virtual float calculateDeltaPhi(float phi_1, float phi_2) const
Definition: HLTCalo_TopoCaloClustersMonitor.cxx:472
HLTCalo_TopoCaloClustersMonitor::m_HLT_cont_key
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_HLT_cont_key
Definition: HLTCalo_TopoCaloClustersMonitor.h:32
BunchCrossingCondData::BunchCrossings
@ BunchCrossings
Distance in units of 25 nanoseconds.
Definition: BunchCrossingCondData.h:132
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
HLTCalo_TopoCaloClustersMonitor::m_doLC
bool m_doLC
Definition: HLTCalo_TopoCaloClustersMonitor.h:44
hist_file_dump.f
f
Definition: hist_file_dump.py:140
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
HLTCalo_TopoCaloClustersMonitor::initialize
virtual StatusCode initialize() override
initialize
Definition: HLTCalo_TopoCaloClustersMonitor.cxx:38
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:794
HLTCalo_TopoCaloClustersMonitor::m_HLT_min_et
float m_HLT_min_et
Definition: HLTCalo_TopoCaloClustersMonitor.h:39
SG::ReadHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
HLTCalo_TopoCaloClustersMonitor::HLTCalo_TopoCaloClustersMonitor
HLTCalo_TopoCaloClustersMonitor(const std::string &name, ISvcLocator *pSvcLocator)
Definition: HLTCalo_TopoCaloClustersMonitor.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:38
HLTCalo_TopoCaloClustersMonitor::m_HLT_high_et
float m_HLT_high_et
Definition: HLTCalo_TopoCaloClustersMonitor.h:38
HLTCalo_TopoCaloClustersMonitor::ifStepPassed
std::vector< const xAOD::CaloCluster * > ifStepPassed(const std::string &chain) const
Definition: HLTCalo_TopoCaloClustersMonitor.cxx:476
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
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
HLTCalo_TopoCaloClustersMonitor::m_bunchCrossingKey
SG::ReadCondHandleKey< BunchCrossingCondData > m_bunchCrossingKey
Definition: HLTCalo_TopoCaloClustersMonitor.h:30
HLTCalo_TopoCaloClustersMonitor::m_eventInfoDecorKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition: HLTCalo_TopoCaloClustersMonitor.h:31
HLTCalo_TopoCaloClustersMonitor::calculateDeltaR
virtual float calculateDeltaR(float max_deltar, float eta_1, float phi_1, float eta_2, float phi_2) const
Definition: HLTCalo_TopoCaloClustersMonitor.cxx:464
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
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
clus_kin::parent
const xAOD::CaloCluster * parent
Definition: HLTCalo_TopoCaloClustersMonitor.cxx:14
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
ConstAccessor.h
Helper class to provide constant type-safe access to aux data.
Monitored::Scalar
Declare a monitored scalar variable.
Definition: MonitoredScalar.h:34
HLTCalo_TopoCaloClustersMonitor.h
clus_kin
Definition: HLTCalo_L2CaloEMClustersMonitor.cxx:10
SG::ConstAccessor::withDefault
const_reference_type withDefault(const ELT &e, const T &deflt) const
Fetch the variable for one element, as a const reference, with a default.
HLTCalo_TopoCaloClustersMonitor::m_OFF_cont_key
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_OFF_cont_key
Definition: HLTCalo_TopoCaloClustersMonitor.h:33