Belle II Software development
ECLCrystalLocalRunCalib Class Reference

ECLCrystalLocalRunCalib is designed to store results of the ECL local run calibration to database. More...

#include <ECLCrystalLocalRunCalib.h>

Inheritance diagram for ECLCrystalLocalRunCalib:
ECLCrystalCalib

Public Member Functions

 ECLCrystalLocalRunCalib (bool isNegAmpl=false)
 Constructor.
 
 ~ECLCrystalLocalRunCalib ()
 Destructor.
 
void setNumberOfEvents (const int &numberOfEvents)
 Set total number of events.
 
void setNumbersOfAcceptedEvents (const std::vector< int > &numberOfAcceptedEvents)
 Set number of accepted events for each cell id.
 
int getNumberOfEvents () const
 Get number of events.
 
void setExpRun (const int &exp, const int &run)
 Set experiment number and run number.
 
int getExp () const
 Get experiment number.
 
int getRun () const
 Get run number.
 
const std::vector< int > & getNumbersOfAcceptedEvents () const
 Get numbers of accepted events for each cell id.
 
bool isNegAmpl () const
 In case if the amplitude payload: check is there are negative amplitudes.
 
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 (ECLCrystalLocalRunCalib, 1)
 ClassDef.
 

Private Attributes

bool c_isNegAmpl
 In the case of time payload c_isNegAmpl is always false.
 
int m_exp
 Experiment number.
 
int m_run
 Run number.
 
int m_numberOfEvents
 Total number of events.
 
std::vector< int > m_numberOfAcceptedEvs
 Numbers of accepted events for each cell id.
 
std::vector< float > m_CalibConst
 Calibration constants.
 
std::vector< float > m_CalibConstUnc
 Uncertainty on constants.
 

Detailed Description

ECLCrystalLocalRunCalib is designed to store results of the ECL local run calibration to database.

Definition at line 24 of file ECLCrystalLocalRunCalib.h.

Constructor & Destructor Documentation

◆ ECLCrystalLocalRunCalib()

ECLCrystalLocalRunCalib ( bool  isNegAmpl = false)
explicit

Constructor.

Parameters
isNegAmplis true, when there are negative amplitude values.

Definition at line 12 of file ECLCrystalLocalRunCalib.cc.

12 :
15 m_exp(0), m_run(0),
17{
18}
ECLCrystalCalib()
Constructor.
bool c_isNegAmpl
In the case of time payload c_isNegAmpl is always false.
int m_numberOfEvents
Total number of events.
bool isNegAmpl() const
In case if the amplitude payload: check is there are negative amplitudes.

◆ ~ECLCrystalLocalRunCalib()

Destructor.

Definition at line 20 of file ECLCrystalLocalRunCalib.cc.

21{
22}

Member Function Documentation

◆ getCalibUncVector()

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

Get vector of uncertainties on calibration constants.

Definition at line 38 of file ECLCrystalCalib.h.

38{return m_CalibConstUnc;};
std::vector< float > m_CalibConstUnc
Uncertainty on constants.

◆ getCalibVector()

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

Get vector of calibration constants.

One entry per crystal.

Definition at line 35 of file ECLCrystalCalib.h.

35{return m_CalibConst;};
std::vector< float > m_CalibConst
Calibration constants.

◆ getExp()

int getExp ( ) const

Get experiment number.

Definition at line 52 of file ECLCrystalLocalRunCalib.cc.

53{
54 return m_exp;
55}

◆ getNumberOfEvents()

int getNumberOfEvents ( ) const

Get number of events.

Definition at line 35 of file ECLCrystalLocalRunCalib.cc.

36{
37 return m_numberOfEvents;
38}

◆ getNumbersOfAcceptedEvents()

const std::vector< int > & getNumbersOfAcceptedEvents ( ) const

Get numbers of accepted events for each cell id.

Definition at line 40 of file ECLCrystalLocalRunCalib.cc.

41{
43}
std::vector< int > m_numberOfAcceptedEvs
Numbers of accepted events for each cell id.

◆ getRun()

int getRun ( ) const

Get run number.

Definition at line 57 of file ECLCrystalLocalRunCalib.cc.

58{
59 return m_run;
60}

◆ isNegAmpl()

bool isNegAmpl ( ) const

In case if the amplitude payload: check is there are negative amplitudes.

Definition at line 62 of file ECLCrystalLocalRunCalib.cc.

63{
64 return c_isNegAmpl;
65}

◆ setCalibVector()

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

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.

◆ setExpRun()

void setExpRun ( const int &  exp,
const int &  run 
)

Set experiment number and run number.

Parameters
expis the experiment number.
runis the run number.

Definition at line 46 of file ECLCrystalLocalRunCalib.cc.

47{
48 m_exp = exp;
49 m_run = run;
50}

◆ setNumberOfEvents()

void setNumberOfEvents ( const int &  numberOfEvents)

Set total number of events.

Parameters
numberOfEventsis the number of events.

Definition at line 24 of file ECLCrystalLocalRunCalib.cc.

25{
26 m_numberOfEvents = numberOfEvents;
27}

◆ setNumbersOfAcceptedEvents()

void setNumbersOfAcceptedEvents ( const std::vector< int > &  numberOfAcceptedEvents)

Set number of accepted events for each cell id.

Parameters
numberOfAcceptedEventsis the numbers of accepted events.

Definition at line 29 of file ECLCrystalLocalRunCalib.cc.

31{
32 m_numberOfAcceptedEvs = numberOfAcceptedEvents;
33}

Member Data Documentation

◆ c_isNegAmpl

bool c_isNegAmpl
private

In the case of time payload c_isNegAmpl is always false.

In the case of amplitude payload c_isNegAmpl is true, if there are negative amplitude values, and is false otherwise.

Definition at line 87 of file ECLCrystalLocalRunCalib.h.

◆ m_CalibConst

std::vector<float> m_CalibConst
privateinherited

Calibration constants.

Definition at line 54 of file ECLCrystalCalib.h.

◆ m_CalibConstUnc

std::vector<float> m_CalibConstUnc
privateinherited

Uncertainty on constants.

Definition at line 55 of file ECLCrystalCalib.h.

◆ m_exp

int m_exp
private

Experiment number.

Definition at line 91 of file ECLCrystalLocalRunCalib.h.

◆ m_numberOfAcceptedEvs

std::vector<int> m_numberOfAcceptedEvs
private

Numbers of accepted events for each cell id.

Definition at line 104 of file ECLCrystalLocalRunCalib.h.

◆ m_numberOfEvents

int m_numberOfEvents
private

Total number of events.

Definition at line 99 of file ECLCrystalLocalRunCalib.h.

◆ m_run

int m_run
private

Run number.

Definition at line 95 of file ECLCrystalLocalRunCalib.h.


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