Belle II Software light-2406-ragdoll
dEdxPDFs Class Reference

Base class for holding the dE/dx PDFs. More...

#include <dEdxPDFs.h>

Inheritance diagram for dEdxPDFs:
Collaboration diagram for dEdxPDFs:

Public Member Functions

 dEdxPDFs ()=default
 Default constructor.
 
const TH2F * getPDF (const unsigned int hypothesis, const bool truncated) const
 Return the dE/dx PDF for the given particle hypothesis.
 
void setPDF (const TH2F &pdf, const unsigned int hypothesis, const bool truncated)
 Set the dE/dx PDF for the given particle hypothesis.
 

Private Member Functions

 ClassDef (dEdxPDFs, 1)
 Class version for the ROOT streamer.
 

Private Attributes

std::array< TH2F, Const::ChargedStable::c_SetSizem_dEdxPDFs
 Array of dE/dx PDFs for each particle hypothesis.
 
std::array< TH2F, Const::ChargedStable::c_SetSizem_dEdxPDFsTruncated
 Array of truncated dE/dx PDFs for each particle hypothesis.
 

Detailed Description

Base class for holding the dE/dx PDFs.

Definition at line 31 of file dEdxPDFs.h.

Member Function Documentation

◆ getPDF()

const TH2F * getPDF ( const unsigned int  hypothesis,
const bool  truncated 
) const
inline

Return the dE/dx PDF for the given particle hypothesis.

Parameters
hypothesisParticle hypothesis (as in Const::ChargedStable::c_SetSize)
truncatedIf true, return the truncated dE/dx PDF

Definition at line 45 of file dEdxPDFs.h.

46 {
47 return truncated ? &(m_dEdxPDFsTruncated.at(hypothesis)) : &(m_dEdxPDFs.at(hypothesis));
48 }
std::array< TH2F, Const::ChargedStable::c_SetSize > m_dEdxPDFs
Array of dE/dx PDFs for each particle hypothesis.
Definition: dEdxPDFs.h:67
std::array< TH2F, Const::ChargedStable::c_SetSize > m_dEdxPDFsTruncated
Array of truncated dE/dx PDFs for each particle hypothesis.
Definition: dEdxPDFs.h:70

◆ setPDF()

void setPDF ( const TH2F &  pdf,
const unsigned int  hypothesis,
const bool  truncated 
)
inline

Set the dE/dx PDF for the given particle hypothesis.

Parameters
pdfdE/dx PDF as a 2D histogram (TH2F)
hypothesisParticle hypothesis (as in Const::ChargedStable::c_SetSize)
truncatedIf true, set the truncated dE/dx PDF

Definition at line 56 of file dEdxPDFs.h.

57 {
58 if (truncated)
59 m_dEdxPDFsTruncated.at(hypothesis) = pdf;
60 else
61 m_dEdxPDFs.at(hypothesis) = pdf;
62 }

Member Data Documentation

◆ m_dEdxPDFs

std::array<TH2F, Const::ChargedStable::c_SetSize> m_dEdxPDFs
private

Array of dE/dx PDFs for each particle hypothesis.

Definition at line 67 of file dEdxPDFs.h.

◆ m_dEdxPDFsTruncated

std::array<TH2F, Const::ChargedStable::c_SetSize> m_dEdxPDFsTruncated
private

Array of truncated dE/dx PDFs for each particle hypothesis.

Definition at line 70 of file dEdxPDFs.h.


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