Project
Loading...
Searching...
No Matches
TriggerSTUErrorCounter.h
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#include <iosfwd>
12#include <array>
13#include <Rtypes.h>
14
15namespace o2
16{
17
18namespace emcal
19{
20
28
30{
31 public:
34
37
40
42 explicit TriggerSTUErrorCounter(std::pair<int, unsigned long> TimeAndError);
43
45 explicit TriggerSTUErrorCounter(int Time, unsigned long Error);
46
49
55 bool operator==(const TriggerSTUErrorCounter& other) const;
56
59
62
63 void setValue(int time, unsigned long errorcount)
64 {
65 mTimeErrorCount.first = time;
66 mTimeErrorCount.second = errorcount;
67 }
68 void setValue(std::pair<int, unsigned long> TimeAndError) { mTimeErrorCount = TimeAndError; }
69
70 int getTime() const { return mTimeErrorCount.first; }
71 unsigned long getErrorCount() const { return mTimeErrorCount.second; }
72 std::pair<int, unsigned long> getTimeAndErrorCount() const { return mTimeErrorCount; }
73
74 private:
75 std::pair<int, unsigned long> mTimeErrorCount;
76
77 ClassDefNV(TriggerSTUErrorCounter, 1);
78};
79
80} // namespace emcal
81
82} // namespace o2
int16_t time
Definition RawEventData.h:4
CCDB container for STU error counts.
TriggerSTUErrorCounter(const TriggerSTUErrorCounter &error)=default
copy constructor
std::pair< int, unsigned long > getTimeAndErrorCount() const
~TriggerSTUErrorCounter()=default
Destructor.
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.
TriggerSTUErrorCounter & operator=(const TriggerSTUErrorCounter &source)=default
Assignment operator.
void setValue(std::pair< int, unsigned long > TimeAndError)
GLsizei GLsizei GLchar * source
Definition glcorearb.h:798
GLuint counter
Definition glcorearb.h:3987
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other