ATLAS Offline Software
LArDigitOscillationCorrTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 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 static const InterfaceID IID_LArDigitOscillationCorrTool("LArDigitOscillationCorrTool", 1 , 0);
31 
33  virtual public ILArDigitOscillationCorrTool,
34  public IIncidentListener
35 {
36  public:
37 
38  // Retrieve interface ID
39  static const InterfaceID& interfaceID() { return IID_LArDigitOscillationCorrTool; }
40 
41  // constructor
42  LArDigitOscillationCorrTool(const std::string& type,
43  const std::string& name,
44  const IInterface* parent);
45 
46  // destructor
48 
49 // initialize and finalize methods
50  virtual StatusCode initialize();
51  virtual StatusCode finalize(){return StatusCode::SUCCESS;}
52  virtual void handle(const Incident&);
53 
54  // StatusCode getLArDigitOscillationCorrTool();
57 
58  private:
59 
61 
63  double m_nSigma;
64  double m_eventPhase;
65  double m_omega;
66 
67  const LArEM_ID* m_emId;
71 
72  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"};
73 };
74 
75 
76 #endif
77 
78 
79 
80 
LArDigitOscillationCorrTool::handle
virtual void handle(const Incident &)
Definition: LArDigitOscillationCorrTool.cxx:238
LArDigitOscillationCorrTool::m_priority
int m_priority
Definition: LArDigitOscillationCorrTool.h:62
LArDigitOscillationCorrTool::retrieveDB
StatusCode retrieveDB()
Definition: LArDigitOscillationCorrTool.cxx:246
ILArDigitOscillationCorrTool
Definition: ILArDigitOscillationCorrTool.h:11
LArDigitOscillationCorrTool::m_lar_on_id
const LArOnlineID * m_lar_on_id
Definition: LArDigitOscillationCorrTool.h:70
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:35
LArDigitOscillationCorrTool::m_hecId
const LArHEC_ID * m_hecId
Definition: LArDigitOscillationCorrTool.h:69
LArDigitOscillationCorrTool::m_eventPhase
double m_eventPhase
Definition: LArDigitOscillationCorrTool.h:64
LArDigitOscillationCorrTool::m_nSigma
double m_nSigma
Definition: LArDigitOscillationCorrTool.h:63
LArDigitOscillationCorrTool::calculateEventPhase
StatusCode calculateEventPhase(const LArDigitContainer &theDC)
Definition: LArDigitOscillationCorrTool.cxx:67
LArOnOffIdMapping.h
LArDigitOscillationCorrTool::m_fcalId
const LArFCAL_ID * m_fcalId
Definition: LArDigitOscillationCorrTool.h:68
LArDigit
Liquid Argon digit base class.
Definition: LArDigit.h:25
ILArDigitOscillationCorrTool.h
LArDigitOscillationCorrTool::~LArDigitOscillationCorrTool
~LArDigitOscillationCorrTool()
Definition: LArDigitOscillationCorrTool.h:47
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:65
LArDigitOscillationCorrTool::finalize
virtual StatusCode finalize()
Definition: LArDigitOscillationCorrTool.h:51
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ILArH6Oscillation.h
ReadCondHandleKey.h
LArDigitOscillationCorrTool::initialize
virtual StatusCode initialize()
Definition: LArDigitOscillationCorrTool.cxx:43
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
LArOnlineID
Definition: LArOnlineID.h:20
SG::ReadCondHandleKey< LArOnOffIdMapping >
ILArRamp.h
LArDigitOscillationCorrTool::correctLArDigits
StatusCode correctLArDigits(LArDigitContainer &theDC)
Definition: LArDigitOscillationCorrTool.cxx:177
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
AthAlgTool
Definition: AthAlgTool.h:26
LArDigitOscillationCorrTool::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArDigitOscillationCorrTool.h:72
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
LArDigitOscillationCorrTool::m_emId
const LArEM_ID * m_emId
Definition: LArDigitOscillationCorrTool.h:67
LArOnlineID.h
LArDigitOscillationCorrTool::interfaceID
static const InterfaceID & interfaceID()
Definition: LArDigitOscillationCorrTool.h:39