12#include <framework/gearbox/Const.h>
56 const TH2F*
getPDF(
const unsigned int hypothesis,
const bool truncated)
const
66 const std::vector<const TH2F*>&
getPDFs(
bool truncated)
const;
85 void setPDF(
const TH2F& pdf,
const unsigned int hypothesis,
const bool truncated)
103 std::array<TH2F, Const::ChargedStable::c_SetSize>
m_dEdxPDFs;
Provides a type-safe way to pass members of the chargedStableSet set.
int getIndex() const
This particle's index in the associated set.
Base class for holding the dE/dx PDFs.
std::vector< const TH2F * > m_cachePDFs
cache for a vector of pointers to PDFs
void setPDF(const TH2F &pdf, const unsigned int hypothesis, const bool truncated)
Set the dE/dx PDF for the given particle hypothesis.
void setPDF(const TH2F &pdf, const Const::ChargedStable &chargedStable, bool truncated)
Set the dE/dx PDF for the given particle hypothesis.
ClassDef(dEdxPDFs, 1)
do not write out
const TH2F * getPDF(const unsigned int hypothesis, const bool truncated) const
Return the dE/dx PDF for the given particle hypothesis.
const TH2F * getPDF(const Const::ChargedStable &chargedStable, bool truncated) const
Return the dE/dx PDF for the given particle hypothesis.
std::array< TH2F, Const::ChargedStable::c_SetSize > m_dEdxPDFs
Array of dE/dx PDFs for each particle hypothesis.
std::array< TH2F, Const::ChargedStable::c_SetSize > m_dEdxPDFsTruncated
Array of truncated dE/dx PDFs for each particle hypothesis.
dEdxPDFs()=default
Default constructor.
std::vector< const TH2F * > m_cachePDFsTruncated
do not write out
const std::vector< const TH2F * > & getPDFs(bool truncated) const
Return all PDF's as a vector of histogram pointers.
bool checkPDFs(bool truncated) const
Check PDF histograms if they are defined in the same range and with the same binning.
Abstract base class for different kinds of events.