Project
Loading...
Searching...
No Matches
TimeCalibrationParams.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
33
34#ifndef TIMECALIBRATIONPARAMS_H_
35#define TIMECALIBRATIONPARAMS_H_
36
37#include <iosfwd>
38#include <array>
39#include <Rtypes.h>
40
41class TH1;
42
43namespace o2
44{
45
46namespace emcal
47{
48
50{
51 public:
54
57
60 bool operator==(const TimeCalibrationParams& other) const;
61
67 void addTimeCalibParam(unsigned short cellID, short time, bool isLowGain);
68
74 short getTimeCalibParam(unsigned short cellID, bool isLowGain) const;
75
79 TH1* getHistogramRepresentation(bool isLowGain) const;
80
81 private:
82 std::array<short, 17664> mTimeCalibParamsHG;
83 std::array<short, 17664> mTimeCalibParamsLG;
84
85 ClassDefNV(TimeCalibrationParams, 1);
86};
87
88} // namespace emcal
89
90} // namespace o2
91#endif
int16_t time
Definition RawEventData.h:4
void addTimeCalibParam(unsigned short cellID, short time, bool isLowGain)
Add time calibration coefficients to the container.
short getTimeCalibParam(unsigned short cellID, bool isLowGain) const
Get the time calibration coefficient for a certain cell.
TimeCalibrationParams()=default
Constructor.
bool operator==(const TimeCalibrationParams &other) const
Comparison of two time calibration coefficients.
TH1 * getHistogramRepresentation(bool isLowGain) const
Convert the time calibration coefficient array to a histogram.
~TimeCalibrationParams()=default
Destructor.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other