ATLAS Offline Software
CaloNoise2Ntuple.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 // CaloNoise2Ntuple.h
6 //
7 
8 #ifndef CALOCONDPHYSALGS_CALONOISE2NTUPLE_H
9 #define CALOCONDPHYSALGS_CALONOISE2NTUPLE_H
10 
11 #include <string>
12 
13 // Gaudi includes
14 
16 #include "GaudiKernel/ToolHandle.h"
20 
21 #include "GaudiKernel/ITHistSvc.h"
22 #include "TTree.h"
23 
25 
26 class CaloNoise;
27 
29 
30  public:
31  //Gaudi style constructor and execution methods
33  CaloNoise2Ntuple(const std::string& name, ISvcLocator* pSvcLocator);
35  virtual ~CaloNoise2Ntuple();
36 
38  virtual StatusCode initialize() override;
40  virtual StatusCode execute() override;
42  virtual StatusCode finalize() override;
44  virtual StatusCode stop() override;
45 
46  private:
47 
48  //---------------------------------------------------
49  // Member variables
50  //---------------------------------------------------
51  ServiceHandle<ITHistSvc> m_thistSvc{this,"THistSvc","THistSvc"};
52 
54 
56  { this, "TotalNoiseKey", "totalNoise", "SG key for total noise" };
58  { this, "ElecNoiseKey", "electronicNoise", "SG key for electronic noise" };
60  { this, "PileupNoiseKey", "pileupNoise", "SG key for pileup noise" };
62  {this,"CaloDetDescrManager","CaloDetDescrManager","SG Key for CaloDetDescrManager in the Condition Store" };
63 
64  std::string m_treeName;
65 
66  int m_iCool;
67  int m_SubHash;
68  int m_Hash;
69  int m_OffId;
70  float m_eta;
71  float m_phi;
72  int m_layer;
73  int m_Gain;
74  float m_noise;
75  float m_elecNoise;
76  float m_pileupNoise;
77  TTree* m_tree;
78 
81 
82 };
83 #endif
CaloNoise2Ntuple::m_iCool
int m_iCool
Definition: CaloNoise2Ntuple.h:66
CaloNoise2Ntuple::m_SubHash
int m_SubHash
Definition: CaloNoise2Ntuple.h:67
CaloNoise2Ntuple::m_elecNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_elecNoiseKey
Definition: CaloNoise2Ntuple.h:58
CaloNoise2Ntuple::m_phi
float m_phi
Definition: CaloNoise2Ntuple.h:71
CaloNoise2Ntuple::m_lumiBlock
int m_lumiBlock
Definition: CaloNoise2Ntuple.h:80
CaloNoise2Ntuple::m_noise
float m_noise
Definition: CaloNoise2Ntuple.h:74
CaloNoise2Ntuple::m_runNumber
int m_runNumber
Definition: CaloNoise2Ntuple.h:79
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloCell_ID.h
AthAlgorithm.h
CaloNoise2Ntuple::m_totalNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_totalNoiseKey
Definition: CaloNoise2Ntuple.h:56
CaloNoise2Ntuple::m_calo_id
const CaloCell_ID * m_calo_id
Definition: CaloNoise2Ntuple.h:53
CaloNoise2Ntuple::m_OffId
int m_OffId
Definition: CaloNoise2Ntuple.h:69
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloNoise2Ntuple::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: CaloNoise2Ntuple.h:51
CaloNoise2Ntuple::m_layer
int m_layer
Definition: CaloNoise2Ntuple.h:72
CaloNoise2Ntuple::execute
virtual StatusCode execute() override
standard Athena-Algorithm method
Definition: CaloNoise2Ntuple.cxx:75
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
AthAlgorithm
Definition: AthAlgorithm.h:47
CaloNoise2Ntuple::m_eta
float m_eta
Definition: CaloNoise2Ntuple.h:70
CaloNoise2Ntuple::m_treeName
std::string m_treeName
Definition: CaloNoise2Ntuple.h:64
ReadCondHandleKey.h
CaloNoise
Definition: CaloNoise.h:16
CaloNoise2Ntuple::m_elecNoise
float m_elecNoise
Definition: CaloNoise2Ntuple.h:75
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CaloNoise2Ntuple::m_tree
TTree * m_tree
Definition: CaloNoise2Ntuple.h:77
CaloNoise2Ntuple::m_Hash
int m_Hash
Definition: CaloNoise2Ntuple.h:68
SG::ReadCondHandleKey< CaloNoise >
CaloNoise2Ntuple::initialize
virtual StatusCode initialize() override
standard Athena-Algorithm method
Definition: CaloNoise2Ntuple.cxx:41
CaloNoise2Ntuple::m_Gain
int m_Gain
Definition: CaloNoise2Ntuple.h:73
CaloNoise2Ntuple
Definition: CaloNoise2Ntuple.py:1
CaloNoise2Ntuple::finalize
virtual StatusCode finalize() override
standard Athena-Algorithm method
Definition: CaloNoise2Ntuple.cxx:181
CaloNoise2Ntuple::~CaloNoise2Ntuple
virtual ~CaloNoise2Ntuple()
Default Destructor.
Definition: CaloNoise2Ntuple.cxx:36
CaloIdManager.h
CaloNoise2Ntuple::m_pileupNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_pileupNoiseKey
Definition: CaloNoise2Ntuple.h:60
CaloNoise2Ntuple::stop
virtual StatusCode stop() override
standard Athena-Algorithm method
Definition: CaloNoise2Ntuple.cxx:91
CaloNoise2Ntuple::m_pileupNoise
float m_pileupNoise
Definition: CaloNoise2Ntuple.h:76
CaloNoise2Ntuple::CaloNoise2Ntuple
CaloNoise2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
Definition: CaloNoise2Ntuple.cxx:13
ServiceHandle< ITHistSvc >
CaloNoise2Ntuple::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: CaloNoise2Ntuple.h:62