ATLAS Offline Software
Loading...
Searching...
No Matches
eFexEventDumper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5//***************************************************************************
6// eFexEventDumper - description:
7// An algorithm for debugging eFex simulation/hw mismatches by dumping out events to ROOT files.
8// Should be used for debugging individual events - this algorithm should not be used in standard transforms.
9// Each event is dumped to an individual interactive canvas in the output file.
10// Thread-safety has not been considered in its design - should be used in single-thread applications.
11// -------------------
12// begin : 24 04 2025
13// email : will@cern.ch
14//***************************************************************************/
15
16#ifndef eFexEventDumper_H
17#define eFexEventDumper_H
18
19// STL
20#include <string>
21
22// Athena/Gaudi
28#include "TFile.h"
29
30
31namespace LVL1 {
32
34 {
35 public:
36
37 eFexEventDumper(const std::string& name, ISvcLocator* pSvcLocator);
38 ~eFexEventDumper() = default;
39
40 virtual StatusCode initialize();
41 virtual StatusCode execute(const EventContext& ctx) const;
42
43 private:
44
45 Gaudi::Property<std::string> m_outputFileName {this, "OutputFile", "eFexEvents.root", "Name of the output file to dump to"};
46 SG::ReadHandleKey<xAOD::eFexTowerContainer> m_towerKey {this, "TowersKey", "", "Name of the eFexTowers to dump, if any"};
47 SG::ReadHandleKey<xAOD::eFexEMRoIContainer> m_emTOBKey {this, "EMRoIKey", "", "Name of the eFexEMRoIContainer to dump, if any"};
48 SG::ReadHandleKey<xAOD::eFexTauRoIContainer> m_tauTOBKey {this, "TauRoIKey", "", "Name of the eFexTauRoIContainer to dump, if any"};
49 SG::ReadCondHandleKey<CondAttrListCollection> m_noiseCutsKey{this,"NoiseCutsKey","/TRIGGER/L1Calo/V1/Calibration/EfexNoiseCuts",
50 "Key to noise cuts (AttrListCollection)"};
51
52 std::shared_ptr<TFile> m_file;
53
54 };
55
56} // end of LVL1 namespace
57#endif
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< xAOD::eFexTowerContainer > m_towerKey
virtual StatusCode execute(const EventContext &ctx) const
~eFexEventDumper()=default
virtual StatusCode initialize()
SG::ReadHandleKey< xAOD::eFexEMRoIContainer > m_emTOBKey
SG::ReadCondHandleKey< CondAttrListCollection > m_noiseCutsKey
std::shared_ptr< TFile > m_file
eFexEventDumper(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< xAOD::eFexTauRoIContainer > m_tauTOBKey
Gaudi::Property< std::string > m_outputFileName
Property holding a SG store/key/clid from which a ReadHandle is made.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...