Belle II Software development
ARICHAerogelInfo Class Reference

The Class for ARICH Aerogel Parameters. More...

#include <ARICHAerogelInfo.h>

Inheritance diagram for ARICHAerogelInfo:

Public Member Functions

 ARICHAerogelInfo ()
 Default constructor.
 
 ARICHAerogelInfo (float version, const std::string &serial, const std::string &id, float index, float trlen, float thickness, std::vector< int > &lambda, std::vector< float > &transmittance)
 Constructor.
 
 ~ARICHAerogelInfo ()
 Destructor.
 
float getAerogelVersion () const
 Get aerogel version.
 
void setAerogelVersion (float version)
 Set aerogel version.
 
std::string getAerogelSN () const
 Get aerogel serial number.
 
void setAerogelSN (const std::string &serial)
 Set aerogel serial number.
 
std::string getAerogelID () const
 Get aerogel identifier.
 
void setAerogelID (const std::string &agelid)
 Set aerogel identifier.
 
float getAerogelRefractiveIndex () const
 Get refractive index of aerogel.
 
void setAerogelRefractiveIndex (float index)
 Set aerogel refractive index.
 
float getAerogelTransmissionLength () const
 Get transmission length at 400 nm.
 
void setAerogelTransmissionLength (float translength)
 Set transmission length at 400 nm.
 
float getAerogelThickness () const
 Get aerogel thickness.
 
void setAerogelThickness (float thickness)
 Set aerogel thickness.
 
float getAerogelTransmittanceElement (int lambda) const
 Get aerogel transmittance at lambda.
 
void setAerogelTransmittanceElement (int lambda, float transmittance)
 Set aerogel transmittance at lambda.
 
float getAerogelTransmittance (unsigned int i) const
 Get aerogel transmittance.
 
void setAerogelTransmittance (std::vector< float > transmittance)
 Set aerogel transmittance.
 
int getAerogelTransmittanceLambda (unsigned int i) const
 Get lambda for aerogel transmittance.
 
void setAerogelTransmittanceLambda (std::vector< float > lambda)
 Set lambda for aerogel transmittance.
 
std::string getAerogelComment () const
 Get comment.
 
void setAerogelComment (const std::string &comment)
 Set comment.
 

Private Member Functions

 ClassDef (ARICHAerogelInfo, 4)
 ClassDef.
 

Private Attributes

float c_lambdaMin = 200.0
 Min value of lambda.
 
float c_lambdaMax = 700.0
 Max value of lambda.
 
float c_lambdaStep = 10.0
 Lambda - steps.
 
float m_version
 Aerogel data version (measurement number)
 
std::string m_serial
 Aerogel Serial number.
 
std::string m_id
 Aerogel Identifier.
 
float m_refractiveIndex
 Refractive Index of the aerogel.
 
float m_transmissionLength
 Transmission Length at 400 nm.
 
float m_thickness
 Thickness of the aerogel.
 
std::vector< int > m_lambda
 Lambda for transmittance.
 
std::vector< float > m_transmittance
 Transmittance of aerogel.
 
std::string m_comment
 optional comment
 

Detailed Description

The Class for ARICH Aerogel Parameters.

Definition at line 26 of file ARICHAerogelInfo.h.

Constructor & Destructor Documentation

◆ ARICHAerogelInfo() [1/2]

ARICHAerogelInfo ( )
inline

Default constructor.

Definition at line 33 of file ARICHAerogelInfo.h.

std::string m_comment
optional comment
float m_refractiveIndex
Refractive Index of the aerogel.
std::string m_id
Aerogel Identifier.
float m_transmissionLength
Transmission Length at 400 nm.
std::vector< int > m_lambda
Lambda for transmittance.
float m_thickness
Thickness of the aerogel.
std::string m_serial
Aerogel Serial number.
std::vector< float > m_transmittance
Transmittance of aerogel.
float m_version
Aerogel data version (measurement number)

◆ ARICHAerogelInfo() [2/2]

ARICHAerogelInfo ( float  version,
const std::string &  serial,
const std::string &  id,
float  index,
float  trlen,
float  thickness,
std::vector< int > &  lambda,
std::vector< float > &  transmittance 
)
inline

Constructor.

