#include <EMCALCalibExtractor.h>
|
| EMCALCalibExtractor () |
|
| ~EMCALCalibExtractor ()=default |
|
int | getNsigma () const |
|
void | setNsigma (int ns) |
|
void | setNThreads (int n) |
|
int | getNThreads () const |
|
void | setBCMScaleFactors (EMCALChannelScaleFactors *scalefactors) |
|
boostHisto | buildHitAndEnergyMeanScaled (double emin, double emax, boostHisto mCellAmplitude) |
| Scaled hits per cell.
|
|
template<typename... axes> |
o2::emcal::BadChannelMap | calibrateBadChannels (const boost::histogram::histogram< axes... > &hist, const boost::histogram::histogram< axes... > &histTime=boost::histogram::make_histogram(boost::histogram::axis::variable<>{0., 1.}, boost::histogram::axis::variable<>{0., 1.})) |
| Function to perform the calibration of bad channels.
|
|
template<typename... axes> |
BadChannelCalibInfo | buildHitAndEnergyMean (std::map< slice_t, std::pair< double, double > > sliceMap, boost::histogram::histogram< axes... > &cellAmplitude) |
| Average energy per hit is caluclated for each cell.
|
|
template<typename... axes> |
BadChannelCalibTimeInfo | buildTimeMeanAndSigma (const boost::histogram::histogram< axes... > &histCellTime) |
| calculate the sigma of the time distribution for all cells and caluclate the mean of the sigmas
|
|
template<typename... axes> |
o2::emcal::TimeCalibrationParams | calibrateTime (const boost::histogram::histogram< axes... > &hist, double minTime=0, double maxTime=1000, double restrictFitRangeToMax=25) |
| Calibrate time for all cells.
|
|
Pedestal | extractPedestals (PedestalProcessorData &obj) |
| Extract the pedestals from Stat Accumulators.
|
|
Pedestal | extractPedestals (TProfile *objHG=nullptr, TProfile *objLG=nullptr, bool isLEDMON=false) |
| Extract the pedestals from TProfile (for old data)
|
|
Definition at line 48 of file EMCALCalibExtractor.h.
◆ EMCALCalibExtractor()
o2::emcal::EMCALCalibExtractor::EMCALCalibExtractor |
( |
| ) |
|
|
inline |
◆ ~EMCALCalibExtractor()
o2::emcal::EMCALCalibExtractor::~EMCALCalibExtractor |
( |
| ) |
|
|
default |
◆ buildHitAndEnergyMean()
template<typename... axes>
BadChannelCalibInfo o2::emcal::EMCALCalibExtractor::buildHitAndEnergyMean |
( |
std::map< slice_t, std::pair< double, double > > |
sliceMap, |
|
|
boost::histogram::histogram< axes... > & |
cellAmplitude |
|
) |
| |
|
inline |
Average energy per hit is caluclated for each cell.
- Parameters
-
sliceID | – numerical index for the slice of amplitudes |
emin | – min. energy for cell amplitudes |
emax | – max. energy for cell amplitudes |
cellAmplitude | – boost histogram for the cell ID vs. Amplitude |
Definition at line 245 of file EMCALCalibExtractor.h.
◆ buildHitAndEnergyMeanScaled()
boostHisto EMCALCalibExtractor::buildHitAndEnergyMeanScaled |
( |
double |
emin, |
|
|
double |
emax, |
|
|
boostHisto |
cellAmplitude |
|
) |
| |
Scaled hits per cell.
- Parameters
-
emin | – min. energy for cell amplitudes |
emax | – max. energy for cell amplitudes |
Definition at line 29 of file EMCALCalibExtractor.cxx.
◆ buildTimeMeanAndSigma()
template<typename... axes>
BadChannelCalibTimeInfo o2::emcal::EMCALCalibExtractor::buildTimeMeanAndSigma |
( |
const boost::histogram::histogram< axes... > & |
histCellTime | ) |
|
|
inline |
calculate the sigma of the time distribution for all cells and caluclate the mean of the sigmas
- Parameters
-
histCellTime | input histogram cellID vs cell time |
- Returns
- sigma value for all cells and the upper cut value
Definition at line 333 of file EMCALCalibExtractor.h.
◆ calibrateBadChannels()
template<typename... axes>
o2::emcal::BadChannelMap o2::emcal::EMCALCalibExtractor::calibrateBadChannels |
( |
const boost::histogram::histogram< axes... > & |
hist, |
|
|
const boost::histogram::histogram< axes... > & |
histTime = boost::histogram::make_histogram(boost::histogram::axis::variable<>{0., 1.}, boost::histogram::axis::variable<>{0., 1.}) |
|
) |
| |
|
inline |
Function to perform the calibration of bad channels.
- Parameters
-
hist | histogram cell energy vs. cell ID. Main histogram for the bad channel calibration |
histTime | histogram cell time vs. cell ID. If default argument is taken, no calibration based on the timing signal will be performed |
Definition at line 101 of file EMCALCalibExtractor.h.
◆ calibrateTime()
template<typename... axes>
o2::emcal::TimeCalibrationParams o2::emcal::EMCALCalibExtractor::calibrateTime |
( |
const boost::histogram::histogram< axes... > & |
hist, |
|
|
double |
minTime = 0 , |
|
|
double |
maxTime = 1000 , |
|
|
double |
restrictFitRangeToMax = 25 |
|
) |
| |
|
inline |
Calibrate time for all cells.
- Parameters
-
hist | – 2d boost histogram: cell-time vs. cell-ID |
minTime | – min. time considered for fit |
maxTime | – max. time considered for fit |
restrictFitRangeToMax | – restrict the fit range to the maximum entry in the histogram in the range +-restrictFitRangeToMax (default: 25ns) |
Definition at line 397 of file EMCALCalibExtractor.h.
◆ extractPedestals() [1/2]
◆ extractPedestals() [2/2]
Pedestal o2::emcal::EMCALCalibExtractor::extractPedestals |
( |
TProfile * |
objHG = nullptr , |
|
|
TProfile * |
objLG = nullptr , |
|
|
bool |
isLEDMON = false |
|
) |
| |
|
inline |
Extract the pedestals from TProfile (for old data)
- Parameters
-
objHG | TProfile containing the HG data |
objLHG | TProfile containing the LG data |
isLEDMON | if true, data is LED data |
- Returns
- Pedestal data
Definition at line 482 of file EMCALCalibExtractor.h.
◆ getNsigma()
int o2::emcal::EMCALCalibExtractor::getNsigma |
( |
| ) |
const |
|
inline |
◆ getNThreads()
int o2::emcal::EMCALCalibExtractor::getNThreads |
( |
| ) |
const |
|
inline |
◆ setBCMScaleFactors()
◆ setNsigma()
void o2::emcal::EMCALCalibExtractor::setNsigma |
( |
int |
ns | ) |
|
|
inline |
◆ setNThreads()
void o2::emcal::EMCALCalibExtractor::setNThreads |
( |
int |
n | ) |
|
|
inline |
The documentation for this class was generated from the following files: