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

Bulk transmittance of wavelength filter. More...

#include <TOPWavelengthFilter.h>

Inheritance diagram for TOPWavelengthFilter:
Collaboration diagram for TOPWavelengthFilter:

Public Member Functions

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

Protected Member Functions

void printUnderlined (const std::string &title) const
 Print the content of the class. More...
 
 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()

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.

◆ getLambdaFirst()

float getLambdaFirst ( ) const
inline

Returns wavelength of the first data point.

Returns
wavelength in [nm]

Definition at line 62 of file TOPWavelengthFilter.h.

◆ getLambdaStep()

float getLambdaStep ( ) const
inline

Returns wavelength step.

Returns
wavelength step in [nm]

Definition at line 68 of file TOPWavelengthFilter.h.

◆ getName()

const std::string& getName ( void  ) const
inlineinherited

Returns object name.

Returns
object name

Definition at line 51 of file TOPGeoBase.h.

◆ setName()

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

Sets object name.

Parameters
nameobject name

Definition at line 45 of file TOPGeoBase.h.


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