![]() |
Project
|
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. | |
CCDB container for pedestal values.
Pedestal values can be added for each channel by
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
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.
|
default |
Constructor.
|
default |
Destructor.
void Pedestal::addPedestalValue | ( | unsigned short | cellID, |
short | pedestal, | ||
bool | isLowGain, | ||
bool | isLEDMON | ||
) |
Add pedestal to the container.
CalibContainerIndexException | in case the cell ID exceeds the range of cells in EMCAL |
Definition at line 27 of file Pedestal.cxx.
TH1 * Pedestal::getHistogramRepresentation | ( | bool | isLowGain, |
bool | isLEDMON | ||
) | const |
Convert the pedestal container to a histogram.
isLowGain | Monitor low gain cells |
Definition at line 67 of file Pedestal.cxx.
TH2 * Pedestal::getHistogramRepresentation2D | ( | bool | isLowGain, |
bool | isLEDMON | ||
) | const |
Convert the pedestal container to a 2D histogram.
isLowGain | Monitor low gain cells |
Definition at line 101 of file Pedestal.cxx.
Get the time calibration coefficient for a certain cell.
cellID | Absolute ID of cell |
isLowGain | Cell type is low gain cell |
CalibContainerIndexException | in case the cell ID exceeds the range of cells in EMCAL |
Definition at line 47 of file Pedestal.cxx.
bool Pedestal::operator== | ( | const Pedestal & | other | ) | const |
Comparison of two pedestal containers.
Definition at line 150 of file Pedestal.cxx.