ATLAS Offline Software
CaloCellEnergyCorr2Ntuple.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // CaloCellEnergyCorr2Ntuple.h
6 //
7 
8 #ifndef CALOCONDPHYSALGS_CALOCELLENERGYCORR2NTUPLE_H
9 #define CALOCONDPHYSALGS_CALOCELLENERGYCORR2NTUPLE_H
10 
11 #include <string>
12 
13 // Gaudi includes
14 
16 #include "GaudiKernel/ToolHandle.h"
21 
22 #include "GaudiKernel/ITHistSvc.h"
23 #include "TTree.h"
24 
26 
28 /* AthenaAttibuteList ctors and dtors are not thread
29  * safe leading to certain methods here not being Thread safe
30  */
31 
33 
34  public:
35  //Gaudi style constructor and execution methods
37  CaloCellEnergyCorr2Ntuple(const std::string& name, ISvcLocator* pSvcLocator) ATLAS_CTORDTOR_NOT_THREAD_SAFE;
40 
44  virtual StatusCode execute() override;
46  virtual StatusCode finalize() override;
49 
50  private:
51 
52  //---------------------------------------------------
53  // Member variables
54  //---------------------------------------------------
55  //=== blob storage
56  ITHistSvc* m_thistSvc;
57 
59 
60  std::string m_key;
61  std::string m_FolderName;
64  , "CaloDetDescrManager"
65  , "CaloDetDescrManager"
66  , "SG Key for CaloDetDescrManager in the Condition Store" };
67 
68  int m_Hash;
69  int m_OffId;
70  float m_eta;
71  float m_phi;
72  int m_layer;
74  float m_corr;
75  TTree* m_tree;
76 
79 
80 };
81 #endif
CaloCellEnergyCorr2Ntuple::m_detector
int m_detector
Definition: CaloCellEnergyCorr2Ntuple.h:73
CaloCellEnergyCorr2Ntuple::m_phi
float m_phi
Definition: CaloCellEnergyCorr2Ntuple.h:71
CaloCellEnergyCorr2Ntuple::m_calo_id
const CaloCell_ID * m_calo_id
Definition: CaloCellEnergyCorr2Ntuple.h:58
initialize
void initialize()
Definition: run_EoverP.cxx:894
CaloCellEnergyCorr2Ntuple::m_thistSvc
ITHistSvc * m_thistSvc
Definition: CaloCellEnergyCorr2Ntuple.h:56
CaloCellEnergyCorr2Ntuple::CaloCellEnergyCorr2Ntuple
CaloCellEnergyCorr2Ntuple(const std::string &name, ISvcLocator *pSvcLocator) ATLAS_CTORDTOR_NOT_THREAD_SAFE
Standard Athena-Algorithm Constructor.
Definition: CaloCellEnergyCorr2Ntuple.cxx:19
CaloCellEnergyCorr2Ntuple::m_AttrListColl
const DataHandle< AthenaAttributeList > m_AttrListColl
Definition: CaloCellEnergyCorr2Ntuple.h:62
PixelModuleFeMask_create_db.stop
int stop
Definition: PixelModuleFeMask_create_db.py:76
CaloCellEnergyCorr2Ntuple::m_eta
float m_eta
Definition: CaloCellEnergyCorr2Ntuple.h:70
CaloCellEnergyCorr2Ntuple::~CaloCellEnergyCorr2Ntuple
~CaloCellEnergyCorr2Ntuple() ATLAS_CTORDTOR_NOT_THREAD_SAFE
Default Destructor.
Definition: CaloCellEnergyCorr2Ntuple.cxx:42
CaloCellEnergyCorr2Ntuple
Definition: CaloCellEnergyCorr2Ntuple.h:32
CaloCellEnergyCorr2Ntuple::m_OffId
int m_OffId
Definition: CaloCellEnergyCorr2Ntuple.h:69
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloCell_ID.h
CaloCellEnergyCorr2Ntuple::m_corr
float m_corr
Definition: CaloCellEnergyCorr2Ntuple.h:74
CaloCellEnergyCorr2Ntuple::ATLAS_NOT_THREAD_SAFE
virtual StatusCode stop ATLAS_NOT_THREAD_SAFE() override
standard Athena-Algorithm method
AthAlgorithm.h
CaloCellEnergyCorr2Ntuple::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: CaloCellEnergyCorr2Ntuple.h:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloCellEnergyCorr2Ntuple::m_Hash
int m_Hash
Definition: CaloCellEnergyCorr2Ntuple.h:68
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Definition: PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:45
CaloCellEnergyCorr2Ntuple::m_runNumber
int m_runNumber
Definition: CaloCellEnergyCorr2Ntuple.h:77
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
CaloCellEnergyCorr2Ntuple::m_layer
int m_layer
Definition: CaloCellEnergyCorr2Ntuple.h:72
CaloCellEnergyCorr2Ntuple::m_key
std::string m_key
Definition: CaloCellEnergyCorr2Ntuple.h:60
CaloCellEnergyCorr2Ntuple::finalize
virtual StatusCode finalize() override
standard Athena-Algorithm method
Definition: CaloCellEnergyCorr2Ntuple.cxx:146
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CaloCellEnergyCorr2Ntuple::m_lumiBlock
int m_lumiBlock
Definition: CaloCellEnergyCorr2Ntuple.h:78
CaloCellEnergyCorr2Ntuple::m_FolderName
std::string m_FolderName
Definition: CaloCellEnergyCorr2Ntuple.h:61
DataHandle< AthenaAttributeList >
SG::ReadCondHandleKey< CaloDetDescrManager >
CaloIdManager.h
ATLAS_CTORDTOR_NOT_THREAD_SAFE
#define ATLAS_CTORDTOR_NOT_THREAD_SAFE
Definition: checker_macros.h:213
CaloCellEnergyCorr2Ntuple::execute
virtual StatusCode execute() override
standard Athena-Algorithm method
Definition: CaloCellEnergyCorr2Ntuple.cxx:76
checker_macros.h
Define macros for attributes used to control the static checker.
CaloCellEnergyCorr2Ntuple::ATLAS_NOT_THREAD_SAFE
virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE() override
standard Athena-Algorithm method
CaloCellEnergyCorr2Ntuple::m_tree
TTree * m_tree
Definition: CaloCellEnergyCorr2Ntuple.h:75