Definition at line 39 of file ARICHAerogelInfo.h.

40 : m_version(version), m_serial(serial), m_id(id),
41 m_refractiveIndex(index), m_transmissionLength(trlen), m_thickness(thickness), m_lambda(lambda), m_transmittance(transmittance),
42 m_comment("") {};

◆ ~ARICHAerogelInfo()

~ARICHAerogelInfo ( )
inline

Destructor.

Definition at line 47 of file ARICHAerogelInfo.h.

47{};

Member Function Documentation

◆ getAerogelComment()

std::string getAerogelComment ( ) const
inline

Get comment.

Returns
Comment.

Definition at line 162 of file ARICHAerogelInfo.h.

162{return m_comment; }

◆ getAerogelID()

std::string getAerogelID ( ) const
inline

Get aerogel identifier.

Returns
Aerogel identifier.

Definition at line 77 of file ARICHAerogelInfo.h.

77{return m_id; };

◆ getAerogelRefractiveIndex()

float getAerogelRefractiveIndex ( ) const
inline

Get refractive index of aerogel.

Returns
Refractive index of aerogel.

Definition at line 89 of file ARICHAerogelInfo.h.

89{return m_refractiveIndex; }

◆ getAerogelSN()

std::string getAerogelSN ( ) const
inline

Get aerogel serial number.

Returns
Aerogel serial number.

Definition at line 65 of file ARICHAerogelInfo.h.

65{return m_serial; };

◆ getAerogelThickness()

float getAerogelThickness ( ) const
inline

Get aerogel thickness.

Returns
Aerogel thickness.

Definition at line 113 of file ARICHAerogelInfo.h.

113{return m_thickness; }

◆ getAerogelTransmissionLength()

float getAerogelTransmissionLength ( ) const
inline

Get transmission length at 400 nm.

Returns
Transmission length at 400 nm.

Definition at line 101 of file ARICHAerogelInfo.h.

101{return m_transmissionLength; }

◆ getAerogelTransmittance()

float getAerogelTransmittance ( unsigned int  i) const
inline

Get aerogel transmittance.

Returns
Aerogel transmittance.

Definition at line 138 of file ARICHAerogelInfo.h.

138{ if (i < m_transmittance.size()) return m_transmittance[i]; else return -1;}

◆ getAerogelTransmittanceElement()

float getAerogelTransmittanceElement ( int  lambda) const

Get aerogel transmittance at lambda.

Returns
Aerogel transmittance at lambda.

Definition at line 15 of file ARICHAerogelInfo.cc.

16{
17 if (lambda < c_lambdaMin || lambda > c_lambdaMax) {
18 B2INFO("lambda not in right interval!");
19 return -1;
20 }
21 int index = (int) round((lambda - c_lambdaMin) / c_lambdaStep);
22 return m_transmittance[index];
23}
float c_lambdaMin
Min value of lambda.
float c_lambdaStep
Lambda - steps.
float c_lambdaMax
Max value of lambda.

◆ getAerogelTransmittanceLambda()

int getAerogelTransmittanceLambda ( unsigned int  i) const
inline

Get lambda for aerogel transmittance.

Returns
Lambda for aerogel transmittance.

Definition at line 150 of file ARICHAerogelInfo.h.

150{ if (i < m_lambda.size()) return m_lambda[i]; else return -1;}

◆ getAerogelVersion()

float getAerogelVersion ( ) const
inline

Get aerogel version.

Returns
aerogel version.

Definition at line 53 of file ARICHAerogelInfo.h.

53{return m_version; }

◆ setAerogelComment()

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

Set comment.

Parameters
[in]commentComment.

Definition at line 168 of file ARICHAerogelInfo.h.

168{m_comment = comment; }

◆ setAerogelID()

void setAerogelID ( const std::string &  agelid)
inline

Set aerogel identifier.

Parameters
[in]agelidAerogel identifier.

Definition at line 83 of file ARICHAerogelInfo.h.

83{m_id = agelid; }

◆ setAerogelRefractiveIndex()

void setAerogelRefractiveIndex ( float  index)
inline

Set aerogel refractive index.

Parameters
[in]indexAerogel refractive index.

Definition at line 95 of file ARICHAerogelInfo.h.

95{m_refractiveIndex = index; }

◆ setAerogelSN()

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

Set aerogel serial number.

Parameters
[in]serialAerogel serial number.

Definition at line 71 of file ARICHAerogelInfo.h.

71{m_serial = serial; }

◆ setAerogelThickness()

void setAerogelThickness ( float  thickness)
inline

Set aerogel thickness.

Parameters
[in]thicknessAerogel thickness.

Definition at line 119 of file ARICHAerogelInfo.h.

119{m_thickness = thickness; }

◆ setAerogelTransmissionLength()

void setAerogelTransmissionLength ( float  translength)
inline

Set transmission length at 400 nm.

Parameters
[in]translengthTransmission Length at 400 nm.

Definition at line 107 of file ARICHAerogelInfo.h.

107{m_transmissionLength = translength; }

◆ setAerogelTransmittance()

void setAerogelTransmittance ( std::vector< float >  transmittance)

Set aerogel transmittance.

Parameters
[in]transmittanceAerogel transmittance.

Definition at line 36 of file ARICHAerogelInfo.cc.

37{
38 for (unsigned int i = 0; i < transmittance.size(); i++) m_transmittance.push_back(transmittance[i]);
39}

◆ setAerogelTransmittanceElement()

void setAerogelTransmittanceElement ( int  lambda,
float  transmittance 
)

Set aerogel transmittance at lambda.

Parameters
[in]lambda
[in]transmittanceAerogel transmittance at lambda.

Definition at line 26 of file ARICHAerogelInfo.cc.

27{
28 if (lambda < c_lambdaMin || lambda > c_lambdaMax) {
29 B2INFO("lambda not in right interval!");
30 }
31 int index = (int) round((lambda - c_lambdaMin) / c_lambdaStep);
32 m_transmittance[index] = transmittance;
33}

◆ setAerogelTransmittanceLambda()

void setAerogelTransmittanceLambda ( std::vector< float >  lambda)

Set lambda for aerogel transmittance.

Parameters
[in]lambdaLambda for aerogel transmittance.

Definition at line 42 of file ARICHAerogelInfo.cc.

43{
44 for (unsigned int i = 0; i < lambda.size(); i++) m_lambda.push_back(lambda[i]);
45}

◆ setAerogelVersion()

void setAerogelVersion ( float  version)
inline

Set aerogel version.

Parameters
[in]versionAerogel version.

Definition at line 59 of file ARICHAerogelInfo.h.

59{m_version = version; }

Member Data Documentation

◆ c_lambdaMax

float c_lambdaMax = 700.0
private

Max value of lambda.

Definition at line 173 of file ARICHAerogelInfo.h.

◆ c_lambdaMin

float c_lambdaMin = 200.0
private

Min value of lambda.

Definition at line 172 of file ARICHAerogelInfo.h.

◆ c_lambdaStep

float c_lambdaStep = 10.0
private

Lambda - steps.

Definition at line 174 of file ARICHAerogelInfo.h.

◆ m_comment

std::string m_comment
private

optional comment

Definition at line 184 of file ARICHAerogelInfo.h.

◆ m_id

std::string m_id
private

Aerogel Identifier.

Definition at line 178 of file ARICHAerogelInfo.h.

◆ m_lambda

std::vector<int> m_lambda
private

Lambda for transmittance.

Definition at line 182 of file ARICHAerogelInfo.h.

◆ m_refractiveIndex

float m_refractiveIndex
private

Refractive Index of the aerogel.

Definition at line 179 of file ARICHAerogelInfo.h.

◆ m_serial

std::string m_serial
private

Aerogel Serial number.

Definition at line 177 of file ARICHAerogelInfo.h.

◆ m_thickness

float m_thickness
private

Thickness of the aerogel.

Definition at line 181 of file ARICHAerogelInfo.h.

◆ m_transmissionLength

float m_transmissionLength
private

Transmission Length at 400 nm.

Definition at line 180 of file ARICHAerogelInfo.h.

◆ m_transmittance

std::vector<float> m_transmittance
private

Transmittance of aerogel.

Definition at line 183 of file ARICHAerogelInfo.h.

◆ m_version

float m_version
private

Aerogel data version (measurement number)

Definition at line 176 of file ARICHAerogelInfo.h.


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