Project
Loading...
Searching...
No Matches
o2::emcal::GainCalibrationFactors Class Reference

CCDB container for the gain calibration factors. More...

#include <GainCalibrationFactors.h>

Public Member Functions

 GainCalibrationFactors ()=default
 Constructor.
 
 ~GainCalibrationFactors ()=default
 Destructor.
 
bool operator== (const GainCalibrationFactors &other) const
 Comparison of two gain calibration factors containers.
 
void addGainCalibFactor (unsigned short iCell, float gainFactor)
 Add gain calibration factors to the container.
 
float getGainCalibFactors (unsigned short iCell) const
 Get the gain calibration factor for a certain cell.
 
TH1 * getHistogramRepresentation () const
 Convert the gain calibration factors to a histogram.
 

Detailed Description

CCDB container for the gain calibration factors.

Author
Hadi Hassan hadi..nosp@m.hass.nosp@m.an@ce.nosp@m.rn.c.nosp@m.h, Oak Ridge National Laboratory
Since
August 5th, 2019

The gain calibration factors can be added for each channel

TCP.addGainCalibFactor(iCell, gainValue);
CCDB container for the gain calibration factors.
void addGainCalibFactor(unsigned short iCell, float gainFactor)
Add gain calibration factors to the container.

One can read the gain calibration factors by calling

auto param = GCF.getGainCalibFactors(iCell);
This will return the gain calibration factor for a certain channel.
float getGainCalibFactors(unsigned short iCell) const
Get the gain calibration factor for a certain cell.
GLenum GLfloat param
Definition glcorearb.h:271
GLboolean GLboolean GLboolean GLboolean a
Definition glcorearb.h:1233

Definition at line 45 of file GainCalibrationFactors.h.

Constructor & Destructor Documentation

◆ GainCalibrationFactors()

o2::emcal::GainCalibrationFactors::GainCalibrationFactors ( )
default

Constructor.

◆ ~GainCalibrationFactors()

o2::emcal::GainCalibrationFactors::~GainCalibrationFactors ( )
default

Destructor.

Member Function Documentation

◆ addGainCalibFactor()

void GainCalibrationFactors::addGainCalibFactor ( unsigned short  iCell,
float  gainFactor 
)

Add gain calibration factors to the container.

Parameters
iCellis the cell index
gainFactoris the gain calibration factor
Exceptions
CalibContainerIndexExceptionin case the cell ID exceeds the range of cells in EMCAL

Definition at line 23 of file GainCalibrationFactors.cxx.

◆ getGainCalibFactors()

float GainCalibrationFactors::getGainCalibFactors ( unsigned short  iCell) const

Get the gain calibration factor for a certain cell.

Parameters
iCellis the cell index
Returns
gain calibration factor of the cell

Definition at line 31 of file GainCalibrationFactors.cxx.

◆ getHistogramRepresentation()

TH1 * GainCalibrationFactors::getHistogramRepresentation ( ) const

Convert the gain calibration factors to a histogram.

Returns
Histogram representation for gain calibration factors for each channel

Definition at line 39 of file GainCalibrationFactors.cxx.

◆ operator==()

bool GainCalibrationFactors::operator== ( const GainCalibrationFactors other) const

Comparison of two gain calibration factors containers.

Returns
true if the two list of gain calibration factors are the same, false otherwise
Exceptions
CalibContainerIndexExceptionin case the cell ID exceeds the range of cells in EMCAL

Definition at line 51 of file GainCalibrationFactors.cxx.


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