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

Parameterized TTS for each PMT pixel. More...

#include <TOPPmtTTSPar.h>

Inheritance diagram for TOPPmtTTSPar:
Collaboration diagram for TOPPmtTTSPar:

Classes

struct  Gaussian
 Gaussian distribution parameters. More...
 

Public Types

enum  { c_NumPmtPixels = 16 }
 number of PMT pixels
 

Public Member Functions

 TOPPmtTTSPar ()
 Default constructor.
 
 TOPPmtTTSPar (const std::string &serialNumber)
 Full constructor. More...
 
void appendGaussian (unsigned pmtPixel, const Gaussian &gaus)
 Append struct gauss. More...
 
void appendGaussian (unsigned pmtPixel, double fraction, double mean, double sigma)
 Append gaussian using its parameters (frac, mean, sigma) More...
 
int getNumOfPixels () const
 Returns number of PMT pixels. More...
 
const std::string & getSerialNumber () const
 Returns PMT serial number. More...
 
const std::vector< Gaussian > & getGaussians (unsigned pmtPixel) const
 Returns vector of gaussians. More...
 
double getRandomTime (unsigned pmtPixel) const
 Returns a random number, generated according to the distribution. More...
 
void normalizeFractions ()
 Normalizes the gaussian fractions to unity.
 

Private Member Functions

 ClassDef (TOPPmtTTSPar, 2)
 ClassDef.
 

Private Attributes

std::string m_serialNumber
 serial number, e.g. More...
 
std::vector< Gaussianm_gaussians [c_NumPmtPixels]
 TTS distribution composed of Gaussians.
 

Detailed Description

Parameterized TTS for each PMT pixel.

Definition at line 26 of file TOPPmtTTSPar.h.

Constructor & Destructor Documentation

◆ TOPPmtTTSPar()

TOPPmtTTSPar ( const std::string &  serialNumber)
inlineexplicit

Full constructor.

Parameters
serialNumberserial number

Definition at line 53 of file TOPPmtTTSPar.h.

53  :
54  m_serialNumber(serialNumber)
55  {}
std::string m_serialNumber
serial number, e.g.
Definition: TOPPmtTTSPar.h:166

Member Function Documentation

◆ appendGaussian() [1/2]

void appendGaussian ( unsigned  pmtPixel,
const Gaussian gaus 
)
inline

Append struct gauss.

Parameters
pmtPixelPMT pixel number (1-based)
gausgaussian to be appended

Definition at line 63 of file TOPPmtTTSPar.h.

◆ appendGaussian() [2/2]

void appendGaussian ( unsigned  pmtPixel,
double  fraction,
double  mean,
double  sigma 
)
inline

Append gaussian using its parameters (frac, mean, sigma)

Parameters
pmtPixelPMT pixel number (1-based)
fractionnormalization fraction of the gaussian
meanmean of the gaussian
sigmasigma of the gaussian

Definition at line 82 of file TOPPmtTTSPar.h.

◆ getGaussians()

const std::vector<Gaussian>& getGaussians ( unsigned  pmtPixel) const
inline

Returns vector of gaussians.

Parameters
pmtPixelPMT pixel number (1-based)
Returns
vector of gaussians

Definition at line 109 of file TOPPmtTTSPar.h.

◆ getNumOfPixels()

int getNumOfPixels ( ) const
inline

Returns number of PMT pixels.

Returns
number of pixels

Definition at line 95 of file TOPPmtTTSPar.h.

◆ getRandomTime()

double getRandomTime ( unsigned  pmtPixel) const
inline

Returns a random number, generated according to the distribution.

Parameters
pmtPixelPMT pixel number (1-based)
Returns
random time or 0 for invalid pixel

Definition at line 127 of file TOPPmtTTSPar.h.

◆ getSerialNumber()

const std::string& getSerialNumber ( ) const
inline

Returns PMT serial number.

Returns
serial number

Definition at line 101 of file TOPPmtTTSPar.h.

Member Data Documentation

◆ m_serialNumber

std::string m_serialNumber
private

serial number, e.g.

JTxxxx

Definition at line 166 of file TOPPmtTTSPar.h.


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