ATLAS Offline Software
LArNoisyROAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARCELLREC_LARNOISYROALG_H
6 #define LARCELLREC_LARNOISYROALG_H
7 
24 #include "GaudiKernel/ToolHandle.h"
35 
36 class CaloCellContainer;
37 
39 {
40  public:
41 
42  LArNoisyROAlg(const std::string &name,ISvcLocator *pSvcLocator);
43  virtual StatusCode initialize() override;
44  virtual StatusCode execute (const EventContext& ctx) const override;
45  virtual StatusCode finalize() override;
46 
47  typedef std::map<int, int> hvmap_type;
48 
49  private:
50  ToolHandle<ILArNoisyROTool> m_noisyROTool;
51 
52  Gaudi::Property<bool> m_isMC { this, "isMC", false, "Are we working with simu?" };
53  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this,"EventInfoKey","EventInfo"};
54  SG::WriteDecorHandleKey<xAOD::EventInfo> m_eventInfoDecorKey{this,"EventInfoDecorKey","EventInfo.larFlags"};
55  SG::ReadHandleKey<CaloCellContainer> m_CaloCellContainerName {this, "CaloCellContainer", "AllCalo", "input cell container key"};
56  SG::WriteHandleKey<LArNoisyROSummary> m_outputKey {this, "OutputKey", "LArNoisyROSummary", "output object key"};
57  SG::ReadCondHandleKey<LArBadFebCont> m_knownBadFEBsVecKey {this, "BadFEBsKey", "LArKnownBadFEBs", "key to read the known Bad FEBs"};
58  SG::ReadCondHandleKey<LArBadFebCont> m_knownMNBFEBsVecKey {this, "MNBFEBsKey", "LArKnownMNBFEBs", "key to read the known MNB FEBs"};
59  SG::ReadCondHandleKey<LArHVNMap> m_hvMapKey {this, "HVMapKey", "LArHVNcells", "key to read HVline Ncells map"};
60  SG::ReadCondHandleKey<CaloDetDescrManager> m_caloDetDescrMgrKey{this,"CaloDetDescrManager", "CaloDetDescrManager"};
61  SG::ReadCondHandleKey<LArHVIdMapping> m_hvCablingKey {this, "LArHVIdMapping", "LArHVIdMap", "SG key for HV ID mapping"};
62 
63 };
64 
65 
66 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey< xAOD::EventInfo >
LArNoisyROAlg::m_CaloCellContainerName
SG::ReadHandleKey< CaloCellContainer > m_CaloCellContainerName
Definition: LArNoisyROAlg.h:55
ILArNoisyROTool.h
LArNoisyROAlg::m_caloDetDescrMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Definition: LArNoisyROAlg.h:60
LArNoisyROAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: LArNoisyROAlg.cxx:42
LArNoisyROAlg
Find list of suspicious preamplifiers and Front End Boards from cell collection.
Definition: LArNoisyROAlg.h:39
LArNoisyROAlg::initialize
virtual StatusCode initialize() override
Definition: LArNoisyROAlg.cxx:27
SG::ReadHandleKey< xAOD::EventInfo >
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
LArNoisyROAlg::m_outputKey
SG::WriteHandleKey< LArNoisyROSummary > m_outputKey
Definition: LArNoisyROAlg.h:56
LArBadChannelCont.h
SG::WriteHandleKey< LArNoisyROSummary >
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
LArNoisyROAlg::hvmap_type
std::map< int, int > hvmap_type
Definition: LArNoisyROAlg.h:47
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArHVIdMapping.h
LArNoisyROAlg::m_hvMapKey
SG::ReadCondHandleKey< LArHVNMap > m_hvMapKey
Definition: LArNoisyROAlg.h:59
LArHVNMap.h
LArNoisyROAlg::m_knownMNBFEBsVecKey
SG::ReadCondHandleKey< LArBadFebCont > m_knownMNBFEBsVecKey
Definition: LArNoisyROAlg.h:58
LArNoisyROAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: LArNoisyROAlg.h:53
LArNoisyROAlg::m_noisyROTool
ToolHandle< ILArNoisyROTool > m_noisyROTool
Definition: LArNoisyROAlg.h:50
AthReentrantAlgorithm.h
LArNoisyROAlg::m_isMC
Gaudi::Property< bool > m_isMC
Definition: LArNoisyROAlg.h:52
LArNoisyROAlg::LArNoisyROAlg
LArNoisyROAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArNoisyROAlg.cxx:20
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArNoisyROAlg::m_hvCablingKey
SG::ReadCondHandleKey< LArHVIdMapping > m_hvCablingKey
Definition: LArNoisyROAlg.h:61
LArNoisyROSummary.h
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
EventInfo.h
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
LArNoisyROAlg::m_knownBadFEBsVecKey
SG::ReadCondHandleKey< LArBadFebCont > m_knownBadFEBsVecKey
Definition: LArNoisyROAlg.h:57
LArNoisyROAlg::m_eventInfoDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition: LArNoisyROAlg.h:54
LArNoisyROAlg::finalize
virtual StatusCode finalize() override
Definition: LArNoisyROAlg.cxx:182