15#ifndef ALICEO2_TOF_DIAGNOSTIC_H
16#define ALICEO2_TOF_DIAGNOSTIC_H
36 uint32_t
fill(ULong64_t
pattern, uint32_t frequency);
47 static ULong64_t
getTRMKey(
int crate,
int trm);
48 void print(
bool longFormat =
false)
const;
49 void clear() { mVector.clear(); }
51 void fill(
const gsl::span<const o2::tof::Diagnostic>){};
56 unsigned long size()
const {
return mVector.size(); }
59 auto iter = mVector.begin();
79 }
else if (
pattern & (1 << 19)) {
88 const std::map<ULong64_t, uint32_t>&
getVector()
const {
return mVector; }
97 std::map<ULong64_t, uint32_t> mVector;
Diagnostic class for TOF.
uint32_t getFrequencyROW() const
void setTFIDInfo(const o2::dataformats::TFIDInfo &val)
const o2::dataformats::TFIDInfo & getTFIDInfo() const
uint32_t fillEmptyCrate(int crate, uint32_t frequency=1)
uint32_t fillEmptyTOF(uint32_t frequency=1)
uint32_t getFrequencyEmptyCrate(int crate) const
void merge(const Diagnostic *prev)
void fill(const gsl::span< const o2::tof::Diagnostic >)
static int getCrate(ULong64_t pattern)
static ULong64_t getTRMKey(int crate, int trm)
void getNoisyMap(Bool_t *output, int noisyThr=1) const
uint32_t fill(ULong64_t pattern)
unsigned long size() const
static int getChannel(ULong64_t pattern)
uint32_t getFrequency(ULong64_t pattern) const
void getNoisyLevelMap(Char_t *output) const
static int getNoisyLevel(ULong64_t pattern)
void setTimeStamp(int val)
ULong64_t getPattern(int i) const
uint32_t fillNoisy(int channel, int frequency=1)
uint32_t getFrequencyEmptyTOF() const
static ULong64_t getNoisyChannelKey(int channel)
static ULong64_t getEmptyCrateKey(int crate)
const std::map< ULong64_t, uint32_t > & getVector() const
bool isNoisyChannel(int channel, int thr=0) const
static int getSlot(ULong64_t pattern)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::array< uint16_t, 5 > pattern