![]() |
Project
|
#include <EMCALChannelData.h>
Public Member Functions | |
EMCALChannelData () | |
~EMCALChannelData ()=default | |
void | PrintStream (std::ostream &stream) const |
Print relevant info for EMCALChannelData on a given stream. | |
void | print () |
Print a useful message about the container. | |
void | fill (const gsl::span< const o2::emcal::Cell > data) |
Fill the container with the cell ID and amplitude. | |
void | merge (EMCALChannelData *prev) |
Merge the data of two slots. | |
bool | hasEnoughData () const |
Check if enough stataistics was accumulated to perform calibration. | |
const boostHisto & | getHisto () |
Get current calibration histogram. | |
void | setHisto (boostHisto hist, int nthr=0) |
Set new calibration histogram. | |
const boostHisto & | getHistoTime () |
Get current calibration histogram with time information. | |
void | setHistoTime (boostHisto hist, int nthr=0) |
Set new calibration histogram with timing info. | |
void | analyzeSlot () |
Peform the calibration and flag the bad channel map Average energy per hit histogram is fitted with a gaussian good area is +-mSigma cells beyond that value are flagged as bad. | |
float | getRange () const |
void | setRange (float r) |
int | getNbins () const |
void | setNbins (int nb) |
int | getNEvents () const |
void | setNEvents (int nevt) |
long unsigned int | getNEntriesInHisto () const |
void | setNEntriesInHisto (long unsigned int n) |
void | addEntriesInHisto (long unsigned int n) |
void | setGainCalibFactors (o2::emcal::GainCalibrationFactors *calibFactors) |
Public Attributes | |
o2::emcal::Geometry * | mGeometry = o2::emcal::Geometry::GetInstanceFromRunNumber(300000) |
int | NCELLS = mGeometry->GetNCells() |
Definition at line 52 of file EMCALChannelData.h.
|
inline |
Definition at line 64 of file EMCALChannelData.h.
|
default |
Definition at line 146 of file EMCALChannelData.h.
void EMCALChannelData::analyzeSlot | ( | ) |
Peform the calibration and flag the bad channel map Average energy per hit histogram is fitted with a gaussian good area is +-mSigma cells beyond that value are flagged as bad.
Definition at line 158 of file EMCALChannelData.cxx.
void EMCALChannelData::fill | ( | const gsl::span< const o2::emcal::Cell > | data | ) |
Fill the container with the cell ID and amplitude.
Definition at line 51 of file EMCALChannelData.cxx.
|
inline |
Get current calibration histogram.
Definition at line 99 of file EMCALChannelData.h.
|
inline |
Get current calibration histogram with time information.
Definition at line 116 of file EMCALChannelData.h.
|
inline |
Definition at line 138 of file EMCALChannelData.h.
Definition at line 144 of file EMCALChannelData.h.
|
inline |
Definition at line 141 of file EMCALChannelData.h.
|
inline |
Definition at line 135 of file EMCALChannelData.h.
bool EMCALChannelData::hasEnoughData | ( | ) | const |
Check if enough stataistics was accumulated to perform calibration.
Definition at line 137 of file EMCALChannelData.cxx.
void EMCALChannelData::merge | ( | EMCALChannelData * | prev | ) |
Merge the data of two slots.
Definition at line 128 of file EMCALChannelData.cxx.
void EMCALChannelData::print | ( | ) |
Print a useful message about the container.
Definition at line 123 of file EMCALChannelData.cxx.
void EMCALChannelData::PrintStream | ( | std::ostream & | stream | ) | const |
Print relevant info for EMCALChannelData on a given stream.
stream | Stream on which the info is printed on The function is called in the operator<< providing direct access to protected members. Explicit calls by the users is normally not necessary. |
Definition at line 40 of file EMCALChannelData.cxx.
|
inline |
Definition at line 148 of file EMCALChannelData.h.
Set new calibration histogram.
Definition at line 113 of file EMCALChannelData.h.
Set new calibration histogram with timing info.
Definition at line 127 of file EMCALChannelData.h.
Definition at line 139 of file EMCALChannelData.h.
Definition at line 145 of file EMCALChannelData.h.
Definition at line 142 of file EMCALChannelData.h.
|
inline |
Definition at line 136 of file EMCALChannelData.h.
o2::emcal::Geometry* o2::emcal::EMCALChannelData::mGeometry = o2::emcal::Geometry::GetInstanceFromRunNumber(300000) |
Definition at line 61 of file EMCALChannelData.h.
Definition at line 62 of file EMCALChannelData.h.