Belle II Software development
ARICHMagnetTest.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 <string>
12
13namespace Belle2 {
21 class ARICHMagnetTest: public TObject {
22 public:
23
28 m_getter(false), m_comment("") {}
29
34
39 std::string getSerialNumber() const {return m_serial;}
40
45 void setSerialNumber(const std::string& serial) {m_serial = serial; }
46
52 float getDeadTime(unsigned int i) const;
53
58 void appendDeadTime(float deadtime) {m_deadTime.push_back(deadtime); }
59
64 void setDeadTime(const std::vector<float>& deadTime) {m_deadTime = deadTime;}
65
70 int getDeadTimeSize() const {return m_deadTime.size();}
71
76 float getDeadTimeLowerA() const {return m_dead_lowerA;}
77
82 void setDeadTimeLowerA(float dead_lowerA) {m_dead_lowerA = dead_lowerA;}
83
88 float getDeadTimeLowerB() const {return m_dead_lowerB;}
89
94 void setDeadTimeLowerB(float dead_lowerB) {m_dead_lowerB = dead_lowerB;}
95
100 float getDeadTimeLowerC() const {return m_dead_lowerC;}
101
106 void setDeadTimeLowerC(float dead_lowerC) {m_dead_lowerC = dead_lowerC;}
107
112 float getDeadTimeLowerD() const {return m_dead_lowerD;}
113
118 void setDeadTimeLowerD(float dead_lowerD) {m_dead_lowerD = dead_lowerD;}
119
123 void setGetter(bool getter) {m_getter = getter; }
124
128 bool getGetter() const {return m_getter; }
129
133 void setComment(const std::string& comment) {m_comment = comment; }
134
138 std::string getComment() const {return m_comment; }
139
140
141 private:
142 std::string m_serial;
143 std::vector<float> m_deadTime;
148 bool m_getter;
149 std::string m_comment;
153 };
155} // end namespace Belle2
156
Contains fractions of dead times measured in a magnet.
std::string getSerialNumber() const
Return HAPD Serial Number.
std::string m_comment
Optional comment.
void setSerialNumber(const std::string &serial)
Set HAPD Serial Number.
std::string getComment() const
Return comment.
void setDeadTime(const std::vector< float > &deadTime)
Set results of all measurements.
float getDeadTimeLowerC() const
Return result of 10V lower voltage at chip C.
void setDeadTimeLowerD(float dead_lowerD)
Set result of 10V lower voltage at chip D.
float getDeadTimeLowerB() const
Return result of 10V lower voltage at chip B.
float m_dead_lowerA
fraction of dead time with 10V lower voltage at chip A
float m_dead_lowerC
fraction of dead time with 10V lower voltage at chip C
~ARICHMagnetTest()
Destructor.
bool m_getter
Getter reactivation.
float m_dead_lowerB
fraction of dead time with 10V lower voltage at chip B
void setDeadTimeLowerC(float dead_lowerC)
Set result of 10V lower voltage at chip C.
float getDeadTime(unsigned int i) const
Return dead time fraction of i-th measurement.
float getDeadTimeLowerA() const
Return result of 10V lower voltage at chip A.
ClassDef(ARICHMagnetTest, 1)
ClassDef.
float getDeadTimeLowerD() const
Return result of 10V lower voltage at chip D.
bool getGetter() const
Return getter reactivation.
std::string m_serial
serial number of the sensor
int getDeadTimeSize() const
Return size of the list of dead time fractions.
std::vector< float > m_deadTime
fraction of dead time at 1st test
float m_dead_lowerD
fraction of dead time with 10V lower voltage at chip D
void appendDeadTime(float deadtime)
Add a dead time fraction.
ARICHMagnetTest()
Default constructor.
void setDeadTimeLowerA(float dead_lowerA)
Set result of 10V lower voltage at chip A.
void setGetter(bool getter)
Set getter reactivation.
void setComment(const std::string &comment)
Set comment.
void setDeadTimeLowerB(float dead_lowerB)
Set result of 10V lower voltage at chip B.
Abstract base class for different kinds of events.