ATLAS Offline Software
CaloRescaleNoise.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 // CaloRescaleNoise.h
6 //
7 
8 #ifndef CALOCONDPHYSALGS_CALORESCALENOISE_H
9 #define CALOCONDPHYSALGS_CALORESCALENOISE_H
10 
11 
12 
13 // Gaudi includes
14 
16 #include "GaudiKernel/ToolHandle.h"
21 
23 #include "GaudiKernel/ITHistSvc.h"
24 
25 #include <string>
26 
27 class CaloNoise;
28 class TTree;
29 class CaloCell_ID;
30 
32 
33  public:
34  //Gaudi style constructor and execution methods
36  CaloRescaleNoise(const std::string& name, ISvcLocator* pSvcLocator);
38  virtual ~CaloRescaleNoise();
39 
41  virtual StatusCode initialize() override;
43  virtual StatusCode execute() override;
45  virtual StatusCode finalize() override;
47  virtual StatusCode stop() override;
48 
49  private:
50 
51  //---------------------------------------------------
52  // Member variables
53  //---------------------------------------------------
54  ServiceHandle<ITHistSvc> m_thistSvc{this,"THistSvc","THistSvc"};
55 
57 
59  { this, "TotalNoiseKey", "totalNoise", "SG key for total noise" };
61  { this, "ElecNoiseKey", "electronicNoise", "SG key for electronic noise" };
63  { this, "PileupNoiseKey", "pileupNoise", "SG key for pileup noise" };
64 
66  { this, "LArHVScaleCorr", "LArHVScaleCorrRecomputed", "" };
68  { this, "CablingKey", "LArOnOffIdMap", "SG Key of LArOnOffIdMapping object"};
70  { this, "OnlineLArHVScaleCorr", "LArHVScaleCorr", "" };
71 
73  { this, "CaloDetDescrManager", "CaloDetDescrManager", "SG Key for CaloDetDescrManager in the Condition Store" };
74 
75  int m_iCool{};
76  int m_SubHash{};
77  int m_Hash{};
78  int m_OffId{};
79  float m_eta{};
80  float m_phi{};
81  int m_layer{};
82  int m_Gain{};
83  float m_noise{};
84  float m_elecNoise{};
85  float m_pileupNoise{};
87  TTree* m_tree{};
88  bool m_absScaling{};
89 };
90 #endif
CaloRescaleNoise::stop
virtual StatusCode stop() override
standard Athena-Algorithm method
Definition: CaloRescaleNoise.cxx:89
CaloRescaleNoise::m_pileupNoise
float m_pileupNoise
Definition: CaloRescaleNoise.h:85
CaloRescaleNoise::m_layer
int m_layer
Definition: CaloRescaleNoise.h:81
CaloRescaleNoise::m_OffId
int m_OffId
Definition: CaloRescaleNoise.h:78
CaloRescaleNoise::CaloRescaleNoise
CaloRescaleNoise(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
Definition: CaloRescaleNoise.cxx:18
CaloRescaleNoise::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: CaloRescaleNoise.h:73
CaloRescaleNoise::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: CaloRescaleNoise.h:68
CaloRescaleNoise::m_pileupNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_pileupNoiseKey
Definition: CaloRescaleNoise.h:63
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloRescaleNoise::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: CaloRescaleNoise.h:54
CaloRescaleNoise::m_SubHash
int m_SubHash
Definition: CaloRescaleNoise.h:76
AthAlgorithm.h
CaloRescaleNoise::m_totalNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_totalNoiseKey
Definition: CaloRescaleNoise.h:59
CaloRescaleNoise::m_eta
float m_eta
Definition: CaloRescaleNoise.h:79
CaloRescaleNoise::m_Hash
int m_Hash
Definition: CaloRescaleNoise.h:77
LArOnOffIdMapping.h
CaloRescaleNoise::m_elecNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_elecNoiseKey
Definition: CaloRescaleNoise.h:61
ILArHVScaleCorr.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
CaloNoise
Definition: CaloNoise.h:16
CaloRescaleNoise::m_onlineScaleCorrKey
SG::ReadCondHandleKey< ILArHVScaleCorr > m_onlineScaleCorrKey
Definition: CaloRescaleNoise.h:70
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CaloRescaleNoise::m_elecNoiseRescaled
float m_elecNoiseRescaled
Definition: CaloRescaleNoise.h:86
CaloRescaleNoise::initialize
virtual StatusCode initialize() override
standard Athena-Algorithm method
Definition: CaloRescaleNoise.cxx:45
CaloRescaleNoise::m_iCool
int m_iCool
Definition: CaloRescaleNoise.h:75
SG::ReadCondHandleKey< CaloNoise >
CaloRescaleNoise::m_elecNoise
float m_elecNoise
Definition: CaloRescaleNoise.h:84
CaloRescaleNoise::m_phi
float m_phi
Definition: CaloRescaleNoise.h:80
CaloRescaleNoise::m_scaleCorrKey
SG::ReadCondHandleKey< ILArHVScaleCorr > m_scaleCorrKey
Definition: CaloRescaleNoise.h:66
CaloRescaleNoise::m_noise
float m_noise
Definition: CaloRescaleNoise.h:83
CaloRescaleNoise::~CaloRescaleNoise
virtual ~CaloRescaleNoise()
Default Destructor.
Definition: CaloRescaleNoise.cxx:40
CaloRescaleNoise
Definition: CaloRescaleNoise.h:31
CaloIdManager.h
CaloRescaleNoise::m_tree
TTree * m_tree
Definition: CaloRescaleNoise.h:87
CaloRescaleNoise::m_absScaling
bool m_absScaling
Definition: CaloRescaleNoise.h:88
CaloRescaleNoise::execute
virtual StatusCode execute() override
standard Athena-Algorithm method
Definition: CaloRescaleNoise.cxx:82
CaloRescaleNoise::m_calo_id
const CaloCell_ID * m_calo_id
Definition: CaloRescaleNoise.h:56
CaloRescaleNoise::finalize
virtual StatusCode finalize() override
standard Athena-Algorithm method
Definition: CaloRescaleNoise.cxx:224
CaloRescaleNoise::m_Gain
int m_Gain
Definition: CaloRescaleNoise.h:82
ServiceHandle< ITHistSvc >