Belle II Software development
TOPNominalTTS Class Reference

Nominal time transition spread of PMT. More...

#include <TOPNominalTTS.h>

Inheritance diagram for TOPNominalTTS:
TOPGeoBase

Classes

struct  Gauss
 Gaussian distribution parameters. More...
 

Public Member Functions

 TOPNominalTTS ()
 Default constructor.
 
 TOPNominalTTS (const std::string &name)
 Constructor with name.
 
void appendGaussian (double norm, double mean, double sigma)
 Append Gaussian.
 
void setPMTType (unsigned type)
 Set type of PMT (see TOPPmtObsoleteData::EType for the defined types)
 
double normalize ()
 Normalize the distribution (fractions)
 
const std::vector< Gauss > & getTTS () const
 Returns TTS.
 
unsigned getPMTType () const
 Returns PMT type (see TOPPmtObsoleteData::EType for the defined types)
 
double generateTTS () const
 Generate time according to TTS distribution.
 
bool isConsistent () const override
 Check for consistency of data members.
 
void print (const std::string &title="Nominal TTS distribution") 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 (TOPNominalTTS, 2)
 ClassDef.
 

Private Attributes

std::vector< Gaussm_tts
 TTS distribution composed of a sum of Gaussians.
 
bool m_normalized = false
 normalization flag
 
unsigned m_type = 0
 PMT type (see TOPPmtObsoleteData::EType)
 

Detailed Description

Nominal time transition spread of PMT.

Definition at line 23 of file TOPNominalTTS.h.

Constructor & Destructor Documentation

◆ TOPNominalTTS() [1/2]

TOPNominalTTS ( )
inline

Default constructor.

Definition at line 40 of file TOPNominalTTS.h.

41 {}

◆ TOPNominalTTS() [2/2]

TOPNominalTTS ( const std::string &  name)
inlineexplicit

Constructor with name.

Parameters
nameobject name

Definition at line 47 of file TOPNominalTTS.h.

47 : TOPGeoBase(name)
48 {}
TOPGeoBase()
Default constructor.
Definition: TOPGeoBase.h:31

Member Function Documentation

◆ 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

◆ getPMTType()

unsigned getPMTType ( ) const
inline

Returns PMT type (see TOPPmtObsoleteData::EType for the defined types)

Returns
PMT type

Definition at line 80 of file TOPNominalTTS.h.

80{return m_type;}
unsigned m_type
PMT type (see TOPPmtObsoleteData::EType)

◆ getTTS()

const std::vector< Gauss > & getTTS ( ) const
inline

Returns TTS.

Returns
TTS parametrization

Definition at line 74 of file TOPNominalTTS.h.

74{return m_tts;}
std::vector< Gauss > m_tts
TTS distribution composed of a sum of Gaussians.

◆ 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;}

◆ setPMTType()

void setPMTType ( unsigned  type)
inline

Set type of PMT (see TOPPmtObsoleteData::EType for the defined types)

Parameters
typePMT type

Definition at line 62 of file TOPNominalTTS.h.

62{m_type = type;}

Member Data Documentation

◆ m_name

std::string m_name
protectedinherited

geometry object name

Definition at line 89 of file TOPGeoBase.h.

◆ m_normalized

bool m_normalized = false
private

normalization flag

Definition at line 104 of file TOPNominalTTS.h.

◆ m_tts

std::vector<Gauss> m_tts
private

TTS distribution composed of a sum of Gaussians.

Definition at line 103 of file TOPNominalTTS.h.

◆ m_type

unsigned m_type = 0
private

PMT type (see TOPPmtObsoleteData::EType)

Definition at line 105 of file TOPNominalTTS.h.


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