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

#include <CalibTOFapi.h>

Public Member Functions

void resetDia ()
 
 CalibTOFapi ()=default
 
 CalibTOFapi (const std::string url)
 
 CalibTOFapi (long timestamp, o2::dataformats::CalibLHCphaseTOF *phase, o2::dataformats::CalibTimeSlewingParamTOF *slew, Diagnostic *dia=nullptr)
 
 ~CalibTOFapi ()
 
void setTimeStamp (long t)
 
void setURL (const std::string url)
 
void readLHCphase ()
 
void readTimeSlewingParam ()
 
void readTimeSlewingParamFromFile (const char *filename)
 
void readDiagnosticFrequencies ()
 
void loadDiagnosticFrequencies ()
 
void readActiveMap ()
 
void loadActiveMap (TOFFEElightInfo *fee)
 
void writeLHCphase (LhcPhase *phase, std::map< std::string, std::string > metadataLHCphase, uint64_t minTimeSTamp, uint64_t maxTimeStamp)
 
void writeTimeSlewingParam (SlewParam *param, std::map< std::string, std::string > metadataChannelCalib, uint64_t minTimeSTamp, uint64_t maxTimeStamp=0)
 
float getTimeCalibration (int ich, float tot) const
 
float getTimeCalibration (int ich, float tot, float phase) const
 
float getTimeDecalibration (int ich, float tot) const
 
bool isProblematic (int ich)
 
bool isNoisy (int ich)
 
bool isOff (int ich)
 
float getFractionUnderPeak (int ich) const
 
float currentLHCphase () const
 
SlewParamgetSlewParam ()
 
SlewParamgetSlewParamObj ()
 
void setSlewParam (SlewParam *obj)
 
LhcPhasegetLhcPhase ()
 
void setLhcPhase (LhcPhase *obj)
 
DiagnosticgetDiagnostic ()
 
void setDiagnostic (Diagnostic *obj)
 
int getNoisyThreshold () const
 
void setNoisyThreshold (int val)
 
float getEmptyTOFProb () const
 
const float * getEmptyCratesProb () const
 
const std::vector< std::pair< int, float > > & getNoisyProb () const
 
const std::vector< std::pair< int, float > > & getTRMerrorProb () const
 
const std::vector< int > & getTRMmask () const
 
void resetTRMErrors ()
 
void processError (int crate, int trm, int mask)
 
bool isChannelError (int channel) const
 
bool checkTRMPolicy (int mask) const
 

Detailed Description

Definition at line 32 of file CalibTOFapi.h.

Constructor & Destructor Documentation

◆ CalibTOFapi() [1/3]

o2::tof::CalibTOFapi::CalibTOFapi ( )
default

◆ CalibTOFapi() [2/3]

CalibTOFapi::CalibTOFapi ( const std::string  url)

Definition at line 29 of file CalibTOFapi.cxx.

◆ CalibTOFapi() [3/3]

o2::tof::CalibTOFapi::CalibTOFapi ( long  timestamp,
o2::dataformats::CalibLHCphaseTOF phase,
o2::dataformats::CalibTimeSlewingParamTOF slew,
Diagnostic dia = nullptr 
)
inline

Definition at line 44 of file CalibTOFapi.h.

◆ ~CalibTOFapi()

o2::tof::CalibTOFapi::~CalibTOFapi ( )
inline

Definition at line 45 of file CalibTOFapi.h.

Member Function Documentation

◆ checkTRMPolicy()

bool CalibTOFapi::checkTRMPolicy ( int  mask) const

Definition at line 351 of file CalibTOFapi.cxx.

◆ currentLHCphase()

float o2::tof::CalibTOFapi::currentLHCphase ( ) const
inline

Definition at line 83 of file CalibTOFapi.h.

◆ getDiagnostic()

Diagnostic * o2::tof::CalibTOFapi::getDiagnostic ( )
inline

Definition at line 90 of file CalibTOFapi.h.

◆ getEmptyCratesProb()

const float * o2::tof::CalibTOFapi::getEmptyCratesProb ( ) const
inline

Definition at line 96 of file CalibTOFapi.h.

◆ getEmptyTOFProb()

float o2::tof::CalibTOFapi::getEmptyTOFProb ( ) const
inline

Definition at line 95 of file CalibTOFapi.h.

◆ getFractionUnderPeak()

float o2::tof::CalibTOFapi::getFractionUnderPeak ( int  ich) const
inline

Definition at line 82 of file CalibTOFapi.h.

◆ getLhcPhase()

LhcPhase * o2::tof::CalibTOFapi::getLhcPhase ( )
inline

Definition at line 88 of file CalibTOFapi.h.

◆ getNoisyProb()

const std::vector< std::pair< int, float > > & o2::tof::CalibTOFapi::getNoisyProb ( ) const
inline

Definition at line 97 of file CalibTOFapi.h.

◆ getNoisyThreshold()

int o2::tof::CalibTOFapi::getNoisyThreshold ( ) const
inline

Definition at line 93 of file CalibTOFapi.h.

◆ getSlewParam()

