Project
Loading...
Searching...
No Matches
o2::emcal::TriggerSTUErrorCounter Class Reference

CCDB container for STU error counts. More...

#include <TriggerSTUErrorCounter.h>

Public Member Functions

 TriggerSTUErrorCounter ()=default
 default constructor
 
 TriggerSTUErrorCounter (const TriggerSTUErrorCounter &error)=default
 copy constructor
 
TriggerSTUErrorCounteroperator= (const TriggerSTUErrorCounter &source)=default
 Assignment operator.
 
 TriggerSTUErrorCounter (std::pair< int, unsigned long > TimeAndError)
 nomral constructor
 
 TriggerSTUErrorCounter (int Time, unsigned long Error)
 nomral constructor
 
 ~TriggerSTUErrorCounter ()=default
 Destructor.
 
bool operator== (const TriggerSTUErrorCounter &other) const
 Comparison of two TRU data.
 
bool isEqual (TriggerSTUErrorCounter &counter) const
 Checks for equalness according to the time stamp.
 
int compare (TriggerSTUErrorCounter &counter) const
 Compare time-dependent error counts based on the time information.
 
void setValue (int time, unsigned long errorcount)
 
void setValue (std::pair< int, unsigned long > TimeAndError)
 
int getTime () const
 
unsigned long getErrorCount () const
 
std::pair< int, unsigned longgetTimeAndErrorCount () const
 

Detailed Description

CCDB container for STU error counts.

Author
Hadi Hassan hadi..nosp@m.hass.nosp@m.an@ce.nosp@m.rn.c.nosp@m.h, Oak Ridge National Laboratory
Since
December 4th, 2019

based on AliEMCALTriggerSTUConfig class authored by R. GUERNANE

Definition at line 29 of file TriggerSTUErrorCounter.h.

Constructor & Destructor Documentation

◆ TriggerSTUErrorCounter() [1/4]

o2::emcal::TriggerSTUErrorCounter::TriggerSTUErrorCounter ( )
default

default constructor

◆ TriggerSTUErrorCounter() [2/4]

o2::emcal::TriggerSTUErrorCounter::TriggerSTUErrorCounter ( const TriggerSTUErrorCounter error)
default

copy constructor

◆ TriggerSTUErrorCounter() [3/4]

TriggerSTUErrorCounter::TriggerSTUErrorCounter ( std::pair< int, unsigned long TimeAndError)
explicit

nomral constructor

Definition at line 26 of file TriggerSTUErrorCounter.cxx.

◆ TriggerSTUErrorCounter() [4/4]

TriggerSTUErrorCounter::TriggerSTUErrorCounter ( int  Time,
unsigned long  Error 
)
explicit

nomral constructor

Definition at line 21 of file TriggerSTUErrorCounter.cxx.

◆ ~TriggerSTUErrorCounter()

o2::emcal::TriggerSTUErrorCounter::~TriggerSTUErrorCounter ( )
default

Destructor.

Member Function Documentation

◆ compare()

int TriggerSTUErrorCounter::compare ( TriggerSTUErrorCounter counter) const

Compare time-dependent error counts based on the time information.

Definition at line 41 of file TriggerSTUErrorCounter.cxx.

◆ getErrorCount()

unsigned long o2::emcal::TriggerSTUErrorCounter::getErrorCount ( ) const
inline

Definition at line 71 of file TriggerSTUErrorCounter.h.

◆ getTime()

int o2::emcal::TriggerSTUErrorCounter::getTime ( ) const
inline

Definition at line 70 of file TriggerSTUErrorCounter.h.

◆ getTimeAndErrorCount()

std::pair< int, unsigned long > o2::emcal::TriggerSTUErrorCounter::getTimeAndErrorCount ( ) const
inline

Definition at line 72 of file TriggerSTUErrorCounter.h.

◆ isEqual()

bool TriggerSTUErrorCounter::isEqual ( TriggerSTUErrorCounter counter) const

Checks for equalness according to the time stamp.

Definition at line 36 of file TriggerSTUErrorCounter.cxx.

◆ operator=()

TriggerSTUErrorCounter & o2::emcal::TriggerSTUErrorCounter::operator= ( const TriggerSTUErrorCounter source)
default

Assignment operator.

◆ operator==()

bool TriggerSTUErrorCounter::operator== ( const TriggerSTUErrorCounter other) const

Comparison of two TRU data.

Returns
true if the TRU data are identical, false otherwise

Testing two TRUs for equalness. TRUs are considered identical if the contents are identical.

Definition at line 31 of file TriggerSTUErrorCounter.cxx.

◆ setValue() [1/2]

void o2::emcal::TriggerSTUErrorCounter::setValue ( int  time,
unsigned long  errorcount 
)
inline

Definition at line 63 of file TriggerSTUErrorCounter.h.

◆ setValue() [2/2]

void o2::emcal::TriggerSTUErrorCounter::setValue ( std::pair< int, unsigned long TimeAndError)
inline

Definition at line 68 of file TriggerSTUErrorCounter.h.


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