ATLAS Offline Software
Loading...
Searching...
No Matches
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 <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.

Variables

static const int maxRepWarnings = 5
 Adapted from code by A.Hamilton to check trigger EDM; R.Goncalo 21/11/07.

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode TrigEDMChecker::do_execute ATLAS_NOT_THREAD_SAFE ( void )
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 259 of file TrigEDMChecker.cxx.

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

Variable Documentation

◆ maxRepWarnings

const int maxRepWarnings = 5
static

Adapted from code by A.Hamilton to check trigger EDM; R.Goncalo 21/11/07.

Definition at line 109 of file TrigEDMChecker.cxx.