Belle II Software development
ARICHBiasVoltages Class Reference

The Class for ARICH bias voltages at gain 40. More...

#include <ARICHBiasVoltages.h>

Inheritance diagram for ARICHBiasVoltages:

Public Member Functions

 ARICHBiasVoltages ()
 Default constructor.
 
std::vector< int > getBiasVoltages (const std::string &hapdID) const
 Get inner cable ID and type, connected to bias channel.
 
void addVoltages (const std::string &hapdID, std::vector< int > biasVoltages)
 Add new entry to the mapping table.
 
void print () const
 Print voltages for PS channels.
 

Private Member Functions

 ClassDef (ARICHBiasVoltages, 1)
 ClassDef, must be the last term before the closing {}.
 

Private Attributes

std::map< std::string, std::vector< int > > m_hapd2voltages
 map of voltages to power supply
 

Detailed Description

The Class for ARICH bias voltages at gain 40.

This class provides ARICH bias voltages at gain 40

Definition at line 24 of file ARICHBiasVoltages.h.

Constructor & Destructor Documentation

◆ ARICHBiasVoltages()

Default constructor.

Definition at line 17 of file ARICHBiasVoltages.cc.

18{
19}

Member Function Documentation

◆ addVoltages()

void addVoltages ( const std::string &  hapdID,
std::vector< int >  biasVoltages 
)

Add new entry to the mapping table.

Parameters
hapdIDserial number of HAPD
biasVoltagesvector of applied bias voltages

Definition at line 31 of file ARICHBiasVoltages.cc.

32{
33 m_hapd2voltages.insert(std::pair<std::string, std::vector<int>>(hapdID, biasVoltages));
34}
std::map< std::string, std::vector< int > > m_hapd2voltages
map of voltages to power supply

◆ getBiasVoltages()

std::vector< int > getBiasVoltages ( const std::string &  hapdID) const

Get inner cable ID and type, connected to bias channel.

Parameters
hapdIDserial number of HAPD
Returns
biasVoltages vector of applied bias voltages

Definition at line 21 of file ARICHBiasVoltages.cc.

22{
23 if (hapdID != "") {
24 return m_hapd2voltages.find(hapdID)->second;
25 } else {
26 return std::vector<int>(5, 0);
27 }
28
29}

◆ print()

void print ( ) const

Print voltages for PS channels.

Definition at line 36 of file ARICHBiasVoltages.cc.

37{
38
39 for (auto const& x : m_hapd2voltages) {
40 std::vector<int> voltages = x.second;
41 B2INFO("voltages: " << x.first << ": bias A = " << voltages[0] << ", bias B = " << voltages[1] << ", bias C = " << voltages[2] <<
42 ", bias D = " << voltages[3] << ", guard = " << voltages[4]);
43 }
44}

Member Data Documentation

◆ m_hapd2voltages

std::map<std::string, std::vector<int> > m_hapd2voltages
private

map of voltages to power supply

Definition at line 52 of file ARICHBiasVoltages.h.


The documentation for this class was generated from the following files: