Project
Loading...
Searching...
No Matches
TimeCalibParamL1Phase.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
30
31#ifndef TIMECALIBPARAML1PHASE_H_
32#define TIMECALIBPARAML1PHASE_H_
33
34#include <iosfwd>
35#include <array>
36#include <Rtypes.h>
37
38class TH1;
39
40namespace o2
41{
42
43namespace emcal
44{
45
47{
48 public:
51
54
57 bool operator==(const TimeCalibParamL1Phase& other) const;
58
62 void addTimeCalibParamL1Phase(unsigned short iSM, unsigned char L1Phase);
63
67 unsigned char getTimeCalibParamL1Phase(unsigned short iSM) const;
68
70 TH1* getHistogramRepresentation() const;
71
72 private:
73 std::array<unsigned char, 20> mTimeCalibParamsL1Phase;
74
75 ClassDefNV(TimeCalibParamL1Phase, 1);
76};
77
78} // namespace emcal
79
80} // namespace o2
81#endif
unsigned char getTimeCalibParamL1Phase(unsigned short iSM) const
Get the L1 phase for a certain SM.
TimeCalibParamL1Phase()=default
Constructor.
bool operator==(const TimeCalibParamL1Phase &other) const
Comparison of two L1 phase shifts.
TH1 * getHistogramRepresentation() const
Convert the L1 phase shift per SM array to a histogram.
~TimeCalibParamL1Phase()=default
Destructor.
void addTimeCalibParamL1Phase(unsigned short iSM, unsigned char L1Phase)
Add L1 phase shifts to the container.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other