Project
Loading...
Searching...
No Matches
TempCalibParamSM.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 TEMPCALIBPARAMSM_H_
32#define TEMPCALIBPARAMSM_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:
50 TempCalibParamSM() = default;
51
53 ~TempCalibParamSM() = default;
54
57 bool operator==(const TempCalibParamSM& other) const;
58
62 void addTempCalibParamPerSM(unsigned short iSM, float TempSM);
63
67 float getTempCalibParamPerSM(unsigned short iSM) const;
68
71 TH1* getHistogramRepresentation() const;
72
73 private:
74 std::array<float, 20> mTempCalibParamsPerSM;
75
76 ClassDefNV(TempCalibParamSM, 1);
77};
78
79} // namespace emcal
80
81} // namespace o2
82#endif
float getTempCalibParamPerSM(unsigned short iSM) const
Get the temperature calibration coefficient for a certain SM.
bool operator==(const TempCalibParamSM &other) const
Comparison of two temperature calibration coefficients per SM.
void addTempCalibParamPerSM(unsigned short iSM, float TempSM)
Add temperature coefficients to the container.
~TempCalibParamSM()=default
Destructor.
TH1 * getHistogramRepresentation() const
Convert the temperature calibration coefficient per SM arrays to histograms.
TempCalibParamSM()=default
Constructor.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other