Belle II Software development
ECLLeakageCorrections.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11/* ROOT headers. */
12#include <TH2F.h>
13#include <TObject.h>
14
15namespace Belle2 {
22 class ECLLeakageCorrections: public TObject {
23
24
25//---------------------------------------------------
26 public:
27
36 { };
37
38 //---------------------------------------------------
39 //..Getters for the various calibration components
40
42 const std::vector<float>& getlogEnergiesFwd() const {return m_logEnergiesFwd;}
43
45 const std::vector<float>& getlogEnergiesBrl() const {return m_logEnergiesBrl;}
46
48 const std::vector<float>& getlogEnergiesBwd() const {return m_logEnergiesBwd;}
49
51 const TH2F getThetaCorrections() const {return m_thetaCorrections;}
52
54 const TH2F getPhiCorrections() const {return m_phiCorrections;}
55
57 const TH2F getnCrystalCorrections() const {return m_nCrystalCorrections;}
58
59
60 //---------------------------------------------------
61 //..Setters for the various calibration components
62
64 void setlogEnergiesFwd(const std::vector<float>& logEnergiesFwd) {m_logEnergiesFwd = logEnergiesFwd;}
65
67 void setlogEnergiesBrl(const std::vector<float>& logEnergiesBrl) {m_logEnergiesBrl = logEnergiesBrl;}
68
70 void setlogEnergiesBwd(const std::vector<float>& logEnergiesBwd) {m_logEnergiesBwd = logEnergiesBwd;}
71
73 void setThetaCorrections(const TH2F& thetaCorrections) {m_thetaCorrections = thetaCorrections;}
74
76 void setPhiCorrections(const TH2F& phiCorrections) {m_phiCorrections = phiCorrections;}
77
79 void setnCrystalCorrections(const TH2F& nCrystalCorrections) {m_nCrystalCorrections = nCrystalCorrections;}
80
81
82//---------------------------------------------------
83 private:
84 std::vector<float> m_logEnergiesFwd;
85 std::vector<float> m_logEnergiesBrl;
86 std::vector<float> m_logEnergiesBwd;
92 };
94}
DB object to store leakage corrections, including nCrys dependence
std::vector< float > m_logEnergiesFwd
log(energies) used to find constants in the forward endcap (GeV)
const TH2F getThetaCorrections() const
Get 2D histogram of theta-dependent constants (one column per thetaID & energy)
void setThetaCorrections(const TH2F &thetaCorrections)
Set the 2D histogram containing the theta corrections for each thetaID and energy.
void setlogEnergiesBrl(const std::vector< float > &logEnergiesBrl)
Set the vector of energies used to evaluate the leakage corrections in the barrel.
void setnCrystalCorrections(const TH2F &nCrystalCorrections)
Set the 2D histogram containing the nCrys corrections for each thetaID and energy.
const std::vector< float > & getlogEnergiesFwd() const
Get vector of log(energies) used to evaluate the leakage corrections in the forward endcap.
TH2F m_nCrystalCorrections
2D histogram containing nCrys-dependent correction for each thetaID & energy
TH2F m_phiCorrections
2D histogram containing phi-dependent correction for each thetaID & energy
void setlogEnergiesFwd(const std::vector< float > &logEnergiesFwd)
Set the vector of energies used to evaluate the leakage corrections in the forward endcap.
const TH2F getnCrystalCorrections() const
Get 2D histogram of nCrys dependent constants (one column per thetaID & energy)
void setPhiCorrections(const TH2F &phiCorrections)
Set the 2D histogram containing the phi corrections for each thetaID and energy.
void setlogEnergiesBwd(const std::vector< float > &logEnergiesBwd)
Set the vector of energies used to evaluate the leakage corrections in the backward endcap.
TH2F m_thetaCorrections
2D histogram containing theta-dependent correction for each thetaID & energy
const std::vector< float > & getlogEnergiesBwd() const
Get vector of log(energies) used in the backward endcap.
std::vector< float > m_logEnergiesBwd
log(energies) used to find constants in the backward endcap (GeV)
std::vector< float > m_logEnergiesBrl
log(energies) used to find constants in the barrel (GeV)
const TH2F getPhiCorrections() const
Get 2D histogram of phi-dependent constants (one column per thetaID & energy in barrel,...
const std::vector< float > & getlogEnergiesBrl() const
Get vector of log(energies) used in the barrel.
ClassDef(ECLLeakageCorrections, 2)
ClassDef.
Abstract base class for different kinds of events.