Belle II Software development
ARICHMagnetTest Class Reference

Contains fractions of dead times measured in a magnet. More...

#include <ARICHMagnetTest.h>

Inheritance diagram for ARICHMagnetTest:

Public Member Functions

 ARICHMagnetTest ()
 Default constructor.
 
 ~ARICHMagnetTest ()
 Destructor.
 
std::string getSerialNumber () const
 Return HAPD Serial Number.
 
void setSerialNumber (const std::string &serial)
 Set HAPD Serial Number.
 
float getDeadTime (unsigned int i) const
 Return dead time fraction of i-th measurement.
 
void appendDeadTime (float deadtime)
 Add a dead time fraction.
 
void setDeadTime (const std::vector< float > &deadTime)
 Set results of all measurements.
 
int getDeadTimeSize () const
 Return size of the list of dead time fractions.
 
float getDeadTimeLowerA () const
 Return result of 10V lower voltage at chip A.
 
void setDeadTimeLowerA (float dead_lowerA)
 Set result of 10V lower voltage at chip A.
 
float getDeadTimeLowerB () const
 Return result of 10V lower voltage at chip B.
 
void setDeadTimeLowerB (float dead_lowerB)
 Set result of 10V lower voltage at chip B.
 
float getDeadTimeLowerC () const
 Return result of 10V lower voltage at chip C.
 
void setDeadTimeLowerC (float dead_lowerC)
 Set result of 10V lower voltage at chip C.
 
float getDeadTimeLowerD () const
 Return result of 10V lower voltage at chip D.
 
void setDeadTimeLowerD (float dead_lowerD)
 Set result of 10V lower voltage at chip D.
 
void setGetter (bool getter)
 Set getter reactivation.
 
bool getGetter () const
 Return getter reactivation.
 
void setComment (const std::string &comment)
 Set comment.
 
std::string getComment () const
 Return comment.
 

Private Member Functions

 ClassDef (ARICHMagnetTest, 1)
 ClassDef.
 

Private Attributes

std::string m_serial
 serial number of the sensor
 
std::vector< float > m_deadTime
 fraction of dead time at 1st test
 
float m_dead_lowerA
 fraction of dead time with 10V lower voltage at chip A
 
float m_dead_lowerB
 fraction of dead time with 10V lower voltage at chip B
 
float m_dead_lowerC
 fraction of dead time with 10V lower voltage at chip C
 
float m_dead_lowerD
 fraction of dead time with 10V lower voltage at chip D
 
bool m_getter
 Getter reactivation.
 
std::string m_comment
 Optional comment.
 

Detailed Description

Contains fractions of dead times measured in a magnet.

Definition at line 21 of file ARICHMagnetTest.h.

Constructor & Destructor Documentation

◆ ARICHMagnetTest()

ARICHMagnetTest ( )
inline

Default constructor.

Definition at line 27 of file ARICHMagnetTest.h.

28 m_getter(false), m_comment("") {}
std::string m_comment
Optional comment.
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
bool m_getter
Getter reactivation.
float m_dead_lowerB
fraction of dead time with 10V lower voltage at chip B
std::string m_serial
serial number of the sensor
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

◆ ~ARICHMagnetTest()

~ARICHMagnetTest ( )
inline

Destructor.

Definition at line 33 of file ARICHMagnetTest.h.

33{};

Member Function Documentation

◆ appendDeadTime()

void appendDeadTime ( float  deadtime)
inline

Add a dead time fraction.

Parameters
deadtimedead time fraction

Definition at line 58 of file ARICHMagnetTest.h.

58{m_deadTime.push_back(deadtime); }

◆ getComment()

std::string getComment ( ) const
inline

Return comment.

Returns
comment

Definition at line 138 of file ARICHMagnetTest.h.

138{return m_comment; }

◆ getDeadTime()

float getDeadTime ( unsigned int  i) const

Return dead time fraction of i-th measurement.

Parameters
iindex of the element in the list
Returns
fraction of dead time

Definition at line 14 of file ARICHMagnetTest.cc.

15{
16 if (i < m_deadTime.size()) return m_deadTime[i];
17 else return -1.;
18}

◆ getDeadTimeLowerA()

float getDeadTimeLowerA ( ) const
inline

Return result of 10V lower voltage at chip A.

Returns
fraction of dead time

Definition at line 76 of file ARICHMagnetTest.h.

76{return m_dead_lowerA;}

◆ getDeadTimeLowerB()

float getDeadTimeLowerB ( ) const
inline

Return result of 10V lower voltage at chip B.

Returns
fraction of dead time

Definition at line 88 of file ARICHMagnetTest.h.

88{return m_dead_lowerB;}

◆ getDeadTimeLowerC()

float getDeadTimeLowerC ( ) const
inline

Return result of 10V lower voltage at chip C.

Returns
fraction of dead time

Definition at line 100 of file ARICHMagnetTest.h.

100{return m_dead_lowerC;}

◆ getDeadTimeLowerD()

float getDeadTimeLowerD ( ) const
inline

Return result of 10V lower voltage at chip D.

Returns
fraction of dead time

Definition at line 112 of file ARICHMagnetTest.h.

112{return m_dead_lowerD;}

◆ getDeadTimeSize()

int getDeadTimeSize ( ) const
inline

Return size of the list of dead time fractions.

Returns
size

Definition at line 70 of file ARICHMagnetTest.h.

70{return m_deadTime.size();}

◆ getGetter()

bool getGetter ( ) const
inline

Return getter reactivation.

Returns
getter reactivation

Definition at line 128 of file ARICHMagnetTest.h.

128{return m_getter; }

◆ getSerialNumber()

std::string getSerialNumber ( ) const
inline

Return HAPD Serial Number.

Returns
serial number

Definition at line 39 of file ARICHMagnetTest.h.

39{return m_serial;}

◆ setComment()

void setComment ( const std::string &  comment)
inline

Set comment.

Parameters
comment

Definition at line 133 of file ARICHMagnetTest.h.

133{m_comment = comment; }

◆ setDeadTime()

void setDeadTime ( const std::vector< float > &  deadTime)
inline

Set results of all measurements.

Parameters
deadTimefraction of dead time

Definition at line 64 of file ARICHMagnetTest.h.

64{m_deadTime = deadTime;}

◆ setDeadTimeLowerA()

void setDeadTimeLowerA ( float  dead_lowerA)
inline

Set result of 10V lower voltage at chip A.

Parameters
dead_lowerAfraction of dead time

Definition at line 82 of file ARICHMagnetTest.h.

82{m_dead_lowerA = dead_lowerA;}

◆ setDeadTimeLowerB()

void setDeadTimeLowerB ( float  dead_lowerB)
inline

Set result of 10V lower voltage at chip B.

Parameters
dead_lowerBfraction of dead time

Definition at line 94 of file ARICHMagnetTest.h.

94{m_dead_lowerB = dead_lowerB;}

◆ setDeadTimeLowerC()

void setDeadTimeLowerC ( float  dead_lowerC)
inline

Set result of 10V lower voltage at chip C.

Parameters
dead_lowerCfraction of dead time

Definition at line 106 of file ARICHMagnetTest.h.

106{m_dead_lowerC = dead_lowerC;}

◆ setDeadTimeLowerD()

void setDeadTimeLowerD ( float  dead_lowerD)
inline

Set result of 10V lower voltage at chip D.

Parameters
dead_lowerDfraction of dead time

Definition at line 118 of file ARICHMagnetTest.h.

118{m_dead_lowerD = dead_lowerD;}

◆ setGetter()

void setGetter ( bool  getter)
inline

Set getter reactivation.

Parameters
getterreactivation

Definition at line 123 of file ARICHMagnetTest.h.

123{m_getter = getter; }

◆ setSerialNumber()

void setSerialNumber ( const std::string &  serial)
inline

Set HAPD Serial Number.

Parameters
serialserial number

Definition at line 45 of file ARICHMagnetTest.h.

45{m_serial = serial; }

Member Data Documentation

◆ m_comment

std::string m_comment
private

Optional comment.

Definition at line 149 of file ARICHMagnetTest.h.

◆ m_dead_lowerA

float m_dead_lowerA
private

fraction of dead time with 10V lower voltage at chip A

Definition at line 144 of file ARICHMagnetTest.h.

◆ m_dead_lowerB

float m_dead_lowerB
private

fraction of dead time with 10V lower voltage at chip B

Definition at line 145 of file ARICHMagnetTest.h.

◆ m_dead_lowerC

float m_dead_lowerC
private

fraction of dead time with 10V lower voltage at chip C

Definition at line 146 of file ARICHMagnetTest.h.

◆ m_dead_lowerD

float m_dead_lowerD
private

fraction of dead time with 10V lower voltage at chip D

Definition at line 147 of file ARICHMagnetTest.h.

◆ m_deadTime

std::vector<float> m_deadTime
private

fraction of dead time at 1st test

Definition at line 143 of file ARICHMagnetTest.h.

◆ m_getter

bool m_getter
private

Getter reactivation.

Definition at line 148 of file ARICHMagnetTest.h.

◆ m_serial

std::string m_serial
private

serial number of the sensor

Definition at line 142 of file ARICHMagnetTest.h.


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