Belle II Software  release-08-01-10
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:
Collaboration diagram for ECLCrystalLocalRunCalib:

Public Member Functions

 ECLCrystalLocalRunCalib (bool isNegAmpl=false)
 Constructor. More...
 
 ~ECLCrystalLocalRunCalib ()
 Destructor.
 
void setNumberOfEvents (const int &numberOfEvents)
 Set total number of events. More...
 
void setNumbersOfAcceptedEvents (const std::vector< int > &numberOfAcceptedEvents)
 Set number of accepted events for each cell id. More...
 
int getNumberOfEvents () const
 Get number of events.
 
void setExpRun (const int &exp, const int &run)
 Set experiment number and run number. More...
 
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. More...
 
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. More...
 

Private Member Functions

 ClassDef (ECLCrystalLocalRunCalib, 1)
 ClassDef.
 

Private Attributes

bool c_isNegAmpl
 In the case of time payload c_isNegAmpl is always false. More...
 
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.

Member Function Documentation

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

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.


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