SlewParam * o2::tof::CalibTOFapi::getSlewParam ( )
inline

Definition at line 85 of file CalibTOFapi.h.

◆ getSlewParamObj()

SlewParam & o2::tof::CalibTOFapi::getSlewParamObj ( )
inline

Definition at line 86 of file CalibTOFapi.h.

◆ getTimeCalibration() [1/2]

float CalibTOFapi::getTimeCalibration ( int  ich,
float  tot 
) const

Definition at line 268 of file CalibTOFapi.cxx.

◆ getTimeCalibration() [2/2]

float CalibTOFapi::getTimeCalibration ( int  ich,
float  tot,
float  phase 
) const

Definition at line 290 of file CalibTOFapi.cxx.

◆ getTimeDecalibration()

float CalibTOFapi::getTimeDecalibration ( int  ich,
float  tot 
) const

Definition at line 312 of file CalibTOFapi.cxx.

◆ getTRMerrorProb()

const std::vector< std::pair< int, float > > & o2::tof::CalibTOFapi::getTRMerrorProb ( ) const
inline

Definition at line 98 of file CalibTOFapi.h.

◆ getTRMmask()

const std::vector< int > & o2::tof::CalibTOFapi::getTRMmask ( ) const
inline

Definition at line 99 of file CalibTOFapi.h.

◆ isChannelError()

bool CalibTOFapi::isChannelError ( int  channel) const

Definition at line 358 of file CalibTOFapi.cxx.

◆ isNoisy()

bool CalibTOFapi::isNoisy ( int  ich)

Definition at line 254 of file CalibTOFapi.cxx.

◆ isOff()

bool CalibTOFapi::isOff ( int  ich)

Definition at line 261 of file CalibTOFapi.cxx.

◆ isProblematic()

bool CalibTOFapi::isProblematic ( int  ich)

Definition at line 243 of file CalibTOFapi.cxx.

◆ loadActiveMap()

void CalibTOFapi::loadActiveMap ( TOFFEElightInfo fee)

Definition at line 47 of file CalibTOFapi.cxx.

◆ loadDiagnosticFrequencies()

void CalibTOFapi::loadDiagnosticFrequencies ( )

Definition at line 126 of file CalibTOFapi.cxx.

◆ processError()

void CalibTOFapi::processError ( int  crate,
int  trm,
int  mask 
)

Definition at line 333 of file CalibTOFapi.cxx.

◆ readActiveMap()

void CalibTOFapi::readActiveMap ( )

Definition at line 37 of file CalibTOFapi.cxx.

◆ readDiagnosticFrequencies()

void CalibTOFapi::readDiagnosticFrequencies ( )

Definition at line 115 of file CalibTOFapi.cxx.

◆ readLHCphase()

void CalibTOFapi::readLHCphase ( )

Definition at line 67 of file CalibTOFapi.cxx.

◆ readTimeSlewingParam()

void CalibTOFapi::readTimeSlewingParam ( )

Definition at line 85 of file CalibTOFapi.cxx.

◆ readTimeSlewingParamFromFile()

void CalibTOFapi::readTimeSlewingParamFromFile ( const char filename)

Definition at line 103 of file CalibTOFapi.cxx.

◆ resetDia()

void CalibTOFapi::resetDia ( )

Definition at line 19 of file CalibTOFapi.cxx.

◆ resetTRMErrors()

void CalibTOFapi::resetTRMErrors ( )

Definition at line 322 of file CalibTOFapi.cxx.

◆ setDiagnostic()

void o2::tof::CalibTOFapi::setDiagnostic ( Diagnostic obj)
inline

Definition at line 91 of file CalibTOFapi.h.

◆ setLhcPhase()

void o2::tof::CalibTOFapi::setLhcPhase ( LhcPhase obj)
inline

Definition at line 89 of file CalibTOFapi.h.

◆ setNoisyThreshold()

void o2::tof::CalibTOFapi::setNoisyThreshold ( int  val)
inline

Definition at line 94 of file CalibTOFapi.h.

◆ setSlewParam()

void o2::tof::CalibTOFapi::setSlewParam ( SlewParam obj)
inline

Definition at line 87 of file CalibTOFapi.h.

◆ setTimeStamp()

void o2::tof::CalibTOFapi::setTimeStamp ( long  t)
inline

Definition at line 58 of file CalibTOFapi.h.

◆ setURL()

void o2::tof::CalibTOFapi::setURL ( const std::string  url)
inline

Definition at line 62 of file CalibTOFapi.h.

◆ writeLHCphase()

void CalibTOFapi::writeLHCphase ( LhcPhase phase,
std::map< std::string, std::string >  metadataLHCphase,
uint64_t  minTimeSTamp,
uint64_t  maxTimeStamp 
)

Definition at line 213 of file CalibTOFapi.cxx.

◆ writeTimeSlewingParam()

void CalibTOFapi::writeTimeSlewingParam ( SlewParam param,
std::map< std::string, std::string >  metadataChannelCalib,
uint64_t  minTimeSTamp,
uint64_t  maxTimeStamp = 0 
)

Definition at line 226 of file CalibTOFapi.cxx.


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