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

Nominal time transition spread of PMT. More...

#include <TOPNominalTTS.h>

Inheritance diagram for TOPNominalTTS:
Collaboration diagram for TOPNominalTTS:

Classes

struct  Gauss
 Gaussian distribution parameters. More...
 

Public Member Functions

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

TOPNominalTTS ( const std::string &  name)
inlineexplicit

Constructor with name.

Parameters
nameobject name

Definition at line 45 of file TOPNominalTTS.h.

45  : TOPGeoBase(name)
46  {}
TOPGeoBase()
Default constructor.
Definition: TOPGeoBase.h:31

Member Function Documentation

◆ getName()

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

Returns object name.

Returns
object name

Definition at line 51 of file TOPGeoBase.h.

◆ getPMTType()

unsigned getPMTType ( ) const
inline

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

Returns
PMT type

Definition at line 78 of file TOPNominalTTS.h.

◆ getTTS()

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

Returns TTS.

Returns
TTS parametrization

Definition at line 72 of file TOPNominalTTS.h.

◆ setName()

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

Sets object name.

Parameters
nameobject name

Definition at line 45 of file TOPGeoBase.h.

◆ setPMTType()

void setPMTType ( unsigned  type)
inline

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

Parameters
typePMT type

Definition at line 60 of file TOPNominalTTS.h.


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