ATLAS Offline Software
GainTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ELECTRONPHOTONFOURMOMENTUMCORRECTION_GAINTOOL_H
6 #define ELECTRONPHOTONFOURMOMENTUMCORRECTION_GAINTOOL_H
7 
8 #include <PATCore/PATCoreEnums.h>
9 
10 #include <memory>
11 #include <string>
12 
13 class TFile;
14 class TF1;
15 
16 namespace egGain {
17 
18 class GainTool {
19 
20  public:
21  GainTool(const std::string& filenameTO, const std::string& filenameVar);
22  void Init(const std::string& filenameTO, const std::string& filenameVar);
23  virtual ~GainTool();
24 
25  double CorrectionGainTool(double eta_input, double energy_input,
26  double energy_layer2_input,
29 
30  private:
31  static const int m_NUM_ETA_BINS = 28;
32  static const int m_NUM_ENERGY_BINS = 3;
33  static const int m_NUM_UNCONV_ENERGY_BINS = 4;
34 
35  std::unique_ptr<TFile> m_TOFile;
36  std::unique_ptr<TFile> m_varFile;
37 
42 };
43 
44 } // namespace egGain
45 #endif
egGain::GainTool::m_unconv_funcG
TF1 * m_unconv_funcG[m_NUM_UNCONV_ENERGY_BINS][m_NUM_ETA_BINS]
Definition: GainTool.h:41
egGain::GainTool::m_varFile
std::unique_ptr< TFile > m_varFile
Definition: GainTool.h:36
egGain::GainTool::GainTool
GainTool(const std::string &filenameTO, const std::string &filenameVar)
Definition: GainTool.cxx:17
PATCore::ParticleType::Type
Type
Definition: PATCoreEnums.h:35
egGain::GainTool
Definition: GainTool.h:18
egGain
Definition: EgammaCalibrationAndSmearingTool.h:33
egGain::GainTool::m_NUM_ETA_BINS
static const int m_NUM_ETA_BINS
Definition: GainTool.h:31
egGain::GainTool::m_funcG
TF1 * m_funcG[m_NUM_ENERGY_BINS][m_NUM_ETA_BINS]
Definition: GainTool.h:39
egGain::GainTool::m_NUM_ENERGY_BINS
static const int m_NUM_ENERGY_BINS
Definition: GainTool.h:32
egGain::GainTool::Init
void Init(const std::string &filenameTO, const std::string &filenameVar)
Definition: GainTool.cxx:37
egGain::GainTool::m_NUM_UNCONV_ENERGY_BINS
static const int m_NUM_UNCONV_ENERGY_BINS
Definition: GainTool.h:33
PATCoreEnums.h
egGain::GainTool::CorrectionGainTool
double CorrectionGainTool(double eta_input, double energy_input, double energy_layer2_input, PATCore::ParticleType::Type ptype=PATCore::ParticleType::Electron) const
Definition: GainTool.cxx:139
egGain::GainTool::m_funcTO
TF1 * m_funcTO[m_NUM_ETA_BINS]
Definition: GainTool.h:38
PATCore::ParticleType::Electron
@ Electron
Definition: PATCoreEnums.h:40
egGain::GainTool::m_conv_funcG
TF1 * m_conv_funcG[m_NUM_ENERGY_BINS][m_NUM_ETA_BINS]
Definition: GainTool.h:40
egGain::GainTool::~GainTool
virtual ~GainTool()
Definition: GainTool.cxx:22
egGain::GainTool::m_TOFile
std::unique_ptr< TFile > m_TOFile
Definition: GainTool.h:35