Belle II Software development
ARICHBiasVoltages.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <TObject.h>
12#include <map>
13#include <vector>
14
15namespace Belle2 {
21
24 class ARICHBiasVoltages : public TObject {
25
26 public:
27
30
36 std::vector<int> getBiasVoltages(const std::string& hapdID) const;
37
43 void addVoltages(const std::string& hapdID, std::vector<int> biasVoltages);
44
48 void print() const;
49
50 private:
51
52 std::map<std::string, std::vector<int>> m_hapd2voltages;
56 };
57
59} // namespace
The Class for ARICH bias voltages at gain 40.
void addVoltages(const std::string &hapdID, std::vector< int > biasVoltages)
Add new entry to the mapping table.
ClassDef(ARICHBiasVoltages, 1)
ClassDef, must be the last term before the closing {}.
std::map< std::string, std::vector< int > > m_hapd2voltages
map of voltages to power supply
ARICHBiasVoltages()
Default constructor.
std::vector< int > getBiasVoltages(const std::string &hapdID) const
Get inner cable ID and type, connected to bias channel.
void print() const
Print voltages for PS channels.
Abstract base class for different kinds of events.