14#ifndef O2_MFT_NOISESLOTCALIBRATOR
15#define O2_MFT_NOISESLOTCALIBRATOR
49 LOGP(info,
"At least {} ROFs needed to apply threshold {} with relative error {}", mMinROFs, mProbabilityThreshold, mProbRelErr);
56 gsl::span<const o2::itsmft::Digit>
const&
digits,
57 gsl::span<const o2::itsmft::ROFRecord>
const& rofs);
60 gsl::span<const o2::itsmft::CompClusterExt>
const&
clusters,
61 gsl::span<const unsigned char>
const& patterns,
62 gsl::span<const o2::itsmft::ROFRecord>
const& rofs);
68 LOG(info) <<
"Number of processed strobes is " << mNumberOfStrobes;
70 slot.getContainer()->applyProbThreshold(mProbabilityThreshold, mNumberOfStrobes);
75 const auto& slot =
getSlots().back();
76 start = slot.getTFStart();
77 end = slot.getTFEnd();
78 return *(slot.getContainer());
91 float mProbabilityThreshold = 1e-6f;
92 float mProbRelErr = 0.2;
94 unsigned int mThreshold = 100;
95 unsigned int mNumberOfStrobes = 0;
Definition of the ITSMFT compact cluster.
Definition of the ITSMFT NoiseMap.
static constexpr TFType INFINITE_TF
void setSlotLength(TFType v)
void setUpdateAtTheEndOfRunOnly()
NoiseMap class for the ITS and MFT.
static long getMinROFs(float t, float relErr)
void setThreshold(unsigned int t)
void finalizeSlot(Slot &slot) final
Slot & emplaceNewSlot(bool, calibration::TFType, calibration::TFType) final
const o2::itsmft::NoiseMap & getNoiseMap(long &start, long &end)
NoiseSlotCalibrator(float prob, float relErr)
bool processTimeFrame(calibration::TFType tf, gsl::span< const o2::itsmft::Digit > const &digits, gsl::span< const o2::itsmft::ROFRecord > const &rofs)
bool hasEnoughData(const Slot &slot) const final
~NoiseSlotCalibrator() final=default
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::unique_ptr< GPUReconstructionTimeframe > tf
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
std::vector< Cluster > clusters
std::vector< Digit > digits