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