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

CCDB container for pedestal values. More...

#include <Pedestal.h>

Public Member Functions

 Pedestal ()=default
 Constructor.
 
 ~Pedestal ()=default
 Destructor.
 
bool operator== (const Pedestal &other) const
 Comparison of two pedestal containers.
 
void addPedestalValue (unsigned short cellID, short pedestal, bool isLowGain, bool isLEDMON)
 Add pedestal to the container.
 
short getPedestalValue (unsigned short cellID, bool isLowGain, bool isLEDMON) const
 Get the time calibration coefficient for a certain cell.
 
TH1 * getHistogramRepresentation (bool isLowGain, bool isLEDMON) const
 Convert the pedestal container to a histogram.
 
TH2 * getHistogramRepresentation2D (bool isLowGain, bool isLEDMON) const
 Convert the pedestal container to a 2D histogram.
 

Detailed Description

CCDB container for pedestal values.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Oak Ridge National Laboratory
Since
July 16th, 2019

Pedestal values can be added for each channel by

ped.addPedestalValue(23, 3, false);
CCDB container for pedestal values.
Definition Pedestal.h:48
void addPedestalValue(unsigned short cellID, short pedestal, bool isLowGain, bool isLEDMON)
Add pedestal to the container.
Definition Pedestal.cxx:27

For the High Gain cells the last parameter should be set to false, for low gain it should be set to true.

One can read the pedestal values by calling

auto param = ped.getPedestalValue(23, false);
short getPedestalValue(unsigned short cellID, bool isLowGain, bool isLEDMON) const
Get the time calibration coefficient for a certain cell.
Definition Pedestal.cxx:47
GLenum GLfloat param
Definition glcorearb.h:271

This will return the pedestal value for a certain HG cell. For low gain cells you have to set the last parameter false

Definition at line 47 of file Pedestal.h.

Constructor & Destructor Documentation

◆ Pedestal()

o2::emcal::Pedestal::Pedestal ( )
default

Constructor.

◆ ~Pedestal()

o2::emcal::Pedestal::~Pedestal ( )
default

Destructor.

Member Function Documentation

◆ addPedestalValue()

void Pedestal::addPedestalValue ( unsigned short  cellID,
short  pedestal,
bool  isLowGain,
bool  isLEDMON 
)

Add pedestal to the container.

Parameters
cellIDAbsolute ID of cell
isLowGainCell type is low gain cell
pedestalPedestal value
Exceptions
CalibContainerIndexExceptionin case the cell ID exceeds the range of cells in EMCAL

Definition at line 27 of file Pedestal.cxx.

◆ getHistogramRepresentation()

TH1 * Pedestal::getHistogramRepresentation ( bool  isLowGain,
bool  isLEDMON 
) const

Convert the pedestal container to a histogram.

Parameters
isLowGainMonitor low gain cells
Returns
Histogram representation of the pedestal container

Definition at line 67 of file Pedestal.cxx.

◆ getHistogramRepresentation2D()

TH2 * Pedestal::getHistogramRepresentation2D ( bool  isLowGain,
bool  isLEDMON 
) const

Convert the pedestal container to a 2D histogram.

Parameters
isLowGainMonitor low gain cells
Returns
2D Histogram representation (heatmap with respect to column and row) of the pedestal container

Definition at line 101 of file Pedestal.cxx.

◆ getPedestalValue()

short Pedestal::getPedestalValue ( unsigned short  cellID,
bool  isLowGain,
bool  isLEDMON 
) const

Get the time calibration coefficient for a certain cell.

Parameters
cellIDAbsolute ID of cell
isLowGainCell type is low gain cell
Returns
Pedestal value of the cell
Exceptions
CalibContainerIndexExceptionin case the cell ID exceeds the range of cells in EMCAL

Definition at line 47 of file Pedestal.cxx.

◆ operator==()

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

Comparison of two pedestal containers.

Returns
true if the two list of pedestal values are the same, false otherwise

Definition at line 150 of file Pedestal.cxx.


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