 |
Belle II Software
release-05-02-19
|
14 #include <klm/dataobjects/bklm/BKLMElementNumbers.h>
15 #include <klm/dataobjects/eklm/EKLMElementNumbers.h>
18 #include <framework/datastore/RelationsObject.h>
19 #include <framework/gearbox/Const.h>
321 m_PDFValue[Const::ChargedStable(pdg).getIndex()] = pdfValue;
392 void setLogL(
double logL,
int pdg)
394 m_LogL[Const::ChargedStable(pdg).getIndex()] = logL;
int getBarrelHitLayer() const
Get the outermost BKLM layer actually crossed by the track.
float getExtEKLMEfficiencyValue(int layer) const
Get the efficiency of a given EKLM layer.
double getLogL_e() const
Get the log-likelihood for the electron hypothesis.
int getCharge() const
Get the charge of the particle hypothesis used during the extrapolation.
static const unsigned int c_SetSize
Number of elements (for use in array bounds etc.)
double getChiSquared() const
Get the chi-squared of the extrapolation.
void setElectronPDFValue(double pdfValue)
Set the normalized PDF for the electron hypothesis.
float m_LogL[Const::ChargedStable::c_SetSize]
Array of log-likelihoods.
float m_ChiSquared
Chi-squared of the extrapolation.
unsigned int getExtLayerPattern() const
Get the pattern of the layers crossed in the extrapolation.
unsigned int getOutcome() const
Get the outcome of this extrapolation.
double getDeuteronPDFValue() const
Get the normalized PDF for the deuteron hypothesis.
void setExtLayer(int layer)
Set the outermost EKLM layer crossed in the extrapolation.
unsigned int getHitLayerPattern() const
Get the pattern of the layers actually crossed by the track.
static const ChargedStable electron
electron particle
KLMMuidLikelihood()
Constructor.
double getLogL_p() const
Get the log-likelihood for the proton hypothesis.
unsigned int getTotalBarrelHits() const
Get the total number of crossed BKLM layers.
void setBarrelExtLayer(int layer)
Set the outermost BKLM layer crossed in the extrapolation.
int getExtLayer() const
Get the outermost KLM layer crossed in the extrapolation.
double getMuonPDFValue() const
Get the normalized PDF for the muon hypothesis.
bool m_IsForward
Flag to determine if this extrapolation is in forward or backward B/EKLM.
~KLMMuidLikelihood()
Destructor.
void setHitLayer(int layer)
Set the outermost KLM layer actually crossed by the track.
int getPDGCode() const
Get the PDG code of the particle hypothesis used during the extrapolation.
int m_EndcapExtLayer
Outermost EKLM layer crossed in the extrapolation.
void setKaonPDFValue(double pdfValue)
Set the normalized PDF for the kaon hypothesis.
int getHitLayer() const
Get the outermost KLM layer actually crossed by the track.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
void setLogL(double logL, int pdg)
Set the log-likelihood.
bool getIsForward() const
Return if this extrapolation is in forward or backward B/EKLM.
void setHitLayerPattern(unsigned int pattern)
Set the pattern of the layers actually crossed by the track.
double getPDFValue(int pdg) const
Get the normalized PDF.
unsigned int m_HitLayerPattern
Pattern of the layers actually crossed by the track (bits 0..14 = BKLM layers 1..15,...
void setEndcapExtLayer(int layer)
Set the outermost EKLM layer crossed in the extrapolation.
void setLogL_d(double logL)
Set the log-likelihood for the deuteron hypothesis.
int getDegreesOfFreedom() const
Get the number of degrees of freedom (= 2 times the number of KLM hits) for the chi-squared computati...
int getEndcapHitLayer() const
Get the outermost EKLM layer actually crossed by the track.
float m_PDFValue[Const::ChargedStable::c_SetSize]
Array of normalized PDFs.
void setDegreesOfFreedom(int dof)
Set the number of degrees of freedom (= 2 times the number of KLM hits) for the chi-square computatio...
int getBarrelExtLayer() const
Get the outermost BKLM layer crossed in the extrapolation.
int m_HitLayer
Outermost KLM layer actually crossed by the track.
void setOutcome(unsigned int outcome)
Set the outcome of this extrapolation.
void setIsForward(bool isForward)
Set if this extrapolation is in forward or backward B/EKLM.
unsigned int m_ExtLayerPattern
Pattern of the layers crossed in the extrapolation (bits 0..14 = BKLM layers 1..15,...
void setJunkPDFValue(bool flag)
Set the junk flag (1 if junk, 0 if not).
void setLogL_e(double logL)
Set the log-likelihood for the electron hypothesis.
unsigned int m_Outcome
Outcome of this extrapolation.
static constexpr int getMaximalLayerNumber()
Get maximal layer number.
void setExtEKLMEfficiencyValue(int layer, float efficiency)
Set the efficiency of a given EKLM layer.
float m_ExtEKLMEfficiencyValue[EKLMElementNumbers::getMaximalLayerNumber()]
Array of EKLM layer efficiencies.
void setExtLayerPattern(unsigned int pattern)
Set the pattern of the layers crossed in the extrapolation.
static const ChargedStable kaon
charged kaon particle
int m_BarrelExtLayer
Outermost BKLM layer crossed in the extrapolation.
int m_BarrelHitLayer
Outermost BKLM layer actually crossed by the track.
double getLogL_mu() const
Get the log-likelihood for the muon hypothesis.
double getLogL(int pdg) const
Get the log-likelihood.
double getKaonPDFValue() const
Get the normalized PDF for the kaon hypothesis.
void setBarrelHitLayer(int layer)
Set the outermost BKLM layer actually crossed by the track.
static const ChargedStable pion
charged pion particle
int m_EndcapHitLayer
Outermost EKLM layer actually crossed by the track.
double getProtonPDFValue() const
Get the normalized PDF for the proton hypothesis.
static constexpr int getMaximalLayerNumber()
Get maximal layer number (1-based).
void setLogL_K(double logL)
Set the log-likelihood for the kaon hypothesis.
Abstract base class for different kinds of events.
static const ChargedStable deuteron
deuteron particle
void setLogL_pi(double logL)
Set the log-likelihood for the pion hypothesis.
double getLogL_K() const
Get the log-likelihood for the kaon hypothesis.
void setPionPDFValue(double pdfValue)
Set the normalized PDF for the pion hypothesis.
void setExtBKLMEfficiencyValue(int layer, float efficiency)
Set the efficiency of a given BKLM layer.
double getLogL_d() const
Get the log-likelihood for the deuteron hypothesis.
void setMuonPDFValue(double pdfValue)
Set the normalized PDF for the muon hypothesis.
void setEndcapHitLayer(int layer)
Set the outermost EKLM layer actually crossed by the track.
bool getJunkPDFValue() const
Get the junk flag (1 if junk, 0 if not).
void setChiSquared(double chiSquared)
Set the chi-squared of the extrapolation.
bool m_JunkPDFValue
Junk flag (1 if junk, 0 if not).
static const ChargedStable proton
proton particle
double getPionPDFValue() const
Get the normalized PDF for the pion hypothesis.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
void setLogL_p(double logL)
Set the log-likelihood for the proton hypothesis.
Provides a type-safe way to pass members of the chargedStableSet set.
void setProtonPDFValue(double pdfValue)
Set the normalized PDF for the proton hypothesis.
static const ChargedStable muon
muon particle
Class to store the likelihoods from KLM with additional informations related to the extrapolation.
void setDeuteronPDFValue(double pdfValue)
Set the normalized PDF for the deuteron hypothesis.
int getEndcapExtLayer() const
Get the outermost EKLM layer crossed in the extrapolation.
float getExtBKLMEfficiencyValue(int layer) const
Get the efficiency of a given BKLM layer.
double getElectronPDFValue() const
Get the normalized PDF for the electron hypothesis.
void setPDFValue(double pdfValue, int pdg)
Set the normalized PDF.
int m_ExtLayer
Outermost KLM layer crossed in the extrapolation.
int getIndex() const
This particle's index in the associated set.
unsigned int getTotalEndcapHits() const
Get the total number of crossed EKLM layers.
int m_DegreesOfFreedom
Number of degrees of freedom (= 2 times the number of KLM hits) for the chi-squared computation.
void setLogL_mu(double logL)
Set the log-likelihood for the muon hypothesis.
double getLogL_pi() const
Get the log-likelihood for the pion hypothesis.
int m_PDGCode
PDG code of the particle hypothesis used during the extrapolation.
float m_ExtBKLMEfficiencyValue[BKLMElementNumbers::getMaximalLayerNumber()]
Array of BKLM layer efficiencies.
void setPDGCode(int pdg)
Set the PDG code of the particle hypothesis used during the extrapolation.