Belle II Software development
ECLnOptimal Class Reference

DB object to store the optimal number of crystals to be used in a cluster energy sum, and the corresponding corrections for bias and contained (raw) energy. More...

#include <ECLnOptimal.h>

Inheritance diagram for ECLnOptimal:

Public Member Functions

 ECLnOptimal ()
 Constructor.
 
const std::vector< float > & getUpperBoundariesFwd () const
 Get vector of energies that specify energy ranges in the forward endcap.
 
const std::vector< float > & getUpperBoundariesBrl () const
 Get vector of energies that specify energy ranges in the barrel.
 
const std::vector< float > & getUpperBoundariesBwd () const
 Get vector of energies that specify energy ranges in the backward endcap.
 
const std::vector< int > & getGroupNumber () const
 Get the vector of group number for each cellID.
 
const TH2F getNOptimal () const
 Get 2D histogram of nOptimal (one xBin per group number, one yBin per energy range.
 
const TH2F getPeakFracEnergy () const
 Get 2D histogram of the peak fraction of contained energy, one yBin per energy group, 3 xBins per group number.
 
const TH2F getBias () const
 Get the 2D histogram of bias (reconstructed - true) from beam backgrounds, one yBin per energy group, 3 xBins per group number.
 
const TH2F getLogPeakEnergy () const
 Get the 2D histogram of log peak energies (GeV), one yBin per energy group, 3 xBins per group number.
 
void setUpperBoundariesFwd (const std::vector< float > &eUpperBoundariesFwd)
 Set vector of energies that specify energy ranges in the forward endcap.
 
void setUpperBoundariesBrl (const std::vector< float > &eUpperBoundariesBrl)
 Set vector of energies that specify energy ranges in the barrel.
 
void setUpperBoundariesBwd (const std::vector< float > &eUpperBoundariesBwd)
 Set vector of energies that specify energy ranges in the backward endcap.
 
void setGroupNumber (const std::vector< int > &groupNumber)
 Set the vector of group numbers for each crystal.
 
void setNOptimal (const TH2F &nOptimal)
 Set the 2D histogram of nOptimal.
 
void setPeakFracEnergy (const TH2F &peakFracEnergy)
 Set the 2D histogram of peak fractional contained energy.
 
void setBias (const TH2F &bias)
 Set the 2D histogram of beam background bias (reconstructed - true) (GeV)
 
void setLogPeakEnergy (const TH2F &logPeakEnergy)
 Set the 2D histogram of log of peak contained energy in GeV.
 

Private Member Functions

 ClassDef (ECLnOptimal, 1)
 ClassDef.
 

Private Attributes

std::vector< float > m_eUpperBoundariesFwd
 upper edges of the energy ranges in the forward endcap (GeV)
 
std::vector< float > m_eUpperBoundariesBrl
 upper edges of the energy ranges in the barrel (GeV)
 
std::vector< float > m_eUpperBoundariesBwd
 upper edges of the energy ranges in the backward endcap (GeV)
 
std::vector< int > m_groupNumber
 group number of each crystal
 
TH2F m_nOptimal
 2D histogram containing optimal number of crystals for each group number (x) and energy range (y)
 
TH2F m_peakFracEnergy
 2D histogram of peak fractional contained energy
 
TH2F m_bias
 2D histogram of bias = sum of ECLCalDigit energy minus true (GeV)
 
TH2F m_logPeakEnergy
 log of peak contained energy in GeV
 

Detailed Description

DB object to store the optimal number of crystals to be used in a cluster energy sum, and the corresponding corrections for bias and contained (raw) energy.

Found for 8 test energies. Crystals are typically collected into 8 groups per thetaID, except for a couple of rings in the endcaps, where there are 16 groups.

Definition at line 23 of file ECLnOptimal.h.

Constructor & Destructor Documentation

◆ ECLnOptimal()

ECLnOptimal ( )
inline

Constructor.

Definition at line 29 of file ECLnOptimal.h.

29 :
34 m_nOptimal(),
36 m_bias(),
38 { };
TH2F m_logPeakEnergy
log of peak contained energy in GeV
Definition: ECLnOptimal.h:119
TH2F m_nOptimal
2D histogram containing optimal number of crystals for each group number (x) and energy range (y)
Definition: ECLnOptimal.h:109
TH2F m_bias
2D histogram of bias = sum of ECLCalDigit energy minus true (GeV)
Definition: ECLnOptimal.h:118
TH2F m_peakFracEnergy
2D histogram of peak fractional contained energy
Definition: ECLnOptimal.h:117
std::vector< float > m_eUpperBoundariesBwd
upper edges of the energy ranges in the backward endcap (GeV)
Definition: ECLnOptimal.h:107
std::vector< float > m_eUpperBoundariesBrl
upper edges of the energy ranges in the barrel (GeV)
Definition: ECLnOptimal.h:106
std::vector< int > m_groupNumber
group number of each crystal
Definition: ECLnOptimal.h:108
std::vector< float > m_eUpperBoundariesFwd
upper edges of the energy ranges in the forward endcap (GeV)
Definition: ECLnOptimal.h:105

Member Function Documentation

◆ getBias()

const TH2F getBias ( ) const
inline

Get the 2D histogram of bias (reconstructed - true) from beam backgrounds, one yBin per energy group, 3 xBins per group number.

Definition at line 70 of file ECLnOptimal.h.

70{return m_bias;}

◆ getGroupNumber()

const std::vector< int > & getGroupNumber ( ) const
inline

Get the vector of group number for each cellID.

Definition at line 53 of file ECLnOptimal.h.

53{return m_groupNumber;}

◆ getLogPeakEnergy()

const TH2F getLogPeakEnergy ( ) const
inline

Get the 2D histogram of log peak energies (GeV), one yBin per energy group, 3 xBins per group number.

Definition at line 74 of file ECLnOptimal.h.

74{return m_logPeakEnergy;}

◆ getNOptimal()

const TH2F getNOptimal ( ) const
inline

Get 2D histogram of nOptimal (one xBin per group number, one yBin per energy range.

Definition at line 56 of file ECLnOptimal.h.

56{return m_nOptimal;}

◆ getPeakFracEnergy()

const TH2F getPeakFracEnergy ( ) const
inline

Get 2D histogram of the peak fraction of contained energy, one yBin per energy group, 3 xBins per group number.

Definition at line 66 of file ECLnOptimal.h.

66{return m_peakFracEnergy;}

◆ getUpperBoundariesBrl()

const std::vector< float > & getUpperBoundariesBrl ( ) const
inline

Get vector of energies that specify energy ranges in the barrel.

Definition at line 47 of file ECLnOptimal.h.

◆ getUpperBoundariesBwd()

const std::vector< float > & getUpperBoundariesBwd ( ) const
inline

Get vector of energies that specify energy ranges in the backward endcap.

Definition at line 50 of file ECLnOptimal.h.

◆ getUpperBoundariesFwd()

const std::vector< float > & getUpperBoundariesFwd ( ) const
inline

Get vector of energies that specify energy ranges in the forward endcap.

Definition at line 44 of file ECLnOptimal.h.

◆ setBias()

void setBias ( const TH2F &  bias)
inline

Set the 2D histogram of beam background bias (reconstructed - true) (GeV)

Definition at line 98 of file ECLnOptimal.h.

98{m_bias = bias;}

◆ setGroupNumber()

void setGroupNumber ( const std::vector< int > &  groupNumber)
inline

Set the vector of group numbers for each crystal.

Definition at line 89 of file ECLnOptimal.h.

89{m_groupNumber = groupNumber;}

◆ setLogPeakEnergy()

void setLogPeakEnergy ( const TH2F &  logPeakEnergy)
inline

Set the 2D histogram of log of peak contained energy in GeV.

Definition at line 101 of file ECLnOptimal.h.

101{m_logPeakEnergy = logPeakEnergy;}

◆ setNOptimal()

void setNOptimal ( const TH2F &  nOptimal)
inline

Set the 2D histogram of nOptimal.

Definition at line 92 of file ECLnOptimal.h.

92{m_nOptimal = nOptimal;}

◆ setPeakFracEnergy()

void setPeakFracEnergy ( const TH2F &  peakFracEnergy)
inline

Set the 2D histogram of peak fractional contained energy.

Definition at line 95 of file ECLnOptimal.h.

95{m_peakFracEnergy = peakFracEnergy;}

◆ setUpperBoundariesBrl()

void setUpperBoundariesBrl ( const std::vector< float > &  eUpperBoundariesBrl)
inline

Set vector of energies that specify energy ranges in the barrel.

Definition at line 83 of file ECLnOptimal.h.

83{m_eUpperBoundariesBrl = eUpperBoundariesBrl;}

◆ setUpperBoundariesBwd()

void setUpperBoundariesBwd ( const std::vector< float > &  eUpperBoundariesBwd)
inline

Set vector of energies that specify energy ranges in the backward endcap.

Definition at line 86 of file ECLnOptimal.h.

86{m_eUpperBoundariesBwd = eUpperBoundariesBwd;}

◆ setUpperBoundariesFwd()

void setUpperBoundariesFwd ( const std::vector< float > &  eUpperBoundariesFwd)
inline

Set vector of energies that specify energy ranges in the forward endcap.

Definition at line 80 of file ECLnOptimal.h.

80{m_eUpperBoundariesFwd = eUpperBoundariesFwd;}

Member Data Documentation

◆ m_bias

TH2F m_bias
private

2D histogram of bias = sum of ECLCalDigit energy minus true (GeV)

Definition at line 118 of file ECLnOptimal.h.

◆ m_eUpperBoundariesBrl

std::vector<float> m_eUpperBoundariesBrl
private

upper edges of the energy ranges in the barrel (GeV)

Definition at line 106 of file ECLnOptimal.h.

◆ m_eUpperBoundariesBwd

std::vector<float> m_eUpperBoundariesBwd
private

upper edges of the energy ranges in the backward endcap (GeV)

Definition at line 107 of file ECLnOptimal.h.

◆ m_eUpperBoundariesFwd

std::vector<float> m_eUpperBoundariesFwd
private

upper edges of the energy ranges in the forward endcap (GeV)

Definition at line 105 of file ECLnOptimal.h.

◆ m_groupNumber

std::vector<int> m_groupNumber
private

group number of each crystal

Definition at line 108 of file ECLnOptimal.h.

◆ m_logPeakEnergy

TH2F m_logPeakEnergy
private

log of peak contained energy in GeV

Definition at line 119 of file ECLnOptimal.h.

◆ m_nOptimal

TH2F m_nOptimal
private

2D histogram containing optimal number of crystals for each group number (x) and energy range (y)

Definition at line 109 of file ECLnOptimal.h.

◆ m_peakFracEnergy

TH2F m_peakFracEnergy
private

2D histogram of peak fractional contained energy

Definition at line 117 of file ECLnOptimal.h.


The documentation for this class was generated from the following file: