Belle II Software  release-08-01-10
ARICHAerogelInfo Class Reference

The Class for ARICH Aerogel Parameters. More...

#include <ARICHAerogelInfo.h>

Inheritance diagram for ARICHAerogelInfo:
Collaboration 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
 Return Aerogel Version. More...
 
void setAerogelVersion (float version)
 Set Aerogel Version. More...
 
std::string getAerogelSN () const
 Return Aerogel Serial number. More...
 
void setAerogelSN (const std::string &serial)
 Set Aerogel Serial number. More...
 
std::string getAerogelID () const
 Return Aerogel Identifier. More...
 
void setAerogelID (const std::string &agelid)
 Set Aerogel Identifier. More...
 
float getAerogelRefractiveIndex () const
 Return Refractive Index of Aerogel. More...
 
void setAerogelRefractiveIndex (float index)
 Set Aerogel Refractive Index. More...
 
float getAerogelTransmissionLength () const
 Return Transmission Length at 400 nm. More...
 
void setAerogelTransmissionLength (float translength)
 Set Transmission Length at 400 nm. More...
 
float getAerogelThickness () const
 Return Aerogel Thickness. More...
 
void setAerogelThickness (float thickness)
 Set Aerogel Thickness. More...
 
float getAerogelTransmittanceElement (int lambda) const
 Return Aerogel Transmittance at lambda. More...
 
void setAerogelTransmittanceElement (int lambda, float transmittance)
 Set Aerogel Transmittance at lambda. More...
 
float getAerogelTransmittance (unsigned int i) const
 Return Aerogel Transmittance. More...
 
void setAerogelTransmittance (std::vector< float > transmittance)
 Set Aerogel Transmittance. More...
 
int getAerogelTransmittanceLambda (unsigned int i) const
 Return Lambda for Aerogel Transmittance. More...
 
void setAerogelTransmittanceLambda (std::vector< float > lambda)
 Set Lambda for Aerogel Transmittance. More...
 
std::string getAerogelComment () const
 Return comment. More...
 
void setAerogelComment (const std::string &comment)
 Set comment. More...
 

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 27 of file ARICHAerogelInfo.h.

Member Function Documentation

◆ getAerogelComment()

std::string getAerogelComment ( ) const
inline

Return comment.

Returns
comment

Definition at line 149 of file ARICHAerogelInfo.h.

149 {return m_comment; }
std::string m_comment
optional comment

◆ getAerogelID()

std::string getAerogelID ( ) const
inline

Return Aerogel Identifier.

Returns
Aerogel Identifier

Definition at line 73 of file ARICHAerogelInfo.h.

◆ getAerogelRefractiveIndex()

float getAerogelRefractiveIndex ( ) const
inline

Return Refractive Index of Aerogel.

Returns
Refractive Index of Aerogel

Definition at line 84 of file ARICHAerogelInfo.h.

◆ getAerogelSN()

std::string getAerogelSN ( ) const
inline

Return Aerogel Serial number.

Returns
Aerogel Serial number

Definition at line 63 of file ARICHAerogelInfo.h.

◆ getAerogelThickness()

float getAerogelThickness ( ) const
inline

Return Aerogel Thickness.

Returns
Aerogel Thickness

Definition at line 104 of file ARICHAerogelInfo.h.

◆ getAerogelTransmissionLength()

float getAerogelTransmissionLength ( ) const
inline

Return Transmission Length at 400 nm.

Returns
Transmission Length at 400 nm

Definition at line 94 of file ARICHAerogelInfo.h.

◆ getAerogelTransmittance()

float getAerogelTransmittance ( unsigned int  i) const
inline

Return Aerogel Transmittance.

Returns
Aerogel transmittance

Definition at line 127 of file ARICHAerogelInfo.h.

◆ getAerogelTransmittanceElement()

float getAerogelTransmittanceElement ( int  lambda) const

Return 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.
std::vector< float > m_transmittance
Transmittance of aerogel.
float c_lambdaMax
Max value of lambda.

◆ getAerogelTransmittanceLambda()

int getAerogelTransmittanceLambda ( unsigned int  i) const
inline

Return Lambda for Aerogel Transmittance.

Returns
Lambda for Aerogel transmittance

Definition at line 139 of file ARICHAerogelInfo.h.

◆ getAerogelVersion()

float getAerogelVersion ( ) const
inline

Return Aerogel Version.

Returns
Aerogel Version

Definition at line 53 of file ARICHAerogelInfo.h.

◆ setAerogelComment()

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

Set comment.

Parameters
comment

Definition at line 154 of file ARICHAerogelInfo.h.

◆ setAerogelID()

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

Set Aerogel Identifier.

Parameters
AerogelIdentifier

Definition at line 78 of file ARICHAerogelInfo.h.

◆ setAerogelRefractiveIndex()

void setAerogelRefractiveIndex ( float  index)
inline

Set Aerogel Refractive Index.

Parameters
AerogelRefractive Index

Definition at line 89 of file ARICHAerogelInfo.h.

◆ setAerogelSN()

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

Set Aerogel Serial number.

Parameters
AerogelSerial number

Definition at line 68 of file ARICHAerogelInfo.h.

◆ setAerogelThickness()

void setAerogelThickness ( float  thickness)
inline

Set Aerogel Thickness.

Parameters
AerogelThickness

Definition at line 109 of file ARICHAerogelInfo.h.

◆ setAerogelTransmissionLength()

void setAerogelTransmissionLength ( float  translength)
inline

Set Transmission Length at 400 nm.

Parameters
TransmissionLength at 400 nm

Definition at line 99 of file ARICHAerogelInfo.h.

◆ setAerogelTransmittance()

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

Set Aerogel Transmittance.

Parameters
transmittance

Definition at line 36 of file ARICHAerogelInfo.cc.

◆ setAerogelTransmittanceElement()

void setAerogelTransmittanceElement ( int  lambda,
float  transmittance 
)

Set Aerogel Transmittance at lambda.

Parameters
lambda
transmittance

Definition at line 26 of file ARICHAerogelInfo.cc.

◆ setAerogelTransmittanceLambda()

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

Set Lambda for Aerogel Transmittance.

Parameters
Lambdafor transmittance

Definition at line 42 of file ARICHAerogelInfo.cc.

◆ setAerogelVersion()

void setAerogelVersion ( float  version)
inline

Set Aerogel Version.

Parameters
AerogelVersion

Definition at line 58 of file ARICHAerogelInfo.h.


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