ATLAS Offline Software
Functions
TrigEDMChecker.cxx File Reference
#include "GaudiKernel/IToolSvc.h"
#include "AnalysisTriggerEvent/LVL1_ROI.h"
#include "AnalysisTriggerEvent/EmTau_ROI.h"
#include "AnalysisTriggerEvent/EnergySum_ROI.h"
#include "AnalysisTriggerEvent/Jet_ROI.h"
#include "xAODTrigger/TrigPassBitsContainer.h"
#include "xAODTrigger/TrigPassBits.h"
#include "xAODTrigger/TriggerMenuContainer.h"
#include "TrigNavStructure/TriggerElement.h"
#include "TrigConfHLTUtils/HLTUtils.h"
#include "AthContainers/debug.h"
#include "CxxUtils/checker_macros.h"
#include "xAODJet/JetContainer.h"
#include "xAODJet/JetConstituentVector.h"
#include "xAODTrigMissingET/TrigMissingETAuxContainer.h"
#include "xAODTrigMissingET/TrigMissingETContainer.h"
#include "TrigMissingEtEvent/TrigMissingETContainer.h"
#include "TrigMuonEvent/MuonFeature.h"
#include "TrigMuonEvent/TrigMuonEFInfoTrackContainer.h"
#include "TrigMuonEvent/TrigMuonEFInfoTrack.h"
#include "TrigMuonEvent/TrigMuonEFIsolationContainer.h"
#include "TrigMuonEvent/CombinedMuonFeatureContainer.h"
#include "TrigMuonEvent/TileMuFeatureContainer.h"
#include "TrigMuonEvent/TileTrackMuFeatureContainer.h"
#include "TrigParticle/TrigPhotonContainer.h"
#include "xAODTrigBphys/TrigBphysContainer.h"
#include "xAODTrigBphys/TrigBphys.h"
#include "TrigParticle/TrigEFBjetContainer.h"
#include "TrigParticle/TrigL2BjetContainer.h"
#include "TrigMuonEvent/TrigMuonEFContainer.h"
#include "TrigMuonEvent/TrigMuonEFInfoContainer.h"
#include "TrigMuonEvent/TrigMuonEFInfo.h"
#include "TrigMuonEvent/TrigMuonEFTrack.h"
#include "TrigMuonEvent/TrigMuonEFCbTrack.h"
#include "TrigParticle/TrigElectronContainer.h"
#include "TrigParticle/TrigTauContainer.h"
#include "TrigSteeringEvent/HLTResult.h"
#include "TrigInDetEvent/TrigInDetTrackCollection.h"
#include "TrigInDetTruthEvent/TrigInDetTrackTruthMap.h"
#include "TrigInDetEvent/TrigTauTracksInfo.h"
#include "TrigInDetEvent/TrigVertexCollection.h"
#include "TrigCaloEvent/TrigEMCluster.h"
#include "TrigCaloEvent/TrigEMClusterContainer.h"
#include "TrigCaloEvent/TrigTauClusterContainer.h"
#include "Particle/TrackParticleContainer.h"
#include "tauEvent/TauJetContainer.h"
#include "tauEvent/TauJet.h"
#include "xAODMuon/MuonContainer.h"
#include "xAODTracking/TrackParticleContainer.h"
#include "xAODTracking/VertexContainer.h"
#include "xAODTrigEgamma/TrigElectronContainer.h"
#include "xAODTrigEgamma/TrigElectron.h"
#include "xAODTrigEgamma/TrigPhotonContainer.h"
#include "xAODTrigEgamma/TrigPhoton.h"
#include "xAODTrigCalo/TrigEMCluster.h"
#include "xAODTrigCalo/TrigEMClusterContainer.h"
#include "xAODEgamma/ElectronContainer.h"
#include "xAODEgamma/Electron.h"
#include "xAODEgamma/PhotonContainer.h"
#include "xAODEgamma/Photon.h"
#include "xAODTau/TauJetContainer.h"
#include "xAODTau/TauJetAuxContainer.h"
#include "xAODTau/TauDefs.h"
#include "xAODTau/TauJet.h"
#include "TrigEDMChecker.h"
#include "xAODTrigMinBias/TrigSpacePointCountsContainer.h"
#include "xAODTrigMinBias/TrigSpacePointCounts.h"
#include "xAODTrigMinBias/TrigT2MbtsBitsContainer.h"
#include "xAODTrigMinBias/TrigT2MbtsBits.h"
#include "xAODTrigMinBias/TrigVertexCountsContainer.h"
#include "xAODTrigMinBias/TrigVertexCounts.h"
#include "xAODTrigMinBias/TrigTrackCountsContainer.h"
#include "xAODTrigMinBias/TrigTrackCounts.h"
#include "TrigSteeringEvent/TrigRoiDescriptor.h"
#include "TrigRoiConversion/RoiSerialise.h"
#include "xAODTrigger/RoiDescriptorStore.h"
#include "TrigT1Interfaces/RecEmTauRoI.h"
#include "AthViews/ViewHelper.h"
#include "AthViews/View.h"
#include "CxxUtils/starts_with.h"
#include <iostream>
#include <fstream>
#include <queue>

