16#ifndef O2_TRD_CALIBRATORGAIN_H
17#define O2_TRD_CALIBRATORGAIN_H
29#include "Fit/Fitter.h"
32#include <TF1Convolution.h>
51 bool hasEnoughData(const
Slot& slot) const final {
return slot.getContainer()->getNEntries() >= mMinEntriesTotal; }
74 bool mInitDone{
false};
78 bool mEnableOutput{
false};
79 std::unique_ptr<TFile> mOutFile{
nullptr};
80 std::unique_ptr<TTree> mOutTree{
nullptr};
81 std::unique_ptr<TF1Convolution> mFconv;
82 std::unique_ptr<TF1> mFitFunction;
83 std::array<float, constants::MAXCHAMBER> mFitResults;
85 std::vector<o2::ccdb::CcdbObjectInfo> mInfoVector;
86 std::vector<o2::trd::CalGain> mObjectVector;
Object with MPV dEdx values per chamber to be written into the CCDB.
Class to store the TRD dEdx distribution for each TRD chamber.
static const TRDCalibParams & Instance()
void finalizeSlot(Slot &slot) final
bool hasEnoughData(const Slot &slot) const final
std::vector< o2::ccdb::CcdbObjectInfo > & getCcdbObjectInfoVector()
Slot & emplaceNewSlot(bool front, TFType tStart, TFType tEnd) final
void retrievePrev(o2::framework::ProcessingContext &pc)
const std::vector< o2::trd::CalGain > & getCcdbObjectVector() const
~CalibratorGain() final=default
constexpr int MAXCHAMBER
the maximum number of installed chambers
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Defining DataPointCompositeObject explicitly as copiable.
size_t minEntriesTotalGainCalib
minimum total required for meaningful fits
size_t minEntriesChamberGainCalib
minimum number of entries per chamber to fit single time slot