Project
Loading...
Searching...
No Matches
Pedestal.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#ifndef ALICEO2_EMCAL_PEDESTAL_H
12#define ALICEO2_EMCAL_PEDESTAL_H
13
14#include <iosfwd>
15#include <array>
16#include <Rtypes.h>
17
18class TH1;
19class TH2;
20
21namespace o2
22{
23
24namespace emcal
25{
26
48{
49 public:
51 Pedestal() = default;
52
54 ~Pedestal() = default;
55
58 bool operator==(const Pedestal& other) const;
59
65 void addPedestalValue(unsigned short cellID, short pedestal, bool isLowGain, bool isLEDMON);
66
72 short getPedestalValue(unsigned short cellID, bool isLowGain, bool isLEDMON) const;
73
77 TH1* getHistogramRepresentation(bool isLowGain, bool isLEDMON) const;
78
82 TH2* getHistogramRepresentation2D(bool isLowGain, bool isLEDMON) const;
83
84 private:
85 std::array<short, 17664> mPedestalValuesHG;
86 std::array<short, 17664> mPedestalValuesLG;
87 std::array<short, 480> mPedestalValuesLEDMONHG;
88 std::array<short, 480> mPedestalValuesLEDMONLG;
89
90 ClassDefNV(Pedestal, 1);
91};
92
93} // namespace emcal
94
95} // namespace o2
96#endif
CCDB container for pedestal values.
Definition Pedestal.h:48
short getPedestalValue(unsigned short cellID, bool isLowGain, bool isLEDMON) const
Get the time calibration coefficient for a certain cell.
Definition Pedestal.cxx:47
bool operator==(const Pedestal &other) const
Comparison of two pedestal containers.
Definition Pedestal.cxx:150
Pedestal()=default
Constructor.
void addPedestalValue(unsigned short cellID, short pedestal, bool isLowGain, bool isLEDMON)
Add pedestal to the container.
Definition Pedestal.cxx:27
TH1 * getHistogramRepresentation(bool isLowGain, bool isLEDMON) const
Convert the pedestal container to a histogram.
Definition Pedestal.cxx:67
TH2 * getHistogramRepresentation2D(bool isLowGain, bool isLEDMON) const
Convert the pedestal container to a 2D histogram.
Definition Pedestal.cxx:101
~Pedestal()=default
Destructor.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other