Go to the source code of this file.

Functions

StatusCode TrigEDMChecker::do_execute ATLAS_NOT_THREAD_SAFE ()
 Install fatal handler with default options. More...
 

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode TrigEDMChecker::do_execute ATLAS_NOT_THREAD_SAFE ( )
inline

Install fatal handler with default options.

This is meant to be easy to call from python via ctypes.

Install fatal handler with default options.

getLorentzAngle() Read LorentzAngle from HIST and write out into local DB

getBSErrors() Read BSErrors from Monitoring HIST and write out into local DB

getEfficiency() Read Efficiency from Monitoring HIST and write out into local DB

getRawOccupancy() Read RawOccupancy from Monitoring HIST and write out into local DB

getNoiseOccupancy() Read NoiseOccupancy from HIST and write out into local DB

getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats

Install fatal handler with default options.

called at the end of each athena event (can be used for eg.

called at the beginning of each athena event (can be used for eg.

return the simulation service ID

resetting dynamic selectors)

>= 14.2.10 /// -------------------------—

up to 14.2.0 /// -------------------------—

Definition at line 260 of file TrigEDMChecker.cxx.

260  {
261 
262  ATH_MSG_INFO( " ==========START of event===========" );
263 
264  if(m_doDumpTrackParticleContainer){
265  StatusCode sc = dumpTrackParticleContainer();
266  if (sc.isFailure()) {
267  ATH_MSG_ERROR("The method dumpTrackParticleContainer() failed");
268  }
269  }
270 
271  if(m_doDumpAll || m_doDumpLVL1_ROI ){
272  StatusCode sc = dumpLVL1_ROI();
273  if (sc.isFailure()) {
274  ATH_MSG_ERROR("The method dumpLVL1_ROI() failed");
275  }
276  }
277 
278  /*
279  if(m_doDumpAll || m_doDumpTrigMissingET){
280  StatusCode sc = dumpTrigMissingET();
281  if (sc.isFailure()) {
282  mLog << MSG::ERROR << "The method dumpTrigMissingET() failed" << endmsg;
283 
284  }
285  }
286  */
287 
288  if(m_doDumpAll || m_doDumpxAODTrigMissingET){
289  StatusCode sc = dumpxAODTrigMissingET();
290  if (sc.isFailure()) {
291  ATH_MSG_ERROR("The method dumpxAODTrigMissingET() failed");
292  }
293  }
294 
295  if(m_doDumpAll || m_doDumpMuonFeature){
296  StatusCode sc = dumpMuonFeature();
297  if (sc.isFailure()) {
298  ATH_MSG_ERROR("The method dumpMuonFeature() failed");
299  }
300  }
301 
302  if(m_doDumpAll || m_doDumpCombinedMuonFeature){
303  StatusCode sc = dumpCombinedMuonFeature();
304  if (sc.isFailure()) {
305  ATH_MSG_ERROR("The method dumpCombinedMuonFeature() failed");
306  }
307  sc = dumpCombinedMuonFeatureContainer();
308  if (sc.isFailure()) {
309  ATH_MSG_ERROR("The method dumpCombinedMuonFeatureContainer() failed");
310  return StatusCode::SUCCESS;
311  }
312  }
313 
314  if(m_doDumpAll || m_doDumpTileMuFeature) {
315  StatusCode sc = dumpTileMuFeatureContainer();
316  if (sc.isFailure()) {
317  ATH_MSG_ERROR("The method dumpTileMuFeatureContainer() failed");
318  }
319  }
320 
321  if(m_doDumpAll || m_doDumpTileTrackMuFeature) {
322  StatusCode sc = dumpTileTrackMuFeatureContainer();
323  if (sc.isFailure()) {
324  ATH_MSG_ERROR("The method dumpTileTrackMuFeatureContainer() failed");
325  }
326  }
327 
328  if(m_doDumpAll || m_doDumpTrigEMCluster){
329  StatusCode sc = dumpTrigEMCluster();
330  if (sc.isFailure()) {
331  ATH_MSG_ERROR("The method dumpTrigEMCluster() failed");
332  }
333  }
334 
335  if(m_doDumpAll || m_doDumpTrigEMClusterContainer){
336  StatusCode sc = dumpTrigEMClusterContainer();
337  if (sc.isFailure()) {
338  ATH_MSG_ERROR("The method dumpTrigEMClusterContainer() failed");
339  }
340  }
341 
342  if(m_doDumpAll || m_doDumpxAODTrigEMCluster){
343  StatusCode sc = dumpxAODTrigEMCluster();
344  if (sc.isFailure()) {
345  ATH_MSG_ERROR("The method dumpxAODTrigEMCluster() failed");
346  }
347  }
348 
349  if(m_doDumpAll || m_doDumpxAODTrigEMClusterContainer){
350  StatusCode sc = dumpxAODTrigEMClusterContainer();
351  if (sc.isFailure()) {
352  ATH_MSG_ERROR("The method dumpxAODTrigEMClusterContainer() failed");
353  }
354  }
355 
356  if(m_doDumpTrigTauClusterContainer){
357  StatusCode sc = dumpTrigTauClusterContainer();
358  if (sc.isFailure()) {
359  ATH_MSG_ERROR("The method dumpTrigTauClusterContainer() failed");
360  }
361  }
362 
363  if(m_doDumpAll || m_doDumpTrigPhotonContainer){
364  StatusCode sc = dumpTrigPhotonContainer();
365  if (sc.isFailure()) {
366  ATH_MSG_ERROR("The method dumpTrigPhotonContainer() failed");
367  }
368  }
369 
370  if(m_doDumpAll || m_doDumpxAODJetContainer){
371  StatusCode sc = dumpxAODJetContainer();
372  if (sc.isFailure()) {
373  ATH_MSG_ERROR("The method dumpxAODJetContainer() failed");
374  }
375  }
376 
377  if(m_doDumpAll || m_doDumpTrigL2BphysContainer){
378  StatusCode sc = dumpTrigL2BphysContainer();
379  if (sc.isFailure()) {
380  ATH_MSG_ERROR("The method dumpTrigL2BphysContainer() failed");
381  }
382  }
383 
384  if(m_doDumpAll || m_doDumpTrigEFBphysContainer){
385  StatusCode sc = dumpTrigEFBphysContainer();
386  if (sc.isFailure()) {
387  ATH_MSG_ERROR("The method dumpTrigEFBphysContainer() failed");
388  }
389  }
390 
391  if(m_doDumpAll || m_doDumpTrigEFBjetContainer){
392  StatusCode sc = dumpTrigEFBjetContainer();
393  if (sc.isFailure()) {
394  ATH_MSG_ERROR("The method dumpTrigEFBjetContainer() failed");
395  }
396  }
397 
398  if(m_doDumpAll || m_doDumpTrigL2BjetContainer){
399  StatusCode sc = dumpTrigL2BjetContainer();
400  if (sc.isFailure()) {
401  ATH_MSG_ERROR("The method dumpTrigL2BjetContainer() failed");
402  }
403  }
404 
405  if(m_doDumpAll || m_doDumpTrigMuonEFContainer){
406  StatusCode sc = dumpTrigMuonEFContainer();
407  if (sc.isFailure()) {
408  ATH_MSG_ERROR("The method dumpTrigMuonEFContainer() failed");
409  }
410  }
411 
412  if(m_doDumpAll || m_doDumpTrigMuonEFInfoContainer){
413  StatusCode sc = dumpTrigMuonEFInfoContainer();
414  if (sc.isFailure()) {
415  ATH_MSG_ERROR("The method dumpTrigMuonEFInfoContainer() failed");
416  }
417  }
418 
419  if(m_doDumpAll || m_doDumpTrigMuonEFIsolationContainer) {
420  StatusCode sc = dumpTrigMuonEFIsolationContainer();
421  if(sc.isFailure()) {
422  ATH_MSG_ERROR("The method dumpTrigMuonEFIsolationContainer() failed");
423  }
424  }
425 
426  if(m_doDumpAll || m_doDumpxAODMuonContainer) {
427  StatusCode sc = dumpxAODMuonContainer();
428  if(sc.isFailure()) {
429  ATH_MSG_ERROR("The method dumpxAODMuonContainer() failed");
430  }
431  }
432 
433  if(m_doDumpAll || m_doDumpTrigElectronContainer){
434  StatusCode sc = dumpTrigElectronContainer();
435  if (sc.isFailure()) {
436  ATH_MSG_ERROR("The method dumpTrigElectronContainer() failed");
437  }
438  }
439 
440  if(m_doDumpAll || m_doDumpxAODTrigElectronContainer){
441  StatusCode sc = dumpxAODTrigElectronContainer();
442  if (sc.isFailure()) {
443  ATH_MSG_ERROR("The method dumpxAODTrigElectronContainer() failed");
444  }
445  }
446 
447  if(m_doDumpAll || m_doDumpxAODTrigPhotonContainer){
448  StatusCode sc = dumpxAODTrigPhotonContainer();
449  if (sc.isFailure()) {
450  ATH_MSG_ERROR("The method dumpxAODTrigElectronContainer() failed");
451  }
452  }
453 
454  if(m_doDumpAll || m_doDumpxAODElectronContainer){
455  StatusCode sc = dumpxAODElectronContainer();
456  if (sc.isFailure()) {
457  ATH_MSG_ERROR("The method dumpxAODTrigElectronContainer() failed");
458  }
459  }
460 
461  if(m_doDumpAll || m_doDumpxAODPhotonContainer){
462  StatusCode sc = dumpxAODPhotonContainer();
463  if (sc.isFailure()) {
464  ATH_MSG_ERROR("The method dumpxAODTrigElectronContainer() failed");
465  }
466  }
467 
468  if(m_doDumpTrigTauContainer){
469  StatusCode sc = dumpTrigTauContainer();
470  if (sc.isFailure()) {
471  ATH_MSG_ERROR("The method dumpTrigTauContainer() failed");
472  }
473  }
474 
475  if(m_doDumpTrigTauTracksInfo){
476  StatusCode sc = dumpTrigTauTracksInfo();
477  if (sc.isFailure()) {
478  ATH_MSG_ERROR("The method dumpTrigTauTracksInfo() failed");
479  }
480  }
481 
482  if(m_doDumpAll || m_doDumpHLTResult){
483  StatusCode sc = dumpHLTResult();
484  if (sc.isFailure()) {
485  ATH_MSG_ERROR("The method dumpHLTResult() failed");
486  }
487  }
488 
489  if(m_doDumpTrigInDetTrackCollection){
490  StatusCode sc = dumpTrigInDetTrackCollection();
491  if (sc.isFailure()) {
492  ATH_MSG_ERROR("The method dumpTrigInDetTrackCollection() failed");
493  }
494  }
495 
496  if(m_doDumpAll || m_doDumpTrigVertexCollection){
497  StatusCode sc = dumpTrigVertexCollection();
498  if (sc.isFailure()) {
499  ATH_MSG_ERROR("The method dumpTrigVertexCollection() failed");
500  }
501  }
502 
503  if(m_doDumpAll || m_doDumpxAODTauJetContainer){
504  StatusCode sc = dumpxAODTauJetContainer();
505  if (sc.isFailure()) {
506  ATH_MSG_ERROR("The method dumpxAODTauJetContainer() failed");
507  }
508  }
509 
510  if(m_doDumpTauJetContainer){
511  StatusCode sc = dumpTauJetContainer();
512  if (sc.isFailure()) {
513  ATH_MSG_ERROR("The method dumpTauJetContainer() failed");
514  }
515  }
516 
517  if(m_doDumpAll || m_doDumpxAODTrackParticle){
518  StatusCode sc = dumpxAODTrackParticle();
519  if (sc.isFailure()) {
520  ATH_MSG_ERROR("The method dumpxAODTrackParticle() failed");
521  }
522  }
523 
524  if(m_doDumpAll || m_doDumpxAODVertex){
525  StatusCode sc = dumpxAODVertex();
526  if (sc.isFailure()) {
527  ATH_MSG_ERROR("The method dumpxAODVertex() failed");
528  }
529  }
530 
531  if (m_doDumpAll || m_doDumpxAODTrigMinBias){
532  StatusCode sc = dumpxAODTrigMinBias();
533  if (sc.isFailure()) {
534  ATH_MSG_ERROR("The method dumpxAODTrigMinBias() failed");
535  }
536  }
537 
538  if (m_doDumpTrigPassBits){
539  StatusCode sc = dumpTrigPassBits();
540  if (sc.isFailure()) {
541  ATH_MSG_ERROR("The method dumpTrigPassBits() failed");
542  }
543  }
544 
545  if (m_doDumpAll || m_doDumpStoreGate) {
546  ATH_MSG_DEBUG(evtStore()->dump());
547  }
548 
549  if (m_doDumpAll || m_doDumpNavigation) {
550  StatusCode sc = dumpNavigation();
551  if ( sc.isFailure() ) {
552  ATH_MSG_ERROR("The method dumpNavigation() failed");
553  }
554  }
555 
556  if (m_doDumpAll || m_doTDTCheck) {
557  ATH_CHECK(dumpTDT());
558  }
559 
560  if (m_doDumpAll || m_doDumpAllTrigComposite || m_dumpTrigCompositeContainers.size() > 0) {
561  ATH_CHECK( dumpTrigComposite() );
562  }
563 
564  if (m_doDumpAll || m_doDumpTrigCompsiteNavigation) {
565  std::string trigCompositeSteering;
566  bool pass;
567  ATH_CHECK(TrigCompositeNavigationToDot(trigCompositeSteering, pass));
568  const EventContext& context = Gaudi::Hive::currentContext();
569  const std::string evtNumber = std::to_string(context.eventID().event_number());
570  const std::string passStr = (pass ? "Pass" : "Fail");
571  std::ofstream ofile(std::string("NavGraph_" + m_dumpNavForChain + "_Ev" + evtNumber + "_" + passStr + ".dot").c_str());
572  ofile << trigCompositeSteering;
573  }
574 
575 
576 
577  ATH_MSG_INFO( " ==========END of event===========" );
578  return StatusCode::SUCCESS;
579 
580 }
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
validation.ofile
ofile
Definition: validation.py:96
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
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
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
FourMomUtils::dump
std::ostream & dump(std::ostream &out, const I4MomIter iBeg, const I4MomIter iEnd)
Helper to stream out a range of I4Momentum objects.
Definition: P4Dumper.h:24