Belle II Software development
SVDdEdxPDFs Class Reference

Specialized class for holding the SVD dE/dx PDFs. More...

#include <SVDdEdxPDFs.h>

Inheritance diagram for SVDdEdxPDFs:
dEdxPDFs

Public Member Functions

 SVDdEdxPDFs ()=default
 Default constructor.
 
const TH2F * getSVDPDF (const unsigned int hypothesis, const bool truncated) const
 Return the SVD dE/dx PDF for the given particle hypothesis.
 
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 (SVDdEdxPDFs, 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

Specialized class for holding the SVD dE/dx PDFs.

Definition at line 26 of file SVDdEdxPDFs.h.

Member Function Documentation

◆ getPDF()

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

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

◆ getSVDPDF()

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

Return the SVD 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 40 of file SVDdEdxPDFs.h.

41 {
42 return getPDF(hypothesis, truncated);
43 }
const TH2F * getPDF(const unsigned int hypothesis, const bool truncated) const
Return the dE/dx PDF for the given particle hypothesis.
Definition: dEdxPDFs.h:45

◆ setPDF()

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

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
privateinherited

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
privateinherited

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: