Project
Loading...
Searching...
No Matches
GainCalibHistos.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
14
15#ifndef ALICEO2_GAINCALIBHISTOS_H
16#define ALICEO2_GAINCALIBHISTOS_H
17
19#include "Rtypes.h"
20#include <vector>
21
22namespace o2
23{
24namespace trd
25{
26
28{
29 public:
30 GainCalibHistos() = default;
32 ~GainCalibHistos() = default;
33 void reset();
34 void init();
35 auto getHistogramEntry(int index) const { return mdEdxEntries[index]; }
36 auto getNEntries() const { return mNEntriesTot; }
37
38 void fill(const std::vector<int>& input);
39 void merge(const GainCalibHistos* prev);
40 void print();
41
42 private:
43 std::vector<int> mdEdxEntries{};
44 size_t mNEntriesTot{0};
45 bool mInitialized{false};
46
47 ClassDefNV(GainCalibHistos, 1);
48};
49
50} // namespace trd
51} // namespace o2
52
53#endif // ALICEO2_GAINCALIBHISTOS_H
Global TRD definitions and constants.
GainCalibHistos(const GainCalibHistos &)=default
void fill(const std::vector< int > &input)
auto getHistogramEntry(int index) const
void merge(const GainCalibHistos *prev)
GLuint index
Definition glcorearb.h:781
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...