![]() |
Project
|
#include <EMCALTimeCalibData.h>
Public Types | |
| using | Cells = o2::emcal::Cell |
| using | boostHisto = boost::histogram::histogram< std::tuple< boost::histogram::axis::regular< double, boost::use_default, boost::use_default, boost::use_default >, boost::histogram::axis::regular< double, boost::use_default, boost::use_default, boost::use_default > > > |
Public Member Functions | |
| EMCALTimeCalibData () | |
| ~EMCALTimeCalibData ()=default | |
| void | fill (const gsl::span< const o2::emcal::Cell > data) |
| Fill the container with the cell ID and amplitude and time information. | |
| void | merge (EMCALTimeCalibData *prev) |
| Merge the data of two slots. | |
| bool | hasEnoughData () const |
| Check if enough data for calibration has been accumulated. | |
| void | print () |
| Print a useful message about the container. | |
| void | setNEvents (int nevt) |
| Set number of events available for calibration. | |
| void | AddEvents (int nevt) |
| Add number of events available for calibration. | |
| int | getNEvents () const |
| Get number of events currently available for calibration. | |
| long unsigned int | getNEntriesInHisto () const |
| Get the number of entries in histogram. | |
| void | setNEntriesInHisto (long unsigned int n) |
| Set the number of entries in histogram. | |
| void | addNEntriesInHisto (long unsigned int n) |
| Add the number of entries in histogram. | |
| const boostHisto & | getHisto () |
| Get current histogram. | |
| void | setGainCalibFactors (o2::emcal::GainCalibrationFactors *calibFactors) |
| Set gain calibration factors applied to the cell energy before filling the histograms. | |
| void | setHisto (boostHisto hist) |
| Set new calibration histogram. | |
| void | PrintStream (std::ostream &stream) const |
| print stream | |
| o2::emcal::TimeCalibrationParams | process () |
| Actual function where calibration is done. Has to be called in has enough data when enough data is there. | |
Public Attributes | |
| o2::emcal::Geometry * | mGeometry = o2::emcal::Geometry::GetInstanceFromRunNumber(300000) |
| int | NCELLS = mGeometry->GetNCells() |
Definition at line 45 of file EMCALTimeCalibData.h.
| using o2::emcal::EMCALTimeCalibData::boostHisto = boost::histogram::histogram<std::tuple<boost::histogram::axis::regular<double, boost::use_default, boost::use_default, boost::use_default>, boost::histogram::axis::regular<double, boost::use_default, boost::use_default, boost::use_default> >> |
Definition at line 49 of file EMCALTimeCalibData.h.
Definition at line 48 of file EMCALTimeCalibData.h.
|
inline |
Definition at line 54 of file EMCALTimeCalibData.h.
|
default |
|
inline |
Add number of events available for calibration.
Definition at line 84 of file EMCALTimeCalibData.h.
Add the number of entries in histogram.
Definition at line 93 of file EMCALTimeCalibData.h.
| void EMCALTimeCalibData::fill | ( | const gsl::span< const o2::emcal::Cell > | data | ) |
Fill the container with the cell ID and amplitude and time information.
Definition at line 78 of file EMCALTimeCalibData.cxx.
|
inline |
Get current histogram.
Definition at line 96 of file EMCALTimeCalibData.h.
|
inline |
Get the number of entries in histogram.
Definition at line 89 of file EMCALTimeCalibData.h.
|
inline |
Get number of events currently available for calibration.
Definition at line 86 of file EMCALTimeCalibData.h.
| bool EMCALTimeCalibData::hasEnoughData | ( | ) | const |
Check if enough data for calibration has been accumulated.
Definition at line 60 of file EMCALTimeCalibData.cxx.
| void EMCALTimeCalibData::merge | ( | EMCALTimeCalibData * | prev | ) |
Merge the data of two slots.
Definition at line 53 of file EMCALTimeCalibData.cxx.
| void EMCALTimeCalibData::print | ( | ) |
Print a useful message about the container.
Definition at line 42 of file EMCALTimeCalibData.cxx.
| void EMCALTimeCalibData::PrintStream | ( | std::ostream & | stream | ) | const |
print stream
Definition at line 37 of file EMCALTimeCalibData.cxx.
| o2::emcal::TimeCalibrationParams EMCALTimeCalibData::process | ( | ) |
Actual function where calibration is done. Has to be called in has enough data when enough data is there.
Definition at line 139 of file EMCALTimeCalibData.cxx.
|
inline |
Set gain calibration factors applied to the cell energy before filling the histograms.
| calibFactors | gain calibration object |
Definition at line 111 of file EMCALTimeCalibData.h.
|
inline |
Set new calibration histogram.
Definition at line 118 of file EMCALTimeCalibData.h.
Set the number of entries in histogram.
Definition at line 91 of file EMCALTimeCalibData.h.
|
inline |
Set number of events available for calibration.
Definition at line 82 of file EMCALTimeCalibData.h.
| o2::emcal::Geometry* o2::emcal::EMCALTimeCalibData::mGeometry = o2::emcal::Geometry::GetInstanceFromRunNumber(300000) |
Definition at line 51 of file EMCALTimeCalibData.h.
| int o2::emcal::EMCALTimeCalibData::NCELLS = mGeometry->GetNCells() |
Definition at line 52 of file EMCALTimeCalibData.h.