Project
Loading...
Searching...
No Matches
TempCalibrationParams.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
34
35#ifndef TEMPCALIBRATIONPARAMS_H_
36#define TEMPCALIBRATIONPARAMS_H_
37
38#include <iosfwd>
39#include <array>
40#include <Rtypes.h>
41
42class TH1;
43
44namespace o2
45{
46
47namespace emcal
48{
49
51{
52 public:
55
58
61 bool operator==(const TempCalibrationParams& other) const;
62
67 void addTempCalibParam(unsigned short cellID, float Slope, float ParamA0);
68
72 float getTempCalibParamSlope(unsigned short cellID) const;
73
77 float getTempCalibParamA0(unsigned short cellID) const;
78
83
84 private:
85 std::array<float, 17664> mTempCalibParamsSlope;
86 std::array<float, 17664> mTempCalibParamsA0;
87
88 ClassDefNV(TempCalibrationParams, 1);
89};
90
91} // namespace emcal
92
93} // namespace o2
94#endif
void addTempCalibParam(unsigned short cellID, float Slope, float ParamA0)
Add temperature calibration coefficients to the container.
float getTempCalibParamA0(unsigned short cellID) const
Get the temperature calibration coefficient (A0 param) for a certain cell.
TH1 * getHistogramRepresentationSlope() const
Convert the temperature calibration coefficient arrays to histograms.
bool operator==(const TempCalibrationParams &other) const
Comparison of two temperature calibration coefficients.
float getTempCalibParamSlope(unsigned short cellID) const
Get the temperature calibration coefficient (slope) for a certain cell.
~TempCalibrationParams()=default
Destructor.
TempCalibrationParams()=default
Constructor.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other