Belle II Software development
TOPWavelengthFilter Class Reference

Bulk transmittance of wavelength filter. More...

#include <TOPWavelengthFilter.h>

Inheritance diagram for TOPWavelengthFilter:
TOPGeoBase

Public Member Functions

 TOPWavelengthFilter ()
 Default constructor.
 
 TOPWavelengthFilter (float lambdaFirst, float lambdaStep, const std::vector< float > &trEffi, const std::string &name="TOPWavelengthFilter")
 Full constructor.
 
const std::vector< float > & getBulkTransmittances () const
 Returns bulk transmittance data points.
 
float getBulkTransmittance (double lambda) const
 Returns bulk transmittance at given wavelength using linear interpolation.
 
float getLambdaFirst () const
 Returns wavelength of the first data point.
 
float getLambdaStep () const
 Returns wavelength step.
 
bool isConsistent () const override
 Check for consistency of data members.
 
void print (const std::string &title="Wavelength filter bulk transmittance") const override
 Print the content of the class.
 
void setName (const std::string &name)
 Sets object name.
 
const std::string & getName () const
 Returns object name.
 
virtual void printSurface (const GeoOpticalSurface &surface) const
 Print the content of optical surface.
 
double getReflectivity (const GeoOpticalSurface &surface, double energy) const
 Returns reflectivity of optical surface at given photon energy.
 

Protected Member Functions

void printUnderlined (const std::string &title) const
 Print the content of the class.
 
 ClassDef (TOPGeoBase, 1)
 ClassDef.
 

Protected Attributes

std::string m_name
 geometry object name
 

Static Protected Attributes

static double s_unit = Unit::cm
 conversion unit for length
 
static std::string s_unitName
 conversion unit name
 

Private Member Functions

 ClassDefOverride (TOPWavelengthFilter, 1)
 ClassDef.
 

Private Attributes

float m_lambdaFirst = 0
 wavelength of the first data point [nm]
 
float m_lambdaStep = 0
 wavelength step [nm]
 
std::vector< float > m_transmittances
 bulk transmittance data points
 

Detailed Description

Bulk transmittance of wavelength filter.

Definition at line 23 of file TOPWavelengthFilter.h.

Constructor & Destructor Documentation

◆ TOPWavelengthFilter() [1/2]

TOPWavelengthFilter ( )
inline

Default constructor.

Definition at line 29 of file TOPWavelengthFilter.h.

30 {}

◆ TOPWavelengthFilter() [2/2]

TOPWavelengthFilter ( float  lambdaFirst,
float  lambdaStep,
const std::vector< float > &  trEffi,
const std::string &  name = "TOPWavelengthFilter" 
)
inline

Full constructor.

Parameters
lambdaFirstwavelength of the first data point [nm]
lambdaStepwavelength step [nm]
trEffibulk transmittance data points
nameobject name

Definition at line 39 of file TOPWavelengthFilter.h.

41 : TOPGeoBase(name),
42 m_lambdaFirst(lambdaFirst), m_lambdaStep(lambdaStep), m_transmittances(trEffi)
43 {}
TOPGeoBase()
Default constructor.
Definition: TOPGeoBase.h:31
float m_lambdaStep
wavelength step [nm]
std::vector< float > m_transmittances
bulk transmittance data points
float m_lambdaFirst
wavelength of the first data point [nm]

Member Function Documentation

◆ getBulkTransmittances()

const std::vector< float > & getBulkTransmittances ( ) const
inline

Returns bulk transmittance data points.

Returns
bulk transmittance data points

Definition at line 49 of file TOPWavelengthFilter.h.

49{return m_transmittances;}

◆ getLambdaFirst()

float getLambdaFirst ( ) const
inline

Returns wavelength of the first data point.

Returns
wavelength in [nm]

Definition at line 62 of file TOPWavelengthFilter.h.

62{return m_lambdaFirst;}

◆ getLambdaStep()

float getLambdaStep ( ) const
inline

Returns wavelength step.

Returns
wavelength step in [nm]

Definition at line 68 of file TOPWavelengthFilter.h.

68{return m_lambdaStep;}

◆ getName()

const std::string & getName ( ) const
inlineinherited

Returns object name.

Returns
object name

Definition at line 51 of file TOPGeoBase.h.

51{return m_name;}
std::string m_name
geometry object name
Definition: TOPGeoBase.h:89

◆ setName()

void setName ( const std::string &  name)
inlineinherited

Sets object name.

Parameters
nameobject name

Definition at line 45 of file TOPGeoBase.h.

45{m_name = name;}

Member Data Documentation

◆ m_lambdaFirst

float m_lambdaFirst = 0
private

wavelength of the first data point [nm]

Definition at line 85 of file TOPWavelengthFilter.h.

◆ m_lambdaStep

float m_lambdaStep = 0
private

wavelength step [nm]

Definition at line 86 of file TOPWavelengthFilter.h.

◆ m_name

std::string m_name
protectedinherited

geometry object name

Definition at line 89 of file TOPGeoBase.h.

◆ m_transmittances

std::vector<float> m_transmittances
private

bulk transmittance data points

Definition at line 87 of file TOPWavelengthFilter.h.


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