ATLAS Offline Software
LArDigitOscillationCorrTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #ifndef LARCALIBUTILS_LARDIGITOSCILLATIONCORRTOOL_H
13 #define LARCALIBUTILS_LARDIGITOSCILLATIONCORRTOOL_H
14 
16 #include "GaudiKernel/IIncidentListener.h"
17 #include "GaudiKernel/ToolHandle.h"
18 
21 #include "LArElecCalib/ILArRamp.h"
22 
26 
27 class LArDigitContainer;
28 class LArDigit;
29 
30 class LArDigitOscillationCorrTool: public extends<AthAlgTool,ILArDigitOscillationCorrTool,IIncidentListener>
31 {
32 public:
33  // constructor
34  LArDigitOscillationCorrTool(const std::string& type,
35  const std::string& name,
36  const IInterface* parent);
37 
38  // destructor
40 
41  // initialize and finalize methods
42  virtual StatusCode initialize() override;
43  virtual void handle(const Incident&) override;
44 
45  StatusCode calculateEventPhase(const LArDigitContainer &theDC) override;
47 
48 private:
49 
51 
53  double m_nSigma;
54  double m_eventPhase;
55  double m_omega;
56 
57  const LArEM_ID* m_emId{};
58  const LArFCAL_ID* m_fcalId{};
59  const LArHEC_ID* m_hecId{};
61 
62  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"};
63 };
64 
65 #endif
66 
67 
68 
69 
LArDigitOscillationCorrTool::correctLArDigits
StatusCode correctLArDigits(LArDigitContainer &theDC) override
Definition: LArDigitOscillationCorrTool.cxx:175
LArDigitOscillationCorrTool::m_priority
int m_priority
Definition: LArDigitOscillationCorrTool.h:52
LArDigitOscillationCorrTool::retrieveDB
StatusCode retrieveDB()
Definition: LArDigitOscillationCorrTool.cxx:244
LArDigitOscillationCorrTool::m_lar_on_id
const LArOnlineID * m_lar_on_id
Definition: LArDigitOscillationCorrTool.h:60
LArDigitOscillationCorrTool::LArDigitOscillationCorrTool
LArDigitOscillationCorrTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: LArDigitOscillationCorrTool.cxx:27
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
LArDigitOscillationCorrTool
Definition: LArDigitOscillationCorrTool.h:31
LArDigitOscillationCorrTool::m_hecId
const LArHEC_ID * m_hecId
Definition: LArDigitOscillationCorrTool.h:59
LArDigitOscillationCorrTool::initialize
virtual StatusCode initialize() override
Definition: LArDigitOscillationCorrTool.cxx:41
LArDigitOscillationCorrTool::m_eventPhase
double m_eventPhase
Definition: LArDigitOscillationCorrTool.h:54
LArDigitOscillationCorrTool::m_nSigma
double m_nSigma
Definition: LArDigitOscillationCorrTool.h:53
LArOnOffIdMapping.h
LArDigitOscillationCorrTool::m_fcalId
const LArFCAL_ID * m_fcalId
Definition: LArDigitOscillationCorrTool.h:58
LArDigit
Liquid Argon digit base class.
Definition: LArDigit.h:25
ILArDigitOscillationCorrTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArDigitOscillationCorrTool::m_omega
double m_omega
Definition: LArDigitOscillationCorrTool.h:55
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ILArH6Oscillation.h
ReadCondHandleKey.h
LArDigitOscillationCorrTool::~LArDigitOscillationCorrTool
~LArDigitOscillationCorrTool()=default
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
LArOnlineID
Definition: LArOnlineID.h:20
SG::ReadCondHandleKey< LArOnOffIdMapping >
ILArRamp.h
LArDigitOscillationCorrTool::handle
virtual void handle(const Incident &) override
Definition: LArDigitOscillationCorrTool.cxx:236
LArDigitOscillationCorrTool::calculateEventPhase
StatusCode calculateEventPhase(const LArDigitContainer &theDC) override
Definition: LArDigitOscillationCorrTool.cxx:65
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LArDigitContainer
Container class for LArDigit.
Definition: LArDigitContainer.h:24
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
LArDigitOscillationCorrTool::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArDigitOscillationCorrTool.h:62
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
LArDigitOscillationCorrTool::m_emId
const LArEM_ID * m_emId
Definition: LArDigitOscillationCorrTool.h:57
LArOnlineID.h