![]() |
Project
|
dE/dx calibrator class More...
#include <CalibratordEdx.h>
Inherits o2::calibration::TimeSlotCalibration< o2::tpc::CalibdEdx >.
Public Member Functions | |
CalibratordEdx ()=default | |
void | setHistParams (int dEdxBins, float mindEdx, float maxdEdx, int angularBins, bool fitSnp) |
void | setCuts (const TrackCuts &cuts) |
void | setMinEntries (int minEntries) |
void | setFitThresholds (int minEntriesSector, int minEntries1D, int minEntries2D) |
void | setApplyCuts (bool apply) |
void | setElectronCut (std::tuple< float, int, float > values) |
void | setMaterialType (o2::base::Propagator::MatCorrType materialType) |
void | setMakeGaussianFits (const bool makeGaussianFits) |
bool | hasEnoughData (const Slot &slot) const final |
Check if there are enough data to compute the calibration. | |
void | initOutput () final |
Empty the output vectors. | |
void | finalizeSlot (Slot &) final |
Process time slot data and compute its calibration. | |
Slot & | emplaceNewSlot (bool front, TFType tstart, TFType tend) final |
Creates new time slot. | |
const CalibVector & | getCalibs () const |
const TFinterval & | getTFinterval () const |
const TimeInterval & | getTimeIntervals () const |
void | enableDebugOutput (std::string_view fileName) |
Enable debug output to file of the time slots calibrations outputs and dE/dx histograms. | |
void | disableDebugOutput () |
Disable debug output to file. Also writes and closes stored time slots. | |
bool | hasDebugOutput () const |
void | finalizeDebugOutput () const |
Write debug output to file. | |
void | setTrackDebug (bool debug) |
Track debugging. | |
void | setDumpHistograms (uint32_t flags) |
Dump histograms. | |
uint32_t | getDumpHistograms () const |
![]() | |
TimeSlotCalibration ()=default | |
virtual | ~TimeSlotCalibration ()=default |
float | getMaxSlotsDelay () const |
void | setMaxSlotsDelay (float v) |
TFType | getSlotLength () const |
void | setSlotLength (TFType v) |
TFType | getCheckIntervalInfiniteSlot () const |
void | setCheckIntervalInfiniteSlot (TFType v) |
TFType | getCheckDeltaIntervalInfiniteSlot () const |
void | setCheckDeltaIntervalInfiniteSlot (TFType v) |
TFType | getFirstTF () const |
void | setFirstTF (TFType v) |
void | setSlotLengthInSeconds (int s) |
void | setSlotLengthInOrbits (int n) |
void | checkSlotLength () |
void | setStartOffsetFrac (float f) |
void | setFinalizeWhenReady () |
void | setUpdateAtTheEndOfRunOnly () |
int | getNSlots () const |
Slot & | getSlotForTF (TFType tf) |
Slot & | getSlot (int i) |
const Slot & | getSlot (int i) const |
const Slot & | getLastSlot () const |
const Slot & | getFirstSlot () const |
bool | process (const DATA &... data) |
virtual void | checkSlotsToFinalize (TFType tf=INFINITE_TF, int maxDelay=0) |
virtual void | finalizeOldestSlot () |
virtual void | reset () |
virtual void | finalizeSlot (Slot &slot)=0 |
virtual bool | hasEnoughData (const Slot &slot) const=0 |
virtual void | print () const |
const o2::dataformats::TFIDInfo & | getCurrentTFInfo () const |
o2::dataformats::TFIDInfo & | getCurrentTFInfo () |
bool | getSavedSlotAllowed () const |
void | setSavedSlotAllowed (bool v) |
std::string | getSaveFilePath () const |
const std::string & | getSaveFileName () const |
void | setSaveFileName (const std::string &n) |
void | setSaveDirectory (const std::string &n) |
virtual bool | updateSaveMetaData () |
virtual bool | saveLastSlotData (TFile &fl) |
virtual bool | adoptSavedData (const TimeSlotMetaData &metadata, TFile &fl) |
virtual bool | loadSavedSlot () |
virtual bool | saveLastSlot () |
dE/dx calibrator class
Definition at line 38 of file CalibratordEdx.h.
|
default |
void CalibratordEdx::disableDebugOutput | ( | ) |
Disable debug output to file. Also writes and closes stored time slots.
Definition at line 111 of file CalibratordEdx.cxx.
|
finalvirtual |
Creates new time slot.
Implements o2::calibration::TimeSlotCalibration< o2::tpc::CalibdEdx >.
Definition at line 83 of file CalibratordEdx.cxx.
void CalibratordEdx::enableDebugOutput | ( | std::string_view | fileName | ) |
Enable debug output to file of the time slots calibrations outputs and dE/dx histograms.
Definition at line 106 of file CalibratordEdx.cxx.
void CalibratordEdx::finalizeDebugOutput | ( | ) | const |
Write debug output to file.
Definition at line 117 of file CalibratordEdx.cxx.
Process time slot data and compute its calibration.
Definition at line 36 of file CalibratordEdx.cxx.
|
inline |
Definition at line 79 of file CalibratordEdx.h.
|
inline |
Definition at line 105 of file CalibratordEdx.h.
|
inline |
Definition at line 82 of file CalibratordEdx.h.
|
inline |
Definition at line 85 of file CalibratordEdx.h.
|
inline |
Definition at line 94 of file CalibratordEdx.h.
|
inlinefinal |
Check if there are enough data to compute the calibration.
Definition at line 67 of file CalibratordEdx.h.
|
finalvirtual |
Empty the output vectors.
Implements o2::calibration::TimeSlotCalibration< o2::tpc::CalibdEdx >.
Definition at line 28 of file CalibratordEdx.cxx.
|
inline |
Definition at line 60 of file CalibratordEdx.h.
Definition at line 57 of file CalibratordEdx.h.
|
inline |
Dump histograms.
Definition at line 103 of file CalibratordEdx.h.
Definition at line 61 of file CalibratordEdx.h.
|
inline |
Definition at line 59 of file CalibratordEdx.h.
|
inline |
Definition at line 49 of file CalibratordEdx.h.
|
inline |
Definition at line 63 of file CalibratordEdx.h.
|
inline |
Definition at line 62 of file CalibratordEdx.h.
Definition at line 58 of file CalibratordEdx.h.
|
inline |
Track debugging.
Definition at line 100 of file CalibratordEdx.h.