Belle II Software development
|
Parametrization of signal PDF in a single pixel. More...
#include <SignalPDF.h>
Classes | |
struct | PDFExtra |
Extra information about single PDF peak. More... | |
struct | PDFPeak |
Single PDF peak. More... | |
Public Types | |
enum | EPeakType { c_Unknown = 0 , c_Direct = 1 , c_Reflected = 2 } |
Enumerator for single PDF peak types. More... | |
Public Member Functions | |
SignalPDF (int pixelID, const TOPNominalTTS &tts) | |
Class constructor. | |
void | append (const PDFPeak &peak) |
Appends single PDF peak. | |
void | append (const PDFExtra &extra) |
Appends extra information of single PDF peak. | |
void | normalize (double a) |
Normalize PDF peaks by dividing nph with given constant. | |
double | getSum () const |
Returns a sum of nph of all peaks. | |
int | getPixelID () const |
Returns pixel ID. | |
const TOPNominalTTS * | getTTS () const |
Returns TTS. | |
const std::vector< PDFPeak > & | getPDFPeaks () const |
Returns PDF peaks. | |
const std::vector< PDFExtra > & | getPDFExtraInfo () const |
Returns PDF extra info Note: available only if stored on demand. | |
bool | isExtraInfoAvailable () const |
Checks if extra info is available. | |
double | getPDFValue (double time, double timeErr, double sigt=0) const |
Returns PDF value at given time. | |
double | getIntegral (double minTime, double maxTime) const |
Returns integral of PDF from minTime to maxTime. | |
Private Attributes | |
int | m_pixelID = 0 |
pixel ID | |
const TOPNominalTTS * | m_tts = 0 |
nominal TTS | |
std::vector< PDFPeak > | m_peaks |
PDF peaks. | |
std::vector< PDFExtra > | m_extras |
extra information (stored only on request) | |
Parametrization of signal PDF in a single pixel.
PDF is parametrized as a sum of Gaussian distributions.
Definition at line 25 of file SignalPDF.h.
enum EPeakType |
Enumerator for single PDF peak types.
Enumerator | |
---|---|
c_Unknown | unknown |
c_Direct | direct photon |
c_Reflected | reflected photon |
Definition at line 32 of file SignalPDF.h.
SignalPDF | ( | int | pixelID, |
const TOPNominalTTS & | tts | ||
) |
Class constructor.
pixelID | pixel ID |
tts | TTS |
Definition at line 21 of file SignalPDF.cc.
|
inline |
Appends extra information of single PDF peak.
extra | extra information |
Definition at line 91 of file SignalPDF.h.
|
inline |
Appends single PDF peak.
peak | single PDF peak |
Definition at line 85 of file SignalPDF.h.
double getIntegral | ( | double | minTime, |
double | maxTime | ||
) | const |
Returns integral of PDF from minTime to maxTime.
minTime | integral lower limit |
maxTime | integral upper limit |
Definition at line 41 of file SignalPDF.cc.
|
inline |
Returns PDF extra info Note: available only if stored on demand.
Definition at line 127 of file SignalPDF.h.
|
inline |
double getPDFValue | ( | double | time, |
double | timeErr, | ||
double | sigt = 0 |
||
) | const |
Returns PDF value at given time.
time | photon hit time |
timeErr | uncertainty of hit time (sigma) |
sigt | additional time smearing |
Definition at line 25 of file SignalPDF.cc.
|
inline |
|
inline |
Returns a sum of nph of all peaks.
Definition at line 168 of file SignalPDF.h.
|
inline |
|
inline |
Checks if extra info is available.
Definition at line 133 of file SignalPDF.h.
|
inline |
Normalize PDF peaks by dividing nph with given constant.
a | normalization constant |
Definition at line 163 of file SignalPDF.h.
|
private |
extra information (stored only on request)
Definition at line 157 of file SignalPDF.h.
|
private |
PDF peaks.
Definition at line 156 of file SignalPDF.h.
|
private |
pixel ID
Definition at line 154 of file SignalPDF.h.
|
private |
nominal TTS
Definition at line 155 of file SignalPDF.h.