Belle II Software development
ECLReferenceCrystalPerCrateCalib Class Reference

General DB object to store one reference crystal per per ECL crate for calibration purposes. More...

#include <ECLReferenceCrystalPerCrateCalib.h>

Inheritance diagram for ECLReferenceCrystalPerCrateCalib:

Public Member Functions

 ECLReferenceCrystalPerCrateCalib ()
 Constructor.
 
const std::vector< short > & getReferenceCrystals () const
 Get vector of calibration constants.
 
void setCalibVector (const std::vector< short > &refCrystals)
 Set vector of constants with uncertainties.
 

Private Member Functions

 ClassDef (ECLReferenceCrystalPerCrateCalib, 3)
 ClassDef.
 

Private Attributes

std::vector< short > m_refCrystals
 Calibration constants.
 

Detailed Description

General DB object to store one reference crystal per per ECL crate for calibration purposes.

Definition at line 41 of file ECLReferenceCrystalPerCrateCalib.h.

Constructor & Destructor Documentation

◆ ECLReferenceCrystalPerCrateCalib()

Constructor.

Definition at line 46 of file ECLReferenceCrystalPerCrateCalib.h.

46: m_refCrystals() { };
std::vector< short > m_refCrystals
Calibration constants.

Member Function Documentation

◆ getReferenceCrystals()

const std::vector< short > & getReferenceCrystals ( ) const
inline

Get vector of calibration constants.

One entry per crate.

Definition at line 49 of file ECLReferenceCrystalPerCrateCalib.h.

49{return m_refCrystals;};

◆ setCalibVector()

void setCalibVector ( const std::vector< short > &  refCrystals)
inline

Set vector of constants with uncertainties.

One entry per crate.

Definition at line 52 of file ECLReferenceCrystalPerCrateCalib.h.

53 {
54 if (refCrystals.size() != 52) {B2FATAL("ECLReferenceCrystalPerCrateCalib: wrong size vector uploaded, " << refCrystals.size() << " instead of 52 (one crystal per crate)");}
55 for (int i = 0; i < 52; i++) {
56 if ((refCrystals[i] < 1) ||
57 (refCrystals[i] > ECLElementNumbers::c_NCrystals)) {
58 B2FATAL(
59 "ECLReferenceCrystalPerCrateCalib: cell id outside valid range from 1 to "
60 << ECLElementNumbers::c_NCrystals << ". Crate " << i <<
61 " has reference cid = " << refCrystals[i]);
62 }
63 }
64 m_refCrystals = refCrystals;
65 };
const int c_NCrystals
Number of crystals.

Member Data Documentation

◆ m_refCrystals

std::vector<short> m_refCrystals
private

Calibration constants.

Definition at line 68 of file ECLReferenceCrystalPerCrateCalib.h.


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