Belle II Software development
ARICHHighVoltageConfig.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#include <TObject.h>
11#include <TTimeStamp.h>
12#include <arich/dbobjects/ARICHCableInfo.h>
13
14namespace Belle2 {
23 class ARICHHighVoltageConfig: public TObject {
24 public:
25
30 m_timeStamp() {};
31
35 ARICHHighVoltageConfig(int id, float vSet, float vMax, float iMax, float rampU, float rampD, TTimeStamp timeStamp): m_id(id),
36 m_cable(Belle2::ARICHCableInfo()), m_vSet(vSet), m_vMax(vMax), m_iMax(iMax), m_rampUp(rampU), m_rampDown(rampD),
37 m_timeStamp(timeStamp) {};
38
42 ARICHHighVoltageConfig(int id, ARICHCableInfo cable, float vSet, float vMax, float iMax, float rampU, float rampD,
43 TTimeStamp timeStamp): m_id(id), m_cable(cable), m_vSet(vSet), m_vMax(vMax), m_iMax(iMax), m_rampUp(rampU), m_rampDown(rampD),
44 m_timeStamp(timeStamp) {};
45
50
54 int getHighVoltageID() const {return m_id; }
55
60 void setHighVoltageID(int id) { m_id = id;}
61
66
70 void setArichCable(ARICHCableInfo cable) {m_cable = cable; }
71
75 float getHighVoltage() const {return m_vSet; }
76
81 void setHighVoltage(float hvSet) { m_vSet = hvSet;}
82
86 float getMaximumHighVoltage() const {return m_vMax; }
87
91 void setMaximumHighVoltage(float vMax) {m_vMax = vMax; }
92
96 float getMaximumCurrent() const {return m_iMax; }
97
101 void setMaximumCurrent(float iMax) {m_iMax = iMax; }
102
106 float getRateDuringRampUp() const {return m_rampUp; }
107
112 void setRateDuringRampUp(float rampU) { m_rampUp = rampU;}
113
117 float getRateDuringRampDown() const {return m_rampDown; }
118
123 void setRateDuringRampDown(float rampD) { m_rampDown = rampD;}
124
128 TTimeStamp getTimeStamp() const {return m_timeStamp; }
129
133 void setTimeStamp(TTimeStamp timeStamp) {m_timeStamp = timeStamp; }
134
135 private:
136 int m_id;
138 float m_vSet;
139 float m_vMax;
140 float m_iMax;
141 float m_rampUp;
143 TTimeStamp m_timeStamp;
146 };
148} // end namespace Belle2
149
Configuration parameters of the High Voltage Channel.
float m_rampUp
Rate of the Voltage increase during ramp up.
void setArichCable(ARICHCableInfo cable)
Set Cable Identifier.
TTimeStamp m_timeStamp
Time of the constant creation.
float getRateDuringRampUp() const
Return Rate of the Voltage increase during ramp up.
ARICHHighVoltageConfig(int id, ARICHCableInfo cable, float vSet, float vMax, float iMax, float rampU, float rampD, TTimeStamp timeStamp)
Constructor.
ARICHCableInfo getArichCable() const
Return Cable Identifier.
void setRateDuringRampUp(float rampU)
Set Rate of the Voltage increase during ramp up.
ClassDef(ARICHHighVoltageConfig, 1)
ClassDef.
float getHighVoltage() const
Return High Voltage.
float m_rampDown
Rate of the Voltage increase during ramp down.
float getRateDuringRampDown() const
Return Rate of the Voltage increase during ramp down.
ARICHHighVoltageConfig(int id, float vSet, float vMax, float iMax, float rampU, float rampD, TTimeStamp timeStamp)
Constructor.
void setTimeStamp(TTimeStamp timeStamp)
Set Time of the constant creation.
float m_iMax
Set Maximum Current.
ARICHHighVoltageConfig()
Default constructor.
void setRateDuringRampDown(float rampD)
Set Rate of the Voltage increase during ramp down.
void setHighVoltage(float hvSet)
Set High Voltage.
ARICHCableInfo m_cable
Physical Cable Identifier.
TTimeStamp getTimeStamp() const
Return Time of the constant creation.
int m_id
Physical Identifier on the device.
float getMaximumHighVoltage() const
Return Maximum High Voltage.
int getHighVoltageID() const
Return Physical Identifier on the device.
float getMaximumCurrent() const
Return Maximum Current.
float m_vMax
Set Maximum High Voltage.
void setHighVoltageID(int id)
Set Physical Identifier on the device.
void setMaximumHighVoltage(float vMax)
Set Maximum High Voltage.
void setMaximumCurrent(float iMax)
Set Maximum Current.
Abstract base class for different kinds of events.