Project
Loading...
Searching...
No Matches
ChamberHV.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
16#ifndef O2_MID_CHAMBERHV_H
17#define O2_MID_CHAMBERHV_H
18
19#include <array>
20#include <vector>
21#include <unordered_map>
22
26
27namespace o2
28{
29namespace mid
30{
32{
33 public:
37 double getHV(int deId) const { return mHV[deId]; }
38
42 void setHV(int deId, double hv) { mHV[deId] = hv; }
43
46 void setHV(const std::unordered_map<o2::dcs::DataPointIdentifier, std::vector<o2::dcs::DataPointValue>>& dpMap);
47
48 private:
49 std::array<double, detparams::NDetectionElements> mHV;
50};
51
54ChamberHV createDefaultChamberHV();
55
56} // namespace mid
57} // namespace o2
58
59#endif /* O2_MID_CHAMBERHV_H */
Useful detector parameters for MID.
double getHV(int deId) const
Gets HV for detection element.
Definition ChamberHV.h:37
void setHV(int deId, double hv)
Sets the HV for detection element.
Definition ChamberHV.h:42
ChamberHV createDefaultChamberHV()
Creates the default chamber voltages.
Definition ChamberHV.cxx:65
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...