ATLAS Offline Software
LArCelldeadOTXTool.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_LArCelldeadOTXTool_H
6 #define LARCELLREC_LArCelldeadOTXTool_H
7 
8 
16 
17 class CaloCellContainer;
18 
19 class LArCelldeadOTXTool : public extends<AthAlgTool, ICaloCellMakerTool> {
20 public:
21  using base_class::base_class;
22 
23  ~LArCelldeadOTXTool() = default;
24  virtual StatusCode initialize() override final;
25  virtual StatusCode finalize() override final;
26  //Implements the ICaloCellMaker interface
27  virtual StatusCode process(CaloCellContainer* cellCollection, const EventContext& ctx) const override final;
28 
29  private:
30  SG::ReadHandleKey<LArRawSCContainer> m_SCKey{this, "keySC", "SC_ET","Key for SuperCells container"};
31  SG::ReadCondHandleKey<LArDeadOTXCorrFactors> m_factors{this,"SCFactors","LArDeadOTXCorrFactors"};
32  Gaudi::Property<int> m_scCut{this,"SCEneCut",70,"Do not use super-cells with values below this cut"};
33  Gaudi::Property<bool> m_testMode{this,"TestMode",false};
34 
35  mutable std::unordered_map<int,std::pair<float,int> > m_testMap ATLAS_THREAD_SAFE; //Only used in testMode + mtx-protected
36  mutable std::mutex m_mtx;
37 
38  mutable std::atomic<int> m_nWarnings{0};
39 
40 };
41 
42 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
LArCelldeadOTXTool::m_scCut
Gaudi::Property< int > m_scCut
Definition: LArCelldeadOTXTool.h:32
LArRawSCContainer.h
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
LArCelldeadOTXTool::ATLAS_THREAD_SAFE
std::unordered_map< int, std::pair< float, int > > m_testMap ATLAS_THREAD_SAFE
Definition: LArCelldeadOTXTool.h:35
BeamSpot::mutex
std::mutex mutex
Definition: InDetBeamSpotVertex.cxx:18
LArRawSCContainer
Container class for LArRawSC.
Definition: LArRawSCContainer.h:17
LArCelldeadOTXTool::process
virtual StatusCode process(CaloCellContainer *cellCollection, const EventContext &ctx) const override final
Definition: LArCelldeadOTXTool.cxx:24
LArCelldeadOTXTool::finalize
virtual StatusCode finalize() override final
Definition: LArCelldeadOTXTool.cxx:114
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
LArBadChannelCont.h
LArCelldeadOTXTool::m_SCKey
SG::ReadHandleKey< LArRawSCContainer > m_SCKey
Definition: LArCelldeadOTXTool.h:30
LArDeadOTXCorrFactors.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
LArCelldeadOTXTool
Definition: LArCelldeadOTXTool.h:19
LArCelldeadOTXTool::m_testMode
Gaudi::Property< bool > m_testMode
Definition: LArCelldeadOTXTool.h:33
columnar::final
CM final
Definition: ColumnAccessor.h:106
LArCelldeadOTXTool::m_nWarnings
std::atomic< int > m_nWarnings
Definition: LArCelldeadOTXTool.h:38
ReadCondHandleKey.h
LArCelldeadOTXTool::~LArCelldeadOTXTool
~LArCelldeadOTXTool()=default
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
ICaloCellMakerTool.h
SG::ReadCondHandleKey< LArDeadOTXCorrFactors >
LArCelldeadOTXTool::m_mtx
std::mutex m_mtx
Definition: LArCelldeadOTXTool.h:36
LArCelldeadOTXTool::m_factors
SG::ReadCondHandleKey< LArDeadOTXCorrFactors > m_factors
Definition: LArCelldeadOTXTool.h:31
private
#define private
Definition: xAODTruthCnvAlg.h:20
LArCelldeadOTXTool::initialize
virtual StatusCode initialize() override final
Definition: LArCelldeadOTXTool.cxx:11