ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
10#include <memory>
11#include <string>
12
13class TFile;
14class TF1;
15
16namespace egGain {
17
18class GainTool {
19
20 public:
21 GainTool(const std::string& filenameTO, const std::string& filenameVar);
22 GainTool(const GainTool &) = delete;
23 GainTool & operator=(const GainTool &) = delete;
24 void Init(const std::string& filenameTO, const std::string& filenameVar);
25 virtual ~GainTool();
26
27 double CorrectionGainTool(double eta_input, double energy_input,
28 double energy_layer2_input,
31
32 private:
33 static const int m_NUM_ETA_BINS = 28;
34 static const int m_NUM_ENERGY_BINS = 3;
35 static const int m_NUM_UNCONV_ENERGY_BINS = 4;
36
37 std::unique_ptr<TFile> m_TOFile;
38 std::unique_ptr<TFile> m_varFile;
39
44};
45
46} // namespace egGain
47#endif
std::unique_ptr< TFile > m_varFile
Definition GainTool.h:38
static const int m_NUM_ENERGY_BINS
Definition GainTool.h:34
std::unique_ptr< TFile > m_TOFile
Definition GainTool.h:37
GainTool(const std::string &filenameTO, const std::string &filenameVar)
Definition GainTool.cxx:17
TF1 * m_funcTO[m_NUM_ETA_BINS]
Definition GainTool.h:40
TF1 * m_unconv_funcG[m_NUM_UNCONV_ENERGY_BINS][m_NUM_ETA_BINS]
Definition GainTool.h:43
double CorrectionGainTool(double eta_input, double energy_input, double energy_layer2_input, PATCore::ParticleType::Type ptype=PATCore::ParticleType::Electron) const
Definition GainTool.cxx:139
TF1 * m_conv_funcG[m_NUM_ENERGY_BINS][m_NUM_ETA_BINS]
Definition GainTool.h:42
GainTool(const GainTool &)=delete
TF1 * m_funcG[m_NUM_ENERGY_BINS][m_NUM_ETA_BINS]
Definition GainTool.h:41
static const int m_NUM_UNCONV_ENERGY_BINS
Definition GainTool.h:35
void Init(const std::string &filenameTO, const std::string &filenameVar)
Definition GainTool.cxx:37
virtual ~GainTool()
Definition GainTool.cxx:22
GainTool & operator=(const GainTool &)=delete
static const int m_NUM_ETA_BINS
Definition GainTool.h:33