ATLAS Offline Software
LarEMSamplingFraction.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 #ifndef LAREMSAMPLINGFRACTION_H
6 #define LAREMSAMPLINGFRACTION_H
7 
8 
11 #include "CaloIdentifier/TileID.h"
16 
17 #include "StoreGate/StoreGateSvc.h"
21 
22 #include <vector>
23 #include <string>
24 #include "TTree.h"
25 
26 
28 {
29 
30  public:
31 
32  LarEMSamplingFraction(const std::string& name, ISvcLocator* pSvcLocator);
33  virtual ~LarEMSamplingFraction();
34  virtual StatusCode initialize() override;
35  virtual StatusCode execute() override;
36  virtual StatusCode finalize() override;
37 
38  private:
39 
42 
43  bool m_docells{true};
44 
45  int m_mc_pdg{0};
46  double m_mc_eta{0.};
47  double m_mc_phi{0.};
48  double m_mc_e{0.};
49  double m_mc_pt{0.};
50 
51  std::vector<Long64_t>* m_cell_identifier{nullptr};
52  std::vector<float>* m_cell_energy_reco{nullptr};
53  std::vector<float>* m_cell_energy_active_total_corrected{nullptr};
54  std::vector<float>* m_cell_energy_active_total{nullptr};
55  std::vector<float>* m_cell_energy_inactive_total{nullptr};
56  std::vector<int>* m_cell_sampling{nullptr};
57  std::vector<float>* m_cell_eta{nullptr};
58  std::vector<float>* m_cell_phi{nullptr};
59 
60  std::vector<float> *m_energy_reco{nullptr};
61  std::vector<float> *m_energy_hit{nullptr};
62 
63  std::vector<float> *m_energy_inactive_total{nullptr};
64  std::vector<float> *m_energy_inactive_em{nullptr};
65  std::vector<float> *m_energy_inactive_nonem{nullptr};
66  std::vector<float> *m_energy_inactive_inv{nullptr};
67  std::vector<float> *m_energy_inactive_esc{nullptr};
68 
69  std::vector<float> *m_energy_active_total_corrected{nullptr};
70  std::vector<float> *m_energy_active_total{nullptr};
71  std::vector<float> *m_energy_active_em{nullptr};
72  std::vector<float> *m_energy_active_nonem{nullptr};
73  std::vector<float> *m_energy_active_inv{nullptr};
74  std::vector<float> *m_energy_active_esc{nullptr};
75 
76  TTree* m_mytree{nullptr};
77 
78  std::vector<std::string> m_CalibrationHitContainerNames;
79 
81  , "CaloDetDescrManager"
82  , "CaloDetDescrManager"
83  , "SG Key for CaloDetDescrManager in the Condition Store" };
84 
85  const CaloCell_ID* m_calo_id{nullptr};
86 
87  const TileID * m_tileID{nullptr};
88  const TileHWID* m_tileHWID{nullptr};
90 
91  SG::ReadCondHandleKey<ILArfSampl> m_fSamplKey{this,"fSamplKey","LArfSamplSym","SG Key of LArfSampl object"};
92 
97  "TileSamplingFraction", "TileSamplingFraction", "Input Tile sampling fraction"};
98 
103  "TileCablingSvc", "TileCablingSvc", "Tile cabling service"};
104 };
105 
106 #endif //> !LarEMSamplingFraction_H
LarEMSamplingFraction::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: LarEMSamplingFraction.h:80
LarEMSamplingFraction::m_tileHWID
const TileHWID * m_tileHWID
Definition: LarEMSamplingFraction.h:88
TileCablingSvc.h
LarEMSamplingFraction::m_mc_phi
double m_mc_phi
Definition: LarEMSamplingFraction.h:47
LarEMSamplingFraction::m_mc_eta
double m_mc_eta
Definition: LarEMSamplingFraction.h:46
LarEMSamplingFraction::m_mc_e
double m_mc_e
Definition: LarEMSamplingFraction.h:48
LarEMSamplingFraction::m_energy_inactive_nonem
std::vector< float > * m_energy_inactive_nonem
Definition: LarEMSamplingFraction.h:65
LarEMSamplingFraction::m_energy_active_total
std::vector< float > * m_energy_active_total
Definition: LarEMSamplingFraction.h:70
LarEMSamplingFraction::m_mc_pdg
int m_mc_pdg
Definition: LarEMSamplingFraction.h:45
LarEMSamplingFraction::m_cell_energy_inactive_total
std::vector< float > * m_cell_energy_inactive_total
Definition: LarEMSamplingFraction.h:55
LarEMSamplingFraction::finalize
virtual StatusCode finalize() override
Definition: LarEMSamplingFraction.cxx:106
LarEMSamplingFraction
Definition: LarEMSamplingFraction.h:28
LarEMSamplingFraction::m_tileCablingSvc
ServiceHandle< TileCablingSvc > m_tileCablingSvc
Name of Tile cabling service.
Definition: LarEMSamplingFraction.h:102
LarEMSamplingFraction::m_cell_eta
std::vector< float > * m_cell_eta
Definition: LarEMSamplingFraction.h:57
LarEMSamplingFraction::m_tileSamplingFractionKey
SG::ReadCondHandleKey< TileSamplingFraction > m_tileSamplingFractionKey
Name of TileSamplingFraction in condition store.
Definition: LarEMSamplingFraction.h:96
LarEMSamplingFraction::m_docells
bool m_docells
Definition: LarEMSamplingFraction.h:43
LarEMSamplingFraction::execute
virtual StatusCode execute() override
Definition: LarEMSamplingFraction.cxx:114
LarEMSamplingFraction::~LarEMSamplingFraction
virtual ~LarEMSamplingFraction()
Definition: LarEMSamplingFraction.cxx:38
LarEMSamplingFraction::m_cell_identifier
std::vector< Long64_t > * m_cell_identifier
Definition: LarEMSamplingFraction.h:51
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
TileID.h
CaloCell_ID.h
AthAlgorithm.h
LarEMSamplingFraction::m_energy_inactive_total
std::vector< float > * m_energy_inactive_total
Definition: LarEMSamplingFraction.h:63
LarEMSamplingFraction::m_CalibrationHitContainerNames
std::vector< std::string > m_CalibrationHitContainerNames
Definition: LarEMSamplingFraction.h:78
LarEMSamplingFraction::LarEMSamplingFraction
LarEMSamplingFraction()
Default constructor:
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
TileHWID.h
LarEMSamplingFraction::m_energy_active_total_corrected
std::vector< float > * m_energy_active_total_corrected
Definition: LarEMSamplingFraction.h:69
LarEMSamplingFraction::m_energy_active_esc
std::vector< float > * m_energy_active_esc
Definition: LarEMSamplingFraction.h:74
LarEMSamplingFraction::initialize
virtual StatusCode initialize() override
Definition: LarEMSamplingFraction.cxx:43
LarEMSamplingFraction::m_energy_active_inv
std::vector< float > * m_energy_active_inv
Definition: LarEMSamplingFraction.h:73
TileSamplingFraction.h
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
LarEMSamplingFraction::m_calo_id
const CaloCell_ID * m_calo_id
Definition: LarEMSamplingFraction.h:85
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LarEMSamplingFraction::m_energy_inactive_inv
std::vector< float > * m_energy_inactive_inv
Definition: LarEMSamplingFraction.h:66
LarEMSamplingFraction::m_cell_phi
std::vector< float > * m_cell_phi
Definition: LarEMSamplingFraction.h:58
LarEMSamplingFraction::m_mc_pt
double m_mc_pt
Definition: LarEMSamplingFraction.h:49
LarEMSamplingFraction::m_cell_energy_active_total_corrected
std::vector< float > * m_cell_energy_active_total_corrected
Definition: LarEMSamplingFraction.h:53
LarEMSamplingFraction::m_tileID
const TileID * m_tileID
Definition: LarEMSamplingFraction.h:87
LarEMSamplingFraction::m_energy_reco
std::vector< float > * m_energy_reco
Definition: LarEMSamplingFraction.h:60
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
LarEMSamplingFraction::m_energy_active_em
std::vector< float > * m_energy_active_em
Definition: LarEMSamplingFraction.h:71
TileCablingService
Definition: TileCablingService.h:23
LarEMSamplingFraction::m_mytree
TTree * m_mytree
Definition: LarEMSamplingFraction.h:76
AthAlgorithm
Definition: AthAlgorithm.h:47
LarEMSamplingFraction::m_fSamplKey
SG::ReadCondHandleKey< ILArfSampl > m_fSamplKey
Definition: LarEMSamplingFraction.h:91
LarEMSamplingFraction::m_cell_sampling
std::vector< int > * m_cell_sampling
Definition: LarEMSamplingFraction.h:56
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LarEMSamplingFraction::m_tileCabling
const TileCablingService * m_tileCabling
Definition: LarEMSamplingFraction.h:89
SG::ReadCondHandleKey< CaloDetDescrManager >
LarEMSamplingFraction::m_cell_energy_active_total
std::vector< float > * m_cell_energy_active_total
Definition: LarEMSamplingFraction.h:54
LarEMSamplingFraction::m_energy_active_nonem
std::vector< float > * m_energy_active_nonem
Definition: LarEMSamplingFraction.h:72
CaloIdManager.h
LarEMSamplingFraction::m_energy_inactive_esc
std::vector< float > * m_energy_inactive_esc
Definition: LarEMSamplingFraction.h:67
StoreGateSvc.h
LarEMSamplingFraction::m_cell_energy_reco
std::vector< float > * m_cell_energy_reco
Definition: LarEMSamplingFraction.h:52
LarEMSamplingFraction::m_energy_hit
std::vector< float > * m_energy_hit
Definition: LarEMSamplingFraction.h:61
LarEMSamplingFraction::m_energy_inactive_em
std::vector< float > * m_energy_inactive_em
Definition: LarEMSamplingFraction.h:64
ILArfSampl.h
ServiceHandle< TileCablingSvc >