Project
Loading...
Searching...
No Matches
GainCalibrationFactors.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
12#ifndef GAINCALIBRATIONFACTORS_H_
13#define GAINCALIBRATIONFACTORS_H_
14
15#include <iosfwd>
16#include <array>
17#include <Rtypes.h>
18
19class TH1;
20
21namespace o2
22{
23
24namespace emcal
25{
26
46{
47 public:
50
53
57 bool operator==(const GainCalibrationFactors& other) const;
58
63 void addGainCalibFactor(unsigned short iCell, float gainFactor);
64
68 float getGainCalibFactors(unsigned short iCell) const;
69
72 TH1* getHistogramRepresentation() const;
73
74 private:
75 std::array<float, 17664> mGainCalibFactors;
76
77 ClassDefNV(GainCalibrationFactors, 1);
78};
79
80} // namespace emcal
81
82} // namespace o2
83#endif
CCDB container for the gain calibration factors.
TH1 * getHistogramRepresentation() const
Convert the gain calibration factors to a histogram.
float getGainCalibFactors(unsigned short iCell) const
Get the gain calibration factor for a certain cell.
GainCalibrationFactors()=default
Constructor.
bool operator==(const GainCalibrationFactors &other) const
Comparison of two gain calibration factors containers.
~GainCalibrationFactors()=default
Destructor.
void addGainCalibFactor(unsigned short iCell, float gainFactor)
Add gain calibration factors to the container.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other