11#include <top/dbobjects/TOPNominalTTS.h>
167 double getPDFValue(
double time,
double timeErr,
double sigt = 0)
const;
175 double getIntegral(
double minTime,
double maxTime)
const;
195 for (
auto& peak :
m_peaks) peak.nph /= a;
208 if (minTime <= m_minT0 and maxTime >=
m_maxT0)
return m_sum;
209 if (maxTime < m_minT0 or minTime >
m_maxT0)
return 0;
212 for (
const auto& peak :
m_peaks) {
213 if (peak.t0 < minTime or peak.t0 > maxTime)
continue;
Nominal time transition spread of PMT.
std::vector< PDFExtra > m_extras
extra information (stored only on request)
void normalize(double a)
Normalize PDF peaks by dividing nph with given constant.
double m_maxAbsPos
the largest of the TTS component offsets in absolute value [ns]
std::vector< PDFPeak > m_peaks
PDF peaks.
const TOPNominalTTS * m_tts
nominal TTS
double m_maxSigmaSq
the largest of the TTS component widths squared [ns^2]
double getMaxT0() const
Returns the position of the latest peak (meaningless if there are no peaks)
double getPDFValue(double time, double timeErr, double sigt=0) const
Returns PDF value at given time.
double getMinT0() const
Returns the position of the earliest peak (meaningless if there are no peaks)
double m_maxT0
position of the latest peak [ns]
int getPixelID() const
Returns pixel ID.
bool isExtraInfoAvailable() const
Checks if extra info is available.
const std::vector< PDFExtra > & getPDFExtraInfo() const
Returns PDF extra info Note: available only if stored on demand.
void append(const PDFPeak &peak)
Appends single PDF peak.
const TOPNominalTTS * getTTS() const
Returns TTS.
double getSum() const
Returns a sum of nph of all peaks.
const std::vector< PDFPeak > & getPDFPeaks() const
Returns PDF peaks.
double m_minT0
position of the earliest peak [ns]
double getIntegral(double minTime, double maxTime) const
Returns integral of PDF from minTime to maxTime.
SignalPDF(int pixelID, const TOPNominalTTS &tts)
Class constructor.
EPeakType
Enumerator for single PDF peak types.
@ c_Reflected
reflected photon
double m_sum
sum of nph of all peaks
void append(const PDFExtra &extra)
Appends extra information of single PDF peak.
Abstract base class for different kinds of events.
double t0
peak position [ns]
double fic
Cerenkov azimuthal angle.
double wid
peak width squared [ns^2]
double nph
normalized number of photons in a peak