Belle II Software  release-05-01-25
ARICHBiasVoltages.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Manca Mrvar *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <TObject.h>
14 #include <map>
15 #include <vector>
16 
17 namespace Belle2 {
22 
26  class ARICHBiasVoltages : public TObject {
27 
28  public:
29 
32 
38  std::vector<int> getBiasVoltages(const std::string& hapdID) const;
39 
45  void addVoltages(const std::string& hapdID, std::vector<int> biasVoltages);
46 
50  void print() const;
51 
52  private:
53 
54  std::map<std::string, std::vector<int>> m_hapd2voltages;
58  };
59 
61 } // namespace
Belle2::ARICHBiasVoltages::m_hapd2voltages
std::map< std::string, std::vector< int > > m_hapd2voltages
map of voltages to power supply
Definition: ARICHBiasVoltages.h:62
Belle2::ARICHBiasVoltages::print
void print() const
Print voltages for PS channels.
Definition: ARICHBiasVoltages.cc:38
Belle2::ARICHBiasVoltages::getBiasVoltages
std::vector< int > getBiasVoltages(const std::string &hapdID) const
Get inner cable ID and type, connected to bias channel.
Definition: ARICHBiasVoltages.cc:23
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHBiasVoltages::ARICHBiasVoltages
ARICHBiasVoltages()
Default constructor.
Definition: ARICHBiasVoltages.cc:19
Belle2::ARICHBiasVoltages::addVoltages
void addVoltages(const std::string &hapdID, std::vector< int > biasVoltages)
Add new entry to the mapping table.
Definition: ARICHBiasVoltages.cc:33
Belle2::ARICHBiasVoltages::ClassDef
ClassDef(ARICHBiasVoltages, 1)
ClassDef, must be the last term before the closing {}.