Project
Loading...
Searching...
No Matches
T0FitHistos.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_T0FITHISTOS_H
16#define ALICEO2_T0FITHISTOS_H
17
20#include "Rtypes.h"
21#include <vector>
22#include <memory>
23
24namespace o2
25{
26namespace trd
27{
28
30{
31 public:
32 T0FitHistos() = default;
33 T0FitHistos(const T0FitHistos&) = default;
34 ~T0FitHistos() = default;
35 auto getDetector(int index) const { return mDet[index]; }
36 auto getTimeBin(int index) const { return mTB[index]; }
37 auto getADC(int index) const { return mADC[index]; }
38 auto getNEntries() const { return mNEntriesTot; }
39
40 void fill(const std::vector<o2::trd::PHData>& data);
41 void merge(const T0FitHistos* prev);
42 void print();
43
44 private:
45 std::vector<int> mDet{};
46 std::vector<int> mTB{};
47 std::vector<int> mADC{};
48 size_t mNEntriesTot{0};
49
50 ClassDefNV(T0FitHistos, 1);
51};
52
53} // namespace trd
54} // namespace o2
55
56#endif // ALICEO2_T0FITHISTOS_H
Global TRD definitions and constants.
void fill(const std::vector< o2::trd::PHData > &data)
T0FitHistos(const T0FitHistos &)=default
void merge(const T0FitHistos *prev)
auto getADC(int index) const
Definition T0FitHistos.h:37
auto getTimeBin(int index) const
Definition T0FitHistos.h:36
auto getDetector(int index) const
Definition T0FitHistos.h:35
auto getNEntries() const
Definition T0FitHistos.h:38
GLuint index
Definition glcorearb.h:781
GLboolean * data
Definition glcorearb.h:298
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...