11#include <top/dbobjects/TOPGeoBase.h>
98 void print(
const std::string& title =
"Nominal TTS distribution")
const override;
Base class for geometry parameters.
Nominal time transition spread of PMT.
ClassDefOverride(TOPNominalTTS, 2)
ClassDef.
unsigned getPMTType() const
Returns PMT type (see TOPPmtObsoleteData::EType for the defined types)
const std::vector< Gauss > & getTTS() const
Returns TTS.
void setPMTType(unsigned type)
Set type of PMT (see TOPPmtObsoleteData::EType for the defined types)
bool m_normalized
normalization flag
unsigned m_type
PMT type (see TOPPmtObsoleteData::EType)
TOPNominalTTS(const std::string &name)
Constructor with name.
TOPNominalTTS()
Default constructor.
std::vector< Gauss > m_tts
TTS distribution composed of a sum of Gaussians.
double normalize()
Normalize the distribution (fractions)
bool isConsistent() const override
Check for consistency of data members.
void appendGaussian(double norm, double mean, double sigma)
Append Gaussian.
void print(const std::string &title="Nominal TTS distribution") const override
Print the content of the class.
double generateTTS() const
Generate time according to TTS distribution.
Abstract base class for different kinds of events.
Gaussian distribution parameters.
float fraction
area normalization
float position
peak position [ns]
ClassDef(Gauss, 1)
ClassDef.
float sigma
peak width [ns]