9 #include <framework/logging/Logger.h>
11 #include <arich/dbobjects/ARICHBiasVoltages.h>
17 ARICHBiasVoltages::ARICHBiasVoltages()
21 std::vector<int> ARICHBiasVoltages::getBiasVoltages(
const std::string& hapdID)
const
24 return m_hapd2voltages.find(hapdID)->second;
26 return std::vector<int>(5, 0);
31 void ARICHBiasVoltages::addVoltages(
const std::string& hapdID, std::vector<int> biasVoltages)
33 m_hapd2voltages.insert(std::pair<std::string, std::vector<int>>(hapdID, biasVoltages));
36 void ARICHBiasVoltages::print()
const
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]);
Abstract base class for different kinds of events.