Project
Loading...
Searching...
No Matches
o2::tof::Diagnostic Class Reference

Diagnostic class for TOF. More...

#include <Diagnostic.h>

Public Member Functions

 Diagnostic ()=default
 
uint32_t fill (ULong64_t pattern)
 
uint32_t fill (ULong64_t pattern, uint32_t frequency)
 
uint32_t getFrequency (ULong64_t pattern) const
 
uint32_t getFrequencyROW () const
 
uint32_t getFrequencyEmptyCrate (int crate) const
 
uint32_t getFrequencyEmptyTOF () const
 
uint32_t fillNoisy (int channel, int frequency=1)
 
uint32_t fillROW ()
 
uint32_t fillEmptyCrate (int crate, uint32_t frequency=1)
 
uint32_t fillEmptyTOF (uint32_t frequency=1)
 
void print (bool longFormat=false) const
 
void clear ()
 
void fill (const Diagnostic &diag)
 
void fill (const gsl::span< const o2::tof::Diagnostic >)
 
void merge (const Diagnostic *prev)
 
void getNoisyMap (Bool_t *output, int noisyThr=1) const
 
void getNoisyLevelMap (Char_t *output) const
 
bool isNoisyChannel (int channel, int thr=0) const
 
unsigned long size () const
 
ULong64_t getPattern (int i) const
 
const std::map< ULong64_t, uint32_t > & getVector () const
 
int getTimeStamp () const
 
void setTimeStamp (int val)
 
void setTFIDInfo (const o2::dataformats::TFIDInfo &val)
 
const o2::dataformats::TFIDInfogetTFIDInfo () const
 

Static Public Member Functions

static ULong64_t getEmptyCrateKey (int crate)
 
static ULong64_t getNoisyChannelKey (int channel)
 
static ULong64_t getTRMKey (int crate, int trm)
 
static int getSlot (ULong64_t pattern)
 
static int getCrate (ULong64_t pattern)
 
static int getChannel (ULong64_t pattern)
 
static int getNoisyLevel (ULong64_t pattern)
 

Detailed Description

Diagnostic class for TOF.

Definition at line 31 of file Diagnostic.h.

Constructor & Destructor Documentation

◆ Diagnostic()

o2::tof::Diagnostic::Diagnostic ( )
default

Member Function Documentation

◆ clear()

void o2::tof::Diagnostic::clear ( )
inline

Definition at line 49 of file Diagnostic.h.

◆ fill() [1/4]

void Diagnostic::fill ( const Diagnostic diag)

Definition at line 94 of file Diagnostic.cxx.

◆ fill() [2/4]

void o2::tof::Diagnostic::fill ( const gsl::span< const o2::tof::Diagnostic )
inline

Definition at line 51 of file Diagnostic.h.

◆ fill() [3/4]

uint32_t Diagnostic::fill ( ULong64_t  pattern)

Definition at line 23 of file Diagnostic.cxx.

◆ fill() [4/4]

uint32_t Diagnostic::fill ( ULong64_t  pattern,
uint32_t  frequency 
)

Definition at line 38 of file Diagnostic.cxx.

◆ fillEmptyCrate()

uint32_t o2::tof::Diagnostic::fillEmptyCrate ( int  crate,
uint32_t  frequency = 1 
)
inline

Definition at line 43 of file Diagnostic.h.

◆ fillEmptyTOF()

uint32_t o2::tof::Diagnostic::fillEmptyTOF ( uint32_t  frequency = 1)
inline

Definition at line 44 of file Diagnostic.h.

◆ fillNoisy()

uint32_t o2::tof::Diagnostic::fillNoisy ( int  channel,
int  frequency = 1 
)
inline

Definition at line 41 of file Diagnostic.h.

◆ fillROW()

uint32_t o2::tof::Diagnostic::fillROW ( )
inline

Definition at line 42 of file Diagnostic.h.

◆ getChannel()

static int o2::tof::Diagnostic::getChannel ( ULong64_t  pattern)
inlinestatic

Definition at line 67 of file Diagnostic.h.

◆ getCrate()

static int o2::tof::Diagnostic::getCrate ( ULong64_t  pattern)
inlinestatic

Definition at line 66 of file Diagnostic.h.

◆ getEmptyCrateKey()

ULong64_t Diagnostic::getEmptyCrateKey ( int  crate)
static

Definition at line 76 of file Diagnostic.cxx.

◆ getFrequency()

uint32_t Diagnostic::getFrequency ( ULong64_t  pattern) const

Definition at line 52 of file Diagnostic.cxx.

◆ getFrequencyEmptyCrate()

uint32_t o2::tof::Diagnostic::getFrequencyEmptyCrate ( int  crate) const
inline

Definition at line 39 of file Diagnostic.h.

◆ getFrequencyEmptyTOF()

uint32_t o2::tof::Diagnostic::getFrequencyEmptyTOF ( ) const
inline

Definition at line 40 of file Diagnostic.h.

◆ getFrequencyROW()

uint32_t o2::tof::Diagnostic::getFrequencyROW ( ) const
inline

Definition at line 38 of file Diagnostic.h.

◆ getNoisyChannelKey()

ULong64_t Diagnostic::getNoisyChannelKey ( int  channel)
static

Definition at line 82 of file Diagnostic.cxx.

◆ getNoisyLevel()

static int o2::tof::Diagnostic::getNoisyLevel ( ULong64_t  pattern)
inlinestatic

Definition at line 74 of file Diagnostic.h.

◆ getNoisyLevelMap()

void Diagnostic::getNoisyLevelMap ( Char_t *  output) const

Definition at line 111 of file Diagnostic.cxx.

◆ getNoisyMap()

void Diagnostic::getNoisyMap ( Bool_t *  output,
int  noisyThr = 1 
) const

Definition at line 126 of file Diagnostic.cxx.

◆ getPattern()

ULong64_t o2::tof::Diagnostic::getPattern ( int  i) const
inline

Definition at line 57 of file Diagnostic.h.

◆ getSlot()

static int o2::tof::Diagnostic::getSlot ( ULong64_t  pattern)
inlinestatic

Definition at line 65 of file Diagnostic.h.

◆ getTFIDInfo()

const o2::dataformats::TFIDInfo & o2::tof::Diagnostic::getTFIDInfo ( ) const
inline

Definition at line 94 of file Diagnostic.h.

◆ getTimeStamp()

int o2::tof::Diagnostic::getTimeStamp ( ) const
inline

Definition at line 90 of file Diagnostic.h.

◆ getTRMKey()

ULong64_t Diagnostic::getTRMKey ( int  crate,
int  trm 
)
static

Definition at line 88 of file Diagnostic.cxx.

◆ getVector()

const std::map< ULong64_t, uint32_t > & o2::tof::Diagnostic::getVector ( ) const
inline

Definition at line 88 of file Diagnostic.h.

◆ isNoisyChannel()

bool Diagnostic::isNoisyChannel ( int  channel,
int  thr = 0 
) const

Definition at line 143 of file Diagnostic.cxx.

◆ merge()

void Diagnostic::merge ( const Diagnostic prev)

Definition at line 103 of file Diagnostic.cxx.

◆ print()

void Diagnostic::print ( bool  longFormat = false) const

Definition at line 62 of file Diagnostic.cxx.

◆ setTFIDInfo()

void o2::tof::Diagnostic::setTFIDInfo ( const o2::dataformats::TFIDInfo val)
inline

Definition at line 93 of file Diagnostic.h.

◆ setTimeStamp()

void o2::tof::Diagnostic::setTimeStamp ( int  val)
inline

Definition at line 91 of file Diagnostic.h.

◆ size()

unsigned long o2::tof::Diagnostic::size ( ) const
inline

Definition at line 56 of file Diagnostic.h.


The documentation for this class was generated from the following files: