14#ifndef O2_ITS_NOISESLOTCALIBRATOR
15#define O2_ITS_NOISESLOTCALIBRATOR
47 LOGP(info,
"Expect at least {} ROFs needed to apply threshold {} with relative error {}", mMinROFs, mProbabilityThreshold, mProbRelErr);
53 gsl::span<const
unsigned char> const& patterns,
60 LOG(info) <<
"Number of processed strobes is " << mNumberOfStrobes;
62 slot.getContainer()->applyProbThreshold(mProbabilityThreshold, mNumberOfStrobes);
71 const auto& slot =
getSlots().back();
72 start = slot.getTFStart();
73 end = slot.getTFEnd();
74 return *(slot.getContainer());
78 bool process(
const gsl::span<const o2::itsmft::CompClusterExt>
data);
88 float mProbabilityThreshold = 3e-6f;
89 float mProbRelErr = 0.2;
91 unsigned int mNumberOfStrobes = 0;
Definition of the ITSMFT compact cluster.
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to process
Definition of the ITSMFT NoiseMap.
void setUpdateAtTheEndOfRunOnly()
const o2::itsmft::NoiseMap & getNoiseMap(long &start, long &end)
bool processTimeFrame(gsl::span< const o2::itsmft::CompClusterExt > const &clusters, gsl::span< const unsigned char > const &patterns, gsl::span< const o2::itsmft::ROFRecord > const &rofs)
~NoiseSlotCalibrator() final=default
NoiseSlotCalibrator(bool one, float prob, float relErr)
bool hasEnoughData(const Slot &slot) const final
Slot & emplaceNewSlot(bool, calibration::TFType, calibration::TFType) final
void finalizeSlot(Slot &slot) final
void loadDictionary(std::string fname)
NoiseMap class for the ITS and MFT.
static long getMinROFs(float t, float relErr)
int readFromFile(const std::string &fileName)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
std::vector< Cluster > clusters