14#ifndef O2_ITS_NOISECALIBRATOR
15#define O2_ITS_NOISECALIBRATOR
42 NoiseCalibrator(
bool one,
float prob,
float relErr = 0.2) : m1pix(
one), mProbabilityThreshold(prob), mProbRelErr(relErr)
45 LOGP(info,
"Expect at least {} ROFs needed to apply threshold {} with relative error {}", mMinROFs, mProbabilityThreshold, mProbRelErr);
50 gsl::span<const unsigned char>
const& patterns,
51 gsl::span<const o2::itsmft::ROFRecord>
const& rofs);
54 gsl::span<const o2::itsmft::ROFRecord>
const& rofs);
81 float mProbabilityThreshold = 3e-6f;
82 float mProbRelErr = 0.2;
84 unsigned int mNumberOfStrobes = 0;
89 std::vector<int> mChipIDs;
90 std::array<std::vector<int>,
NChips> mChipHits;
Definition of the ITSMFT NoiseMap.
Transient data classes for single pixel and set of pixels from current chip.
static constexpr int NChips
bool processTimeFrameDigits(gsl::span< const o2::itsmft::Digit > const &digits, gsl::span< const o2::itsmft::ROFRecord > const &rofs)
NoiseCalibrator(bool one, float prob, float relErr=0.2)
void addMap(const o2::itsmft::NoiseMap &extMap)
void setClusterDictionary(const o2::itsmft::TopologyDictionary *d)
auto setNStrobes(unsigned int s)
~NoiseCalibrator()=default
void setInstanceID(int i)
auto getInstanceID() const
const o2::itsmft::NoiseMap & getNoiseMap() const
bool processTimeFrameClusters(gsl::span< const o2::itsmft::CompClusterExt > const &clusters, gsl::span< const unsigned char > const &patterns, gsl::span< const o2::itsmft::ROFRecord > const &rofs)
auto getNInstances() const
void finalize(float cutIB=-1.)
void setNInstances(int n)
NoiseCalibrator()=default
static constexpr int getNChips()
number of chips per barrel
NoiseMap class for the ITS and MFT.
static long getMinROFs(float t, float relErr)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::vector< Cluster > clusters
std::vector< Digit > digits