Belle II Software  release-06-02-00
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 #include <TObject.h>
11 #include <framework/logging/Logger.h>
12 #include <TH2F.h>
13 
14 namespace Belle2 {
21  class ECLLeakageCorrections: public TObject {
22 
23 
24 //---------------------------------------------------
25  public:
26 
35  { };
36 
37  //---------------------------------------------------
38  //..Getters for the various calibration components
39 
41  const std::vector<float>& getlogEnergiesFwd() const {return m_logEnergiesFwd;}
42 
44  const std::vector<float>& getlogEnergiesBrl() const {return m_logEnergiesBrl;}
45 
47  const std::vector<float>& getlogEnergiesBwd() const {return m_logEnergiesBwd;}
48 
50  const TH2F getThetaCorrections() const {return m_thetaCorrections;}
51 
53  const TH2F getPhiCorrections() const {return m_phiCorrections;}
54 
56  const TH2F getnCrystalCorrections() const {return m_nCrystalCorrections;}
57 
58 
59  //---------------------------------------------------
60  //..Setters for the various calibration components
61 
63  void setlogEnergiesFwd(const std::vector<float>& logEnergiesFwd) {m_logEnergiesFwd = logEnergiesFwd;}
64 
66  void setlogEnergiesBrl(const std::vector<float>& logEnergiesBrl) {m_logEnergiesBrl = logEnergiesBrl;}
67 
69  void setlogEnergiesBwd(const std::vector<float>& logEnergiesBwd) {m_logEnergiesBwd = logEnergiesBwd;}
70 
72  void setThetaCorrections(const TH2F& thetaCorrections) {m_thetaCorrections = thetaCorrections;}
73 
75  void setPhiCorrections(const TH2F& phiCorrections) {m_phiCorrections = phiCorrections;}
76 
78  void setnCrystalCorrections(const TH2F& nCrystalCorrections) {m_nCrystalCorrections = nCrystalCorrections;}
79 
80 
81 //---------------------------------------------------
82  private:
83  std::vector<float> m_logEnergiesFwd;
84  std::vector<float> m_logEnergiesBrl;
85  std::vector<float> m_logEnergiesBwd;
91  };
93 }
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.
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 std::vector< float > & getlogEnergiesBwd() const
Get vector of log(energies) used in the backward 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 > & getlogEnergiesBrl() const
Get vector of log(energies) used in the barrel.
const std::vector< float > & getlogEnergiesFwd() const
Get vector of log(energies) used to evaluate the leakage corrections in the forward 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,...
ClassDef(ECLLeakageCorrections, 2)
ClassDef.
Abstract base class for different kinds of events.