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

Parametrization of signal PDF in a single pixel. More...

#include <SignalPDF.h>

Collaboration diagram for SignalPDF:

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. More...
 
void append (const PDFPeak &peak)
 Appends single PDF peak. More...
 
void append (const PDFExtra &extra)
 Appends extra information of single PDF peak. More...
 
void normalize (double a)
 Normalize PDF peaks by dividing nph with given constant. More...
 
double getSum () const
 Returns a sum of nph of all peaks.
 
int getPixelID () const
 Returns pixel ID. More...
 
const TOPNominalTTSgetTTS () const
 Returns TTS. More...
 
const std::vector< PDFPeak > & getPDFPeaks () const
 Returns PDF peaks. More...
 
const std::vector< PDFExtra > & getPDFExtraInfo () const
 Returns PDF extra info Note: available only if stored on demand. More...
 
bool isExtraInfoAvailable () const
 Checks if extra info is available. More...
 
double getPDFValue (double time, double timeErr, double sigt=0) const
 Returns PDF value at given time. More...
 
double getIntegral (double minTime, double maxTime) const
 Returns integral of PDF from minTime to maxTime. More...
 

Private Attributes

int m_pixelID = 0
 pixel ID
 
const TOPNominalTTSm_tts = 0
 nominal TTS
 
std::vector< PDFPeakm_peaks
 PDF peaks.
 
std::vector< PDFExtram_extras
 extra information (stored only on request)
 

Detailed Description

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.

Member Enumeration Documentation

◆ EPeakType

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.

32  {
33  c_Unknown = 0,
34  c_Direct = 1,
35  c_Reflected = 2
36  };
@ c_Direct
direct photon
Definition: SignalPDF.h:34
@ c_Reflected
reflected photon
Definition: SignalPDF.h:35

Constructor & Destructor Documentation

◆ SignalPDF()

SignalPDF ( int  pixelID,
const TOPNominalTTS tts 
)

Class constructor.

Parameters
pixelIDpixel ID
ttsTTS

Definition at line 21 of file SignalPDF.cc.

21  :
22  m_pixelID(pixelID), m_tts(&tts)
23  {}
const TOPNominalTTS * m_tts
nominal TTS
Definition: SignalPDF.h:155
int m_pixelID
pixel ID
Definition: SignalPDF.h:154

Member Function Documentation

◆ append() [1/2]

void append ( const PDFExtra extra)
inline

Appends extra information of single PDF peak.

Parameters
extraextra information

Definition at line 91 of file SignalPDF.h.

◆ append() [2/2]

void append ( const PDFPeak peak)
inline

Appends single PDF peak.

Parameters
peaksingle PDF peak

Definition at line 85 of file SignalPDF.h.

◆ getIntegral()

double getIntegral ( double  minTime,
double  maxTime 
) const

Returns integral of PDF from minTime to maxTime.

Parameters
minTimeintegral lower limit
maxTimeintegral upper limit
Returns
integral of PDF

Definition at line 41 of file SignalPDF.cc.

◆ getPDFExtraInfo()

const std::vector<PDFExtra>& getPDFExtraInfo ( ) const
inline

Returns PDF extra info Note: available only if stored on demand.

Returns
PDF extra info

Definition at line 127 of file SignalPDF.h.

◆ getPDFPeaks()

const std::vector<PDFPeak>& getPDFPeaks ( ) const
inline

Returns PDF peaks.

Returns
PDF peaks

Definition at line 120 of file SignalPDF.h.

◆ getPDFValue()

double getPDFValue ( double  time,
double  timeErr,
double  sigt = 0 
) const

Returns PDF value at given time.

Parameters
timephoton hit time
timeErruncertainty of hit time (sigma)
sigtadditional time smearing
Returns
PDF value

Definition at line 25 of file SignalPDF.cc.

◆ getPixelID()

int getPixelID ( ) const
inline

Returns pixel ID.

Returns
pixel ID

Definition at line 108 of file SignalPDF.h.

◆ getTTS()

const TOPNominalTTS* getTTS ( ) const
inline

Returns TTS.

Returns
TTS

Definition at line 114 of file SignalPDF.h.

◆ isExtraInfoAvailable()

bool isExtraInfoAvailable ( ) const
inline

Checks if extra info is available.

Returns
true if available

Definition at line 133 of file SignalPDF.h.

◆ normalize()

void normalize ( double  a)
inline

Normalize PDF peaks by dividing nph with given constant.

Parameters
anormalization constant

Definition at line 163 of file SignalPDF.h.


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