12#ifndef O2_EMCAL_OFFLINECALIB_SPEC
13#define O2_EMCAL_OFFLINECALIB_SPEC
50 OfflineCalibSpec(
bool makeCellIDTimeEnergy,
bool rejectCalibTriggers,
bool rejectL0Trigger, std::shared_ptr<o2::emcal::CalibLoader> calibHandler) : mMakeCellIDTimeEnergy(makeCellIDTimeEnergy), mRejectCalibTriggers(rejectCalibTriggers), mRejectL0Triggers(rejectL0Trigger), mCalibrationHandler(calibHandler){};
79 void updateCalibObjects();
80 std::unique_ptr<TH2> mCellAmplitude;
81 std::unique_ptr<TH2> mCellTime;
82 std::unique_ptr<TH2> mCellTimeLG;
83 std::unique_ptr<TH2> mCellTimeHG;
84 std::unique_ptr<TH1> mNevents;
85 std::unique_ptr<THnSparseF> mCellTimeEnergy;
86 std::shared_ptr<CalibLoader> mCalibrationHandler;
88 bool mMakeCellIDTimeEnergy =
true;
89 bool mRejectCalibTriggers =
true;
90 bool mEnableGainCalib =
false;
91 bool mRejectL0Triggers =
false;
92 std::vector<uint64_t> mSelectedClassMasks = {};
definition of CTPDigit, CTPInputDigit
CCDB container for the gain calibration factors.
Task for producing offline calibration objects.
~OfflineCalibSpec() override=default
Destructor.
static const char * getCTPConfigBinding()
void finaliseCCDB(framework::ConcreteDataMatcher &matcher, void *obj) final
void endOfStream(o2::framework::EndOfStreamContext &ec) final
Write histograms to an output root file.
static const char * getCTPDigitsBinding()
void init(framework::InitContext &ctx) final
Initializing the offline calib task.
void run(framework::ProcessingContext &ctx) final
Fill histograms needed for the offline calibration.
OfflineCalibSpec(bool makeCellIDTimeEnergy, bool rejectCalibTriggers, bool rejectL0Trigger, std::shared_ptr< o2::emcal::CalibLoader > calibHandler)
Constructor.
o2::framework::DataProcessorSpec getEmcalOfflineCalibSpec(bool makeCellIDTimeEnergy, bool rejectCalibTriggers, bool rejectL0Trigger, uint32_t inputsubspec, bool enableGainCalib, bool ctpcfgperrun)
Creating offline calib spec.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...