Project
Loading...
Searching...
No Matches
CalGain.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_CALGAIN_H
16#define ALICEO2_CALGAIN_H
17
19#include "Rtypes.h"
20#include <array>
21
22namespace o2
23{
24namespace trd
25{
26
28{
29 public:
30 CalGain() = default;
31 CalGain(const CalGain&) = default;
32 ~CalGain() = default;
33
34 void setMPVdEdx(int iDet, float mpv) { mMPVdEdx[iDet] = mpv; }
35
36 float getMPVdEdx(int iDet) const { return mMPVdEdx[iDet]; }
37
38 private:
39 std::array<float, constants::MAXCHAMBER> mMPVdEdx{};
40
41 ClassDefNV(CalGain, 1);
42};
43
44} // namespace trd
45} // namespace o2
46
47#endif // ALICEO2_CALGAIN_H
Global TRD definitions and constants.
void setMPVdEdx(int iDet, float mpv)
Definition CalGain.h:34
CalGain(const CalGain &)=default
~CalGain()=default
CalGain()=default
float getMPVdEdx(int iDet) const
Definition CalGain.h:36
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...