Belle II Software development
ECLCrystalCalib Class Reference

General DB object to store one calibration number per ECL crystal. More...

#include <ECLCrystalCalib.h>

Inheritance diagram for ECLCrystalCalib:
ECLCrystalLocalRunCalib

Public Member Functions

 ECLCrystalCalib ()
 Constructor.
 
const std::vector< float > & getCalibVector () const
 Get vector of calibration constants.
 
const std::vector< float > & getCalibUncVector () const
 Get vector of uncertainties on calibration constants.
 
void setCalibVector (const std::vector< float > &CalibConst, const std::vector< float > &CalibConstUnc)
 Set vector of constants with uncertainties.
 

Private Member Functions

 ClassDef (ECLCrystalCalib, 1)
 ClassDef.
 

Private Attributes

std::vector< float > m_CalibConst
 Calibration constants.
 
std::vector< float > m_CalibConstUnc
 Uncertainty on constants.
 

Detailed Description

General DB object to store one calibration number per ECL crystal.

Definition at line 27 of file ECLCrystalCalib.h.

Constructor & Destructor Documentation

◆ ECLCrystalCalib()

ECLCrystalCalib ( )
inline

Constructor.

Definition at line 32 of file ECLCrystalCalib.h.

std::vector< float > m_CalibConst
Calibration constants.
std::vector< float > m_CalibConstUnc
Uncertainty on constants.

Member Function Documentation

◆ getCalibUncVector()

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

Get vector of uncertainties on calibration constants.

Definition at line 38 of file ECLCrystalCalib.h.

38{return m_CalibConstUnc;};

◆ getCalibVector()

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

Get vector of calibration constants.

One entry per crystal.

Definition at line 35 of file ECLCrystalCalib.h.

35{return m_CalibConst;};

◆ setCalibVector()

void setCalibVector ( const std::vector< float > &  CalibConst,
const std::vector< float > &  CalibConstUnc 
)
inline

Set vector of constants with uncertainties.

One entry per crystal

Definition at line 41 of file ECLCrystalCalib.h.

42 {
43 if ((CalibConst.size() != ECLElementNumbers::c_NCrystals) ||
44 (CalibConstUnc.size() != ECLElementNumbers::c_NCrystals)) {
45 B2FATAL("ECLCrystalCalib: wrong size vector uploaded, " <<
46 CalibConst.size() << " " << CalibConstUnc.size() <<
47 " instead of " << ECLElementNumbers::c_NCrystals);
48 }
49 m_CalibConst = CalibConst;
50 m_CalibConstUnc = CalibConstUnc;
51 };
const int c_NCrystals
Number of crystals.

Member Data Documentation

◆ m_CalibConst

std::vector<float> m_CalibConst
private

Calibration constants.

Definition at line 54 of file ECLCrystalCalib.h.

◆ m_CalibConstUnc

std::vector<float> m_CalibConstUnc
private

Uncertainty on constants.

Definition at line 55 of file ECLCrystalCalib.h.


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