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

#include <EMCALCalibExtractor.h>

Public Member Functions

 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)
 

Detailed Description

Definition at line 48 of file EMCALCalibExtractor.h.

Constructor & Destructor Documentation

◆ EMCALCalibExtractor()

o2::emcal::EMCALCalibExtractor::EMCALCalibExtractor ( )
inline

Definition at line 71 of file EMCALCalibExtractor.h.

◆ ~EMCALCalibExtractor()

o2::emcal::EMCALCalibExtractor::~EMCALCalibExtractor ( )
default

Member Function Documentation

◆ 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
histCellTimeinput 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
histhistogram cell energy vs. cell ID. Main histogram for the bad channel calibration
histTimehistogram 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]

Pedestal o2::emcal::EMCALCalibExtractor::extractPedestals ( PedestalProcessorData obj)
inline

Extract the pedestals from Stat Accumulators.

Parameters
objPedestalProcessorData containing the data
Returns
Pedestal data

Definition at line 457 of file EMCALCalibExtractor.h.

◆ 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
objHGTProfile containing the HG data
objLHGTProfile containing the LG data
isLEDMONif true, data is LED data
Returns
Pedestal data

Definition at line 482 of file EMCALCalibExtractor.h.

◆ getNsigma()

int o2::emcal::EMCALCalibExtractor::getNsigma ( ) const
inline

Definition at line 84 of file EMCALCalibExtractor.h.

◆ getNThreads()

int o2::emcal::EMCALCalibExtractor::getNThreads ( ) const
inline

Definition at line 88 of file EMCALCalibExtractor.h.

◆ setBCMScaleFactors()

void o2::emcal::EMCALCalibExtractor::setBCMScaleFactors ( EMCALChannelScaleFactors scalefactors)
inline

Definition at line 90 of file EMCALCalibExtractor.h.

◆ setNsigma()

void o2::emcal::EMCALCalibExtractor::setNsigma ( int  ns)
inline

Definition at line 85 of file EMCALCalibExtractor.h.

◆ setNThreads()

void o2::emcal::EMCALCalibExtractor::setNThreads ( int  n)
inline

Definition at line 87 of file EMCALCalibExtractor.h.


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