Project
Loading...
Searching...
No Matches
TriggerSTUErrorCounter.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
13
14#include <fairlogger/Logger.h>
15
16#include <bitset>
17#include <iomanip>
18
19using namespace o2::emcal;
20
22{
23 setValue(Time, Error);
24}
25
26TriggerSTUErrorCounter::TriggerSTUErrorCounter(std::pair<int, unsigned long> TimeAndError)
27{
28 setValue(TimeAndError);
29}
30
32{
33 return (mTimeErrorCount == other.mTimeErrorCount);
34}
35
37{
38 return counter.mTimeErrorCount.first == mTimeErrorCount.first;
39}
40
42{
43 if (mTimeErrorCount.first > counter.mTimeErrorCount.first) {
44 return 1;
45 }
46 if (mTimeErrorCount.first < counter.mTimeErrorCount.first) {
47 return -1;
48 }
49
50 return 0;
51}
CCDB container for STU error counts.
TriggerSTUErrorCounter()=default
default constructor
bool operator==(const TriggerSTUErrorCounter &other) const
Comparison of two TRU data.
void setValue(int time, unsigned long errorcount)
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.
GLuint counter
Definition glcorearb.h:3987
VectorOfTObjectPtrs other