ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCellPosition2Ntuple.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// CaloCellPosition2Ntuple.h
6//
7
8#ifndef CALOCONDPHYSALGS_CALOCELLPOSITION2NTUPLE_H
9#define CALOCONDPHYSALGS_CALOCELLPOSITION2NTUPLE_H
10
11#include <string>
12
13// Gaudi includes
14
18#include "GaudiKernel/ITHistSvc.h"
20#include "TTree.h"
21
22class CaloCell_ID;
23
25
26 public:
27 // Gaudi style constructor and execution methods
29 CaloCellPosition2Ntuple(const std::string& name, ISvcLocator* pSvcLocator);
30
32 virtual StatusCode initialize() override;
34 virtual StatusCode execute() override;
36 virtual StatusCode finalize() override;
38 virtual StatusCode stop() override;
39
40 private:
41 //---------------------------------------------------
42 // Member variables
43 //---------------------------------------------------
44
45 ServiceHandle<ITHistSvc> m_thistSvc{this,"THistSvc","THistSvc"};
46
47 const CaloCell_ID* m_calo_id = nullptr;
48
49 SG::ReadCondHandleKey<CaloRec::CaloCellPositionShift> m_cellPosKey{this, "inputKey", "LArCellPositionShift", "Key for CaloCellPositionShift"};
50
51 SG::ReadCondHandleKey<CaloDetDescrManager> m_caloMgrKey{this, "CaloDetDescrManager", "CaloDetDescrManager",
52 "SG Key for CaloDetDescrManager in the Condition Store"};
53
54 int m_Hash;
56 float m_eta;
57 float m_phi;
59 float m_dx;
60 float m_dy;
61 float m_dz;
62 float m_volume;
63 TTree* m_tree;
64};
65#endif
Container for a cell-level position corrections to account for distorsion of calo shape in reconstruc...
Definition of CaloDetDescrManager.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
CaloCellPosition2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
virtual StatusCode finalize() override
standard Athena-Algorithm method
ServiceHandle< ITHistSvc > m_thistSvc
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
virtual StatusCode execute() override
standard Athena-Algorithm method
virtual StatusCode initialize() override
standard Athena-Algorithm method
virtual StatusCode stop() override
standard Athena-Algorithm method
SG::ReadCondHandleKey< CaloRec::CaloCellPositionShift > m_cellPosKey
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34