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;
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 s
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 Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events d
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