Belle II Software  release-05-01-25
ARICHHighVoltageConfig.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Rok Pestotnik, Manca Mrvar *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 #include <TObject.h>
13 #include <TTimeStamp.h>
14 #include <arich/dbobjects/ARICHCableInfo.h>
15 
16 namespace Belle2 {
25  class ARICHHighVoltageConfig: public TObject {
26  public:
27 
31  ARICHHighVoltageConfig(): m_id(0), m_cable(Belle2::ARICHCableInfo()), m_vSet(0), m_vMax(0), m_iMax(0), m_rampUp(0), m_rampDown(0),
32  m_timeStamp() {};
33 
37  ARICHHighVoltageConfig(int id, float vSet, float vMax, float iMax, float rampU, float rampD, TTimeStamp timeStamp): m_id(id),
38  m_cable(Belle2::ARICHCableInfo()), m_vSet(vSet), m_vMax(vMax), m_iMax(iMax), m_rampUp(rampU), m_rampDown(rampD),
39  m_timeStamp(timeStamp) {};
40 
44  ARICHHighVoltageConfig(int id, ARICHCableInfo cable, float vSet, float vMax, float iMax, float rampU, float rampD,
45  TTimeStamp timeStamp): m_id(id), m_cable(cable), m_vSet(vSet), m_vMax(vMax), m_iMax(iMax), m_rampUp(rampU), m_rampDown(rampD),
46  m_timeStamp(timeStamp) {};
47 
52 
56  int getHighVoltageID() const {return m_id; }
57 
62  void setHighVoltageID(int id) { m_id = id;}
63 
67  ARICHCableInfo getArichCable() const {return m_cable; }
68 
72  void setArichCable(ARICHCableInfo cable) {m_cable = cable; }
73 
77  float getHighVoltage() const {return m_vSet; }
78 
83  void setHighVoltage(float hvSet) { m_vSet = hvSet;}
84 
88  float getMaximumHighVoltage() const {return m_vMax; }
89 
93  void setMaximumHighVoltage(float vMax) {m_vMax = vMax; }
94 
98  float getMaximumCurrent() const {return m_iMax; }
99 
103  void setMaximumCurrent(float iMax) {m_iMax = iMax; }
104 
108  float getRateDuringRampUp() const {return m_rampUp; }
109 
114  void setRateDuringRampUp(float rampU) { m_rampUp = rampU;}
115 
119  float getRateDuringRampDown() const {return m_rampDown; }
120 
125  void setRateDuringRampDown(float rampD) { m_rampDown = rampD;}
126 
130  TTimeStamp getTimeStamp() const {return m_timeStamp; }
131 
135  void setTimeStamp(TTimeStamp timeStamp) {m_timeStamp = timeStamp; }
136 
137  private:
138  int m_id;
140  float m_vSet;
141  float m_vMax;
142  float m_iMax;
143  float m_rampUp;
144  float m_rampDown;
145  TTimeStamp m_timeStamp;
148  };
150 } // end namespace Belle2
151 
Belle2::ARICHHighVoltageConfig::setHighVoltage
void setHighVoltage(float hvSet)
Set High Voltage.
Definition: ARICHHighVoltageConfig.h:91
Belle2::ARICHHighVoltageConfig::getRateDuringRampUp
float getRateDuringRampUp() const
Return Rate of the Voltage increase during ramp up.
Definition: ARICHHighVoltageConfig.h:116
Belle2::ARICHHighVoltageConfig::setRateDuringRampUp
void setRateDuringRampUp(float rampU)
Set Rate of the Voltage increase during ramp up.
Definition: ARICHHighVoltageConfig.h:122
Belle2::ARICHHighVoltageConfig::m_iMax
float m_iMax
Set Maximum Current.
Definition: ARICHHighVoltageConfig.h:150
Belle2::ARICHHighVoltageConfig
Configuration parameters of the High Voltage Channel.
Definition: ARICHHighVoltageConfig.h:33
Belle2::ARICHHighVoltageConfig::getHighVoltage
float getHighVoltage() const
Return High Voltage.
Definition: ARICHHighVoltageConfig.h:85
Belle2::ARICHHighVoltageConfig::setMaximumCurrent
void setMaximumCurrent(float iMax)
Set Maximum Current.
Definition: ARICHHighVoltageConfig.h:111
Belle2::ARICHHighVoltageConfig::setHighVoltageID
void setHighVoltageID(int id)
Set Physical Identifier on the device.
Definition: ARICHHighVoltageConfig.h:70
Belle2::ARICHHighVoltageConfig::m_vMax
float m_vMax
Set Maximum High Voltage.
Definition: ARICHHighVoltageConfig.h:149
Belle2::ARICHHighVoltageConfig::ARICHHighVoltageConfig
ARICHHighVoltageConfig()
Default constructor.
Definition: ARICHHighVoltageConfig.h:39
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHCableInfo
List of Cables.
Definition: ARICHCableInfo.h:34
Belle2::ARICHHighVoltageConfig::m_rampDown
float m_rampDown
Rate of the Voltage increase during ramp down.
Definition: ARICHHighVoltageConfig.h:152
Belle2::ARICHHighVoltageConfig::setTimeStamp
void setTimeStamp(TTimeStamp timeStamp)
Set Time of the constant creation.
Definition: ARICHHighVoltageConfig.h:143
Belle2::ARICHHighVoltageConfig::getHighVoltageID
int getHighVoltageID() const
Return Physical Identifier on the device.
Definition: ARICHHighVoltageConfig.h:64
Belle2::ARICHHighVoltageConfig::m_rampUp
float m_rampUp
Rate of the Voltage increase during ramp up.
Definition: ARICHHighVoltageConfig.h:151
Belle2::ARICHHighVoltageConfig::setRateDuringRampDown
void setRateDuringRampDown(float rampD)
Set Rate of the Voltage increase during ramp down.
Definition: ARICHHighVoltageConfig.h:133
Belle2::ARICHHighVoltageConfig::getMaximumHighVoltage
float getMaximumHighVoltage() const
Return Maximum High Voltage.
Definition: ARICHHighVoltageConfig.h:96
Belle2::ARICHHighVoltageConfig::m_id
int m_id
Physical Identifier on the device.
Definition: ARICHHighVoltageConfig.h:146
Belle2::ARICHHighVoltageConfig::~ARICHHighVoltageConfig
~ARICHHighVoltageConfig()
Destructor.
Definition: ARICHHighVoltageConfig.h:59
Belle2::ARICHHighVoltageConfig::m_cable
ARICHCableInfo m_cable
Physical Cable Identifier.
Definition: ARICHHighVoltageConfig.h:147
Belle2::ARICHHighVoltageConfig::ClassDef
ClassDef(ARICHHighVoltageConfig, 1)
ClassDef.
Belle2::ARICHHighVoltageConfig::m_vSet
float m_vSet
Set High Voltage.
Definition: ARICHHighVoltageConfig.h:148
Belle2::ARICHHighVoltageConfig::getMaximumCurrent
float getMaximumCurrent() const
Return Maximum Current.
Definition: ARICHHighVoltageConfig.h:106
Belle2::ARICHHighVoltageConfig::setMaximumHighVoltage
void setMaximumHighVoltage(float vMax)
Set Maximum High Voltage.
Definition: ARICHHighVoltageConfig.h:101
Belle2::ARICHHighVoltageConfig::getArichCable
ARICHCableInfo getArichCable() const
Return Cable Identifier.
Definition: ARICHHighVoltageConfig.h:75
Belle2::ARICHHighVoltageConfig::m_timeStamp
TTimeStamp m_timeStamp
Time of the constant creation.
Definition: ARICHHighVoltageConfig.h:153
Belle2::ARICHHighVoltageConfig::getRateDuringRampDown
float getRateDuringRampDown() const
Return Rate of the Voltage increase during ramp down.
Definition: ARICHHighVoltageConfig.h:127
Belle2::ARICHHighVoltageConfig::getTimeStamp
TTimeStamp getTimeStamp() const
Return Time of the constant creation.
Definition: ARICHHighVoltageConfig.h:138
Belle2::ARICHHighVoltageConfig::setArichCable
void setArichCable(ARICHCableInfo cable)
Set Cable Identifier.
Definition: ARICHHighVoltageConfig.h:80