11 #include <framework/datastore/RelationsObject.h>
12 #include <framework/gearbox/Const.h>
52 auto i = part.getIndex();
78 return m_logL[part.getIndex()];
Provides a type-safe way to pass members of the chargedStableSet set.
static const unsigned int c_SetSize
Number of elements (for use in array bounds etc.)
int getIndex() const
This particle's index in the associated set.
static const ChargedStable muon
muon particle
static const ChargedStable pion
charged pion particle
static const ChargedStable proton
proton particle
static const ChargedStable kaon
charged kaon particle
static const ChargedStable electron
electron particle
Defines interface for accessing relations of objects in StoreArray.
Class to store TOP log likelihoods (output of TOPReconstructor).
float m_logL[Const::ChargedStable::c_SetSize]
log likelihoods
double getLogL_pi() const
Return pion log likelihood.
double getNphot_mu() const
Return number of expected photons for muon.
float getEstPhot(const Const::ChargedStable &part) const
Return estimated number of photons for a given particle.
double getNphot_e() const
Return number of expected photons for electron.
double getNphot_pi() const
Return number of expected photons for pion.
void setFlag(int flag)
Sets reconstruction flag.
ClassDef(TOPLikelihood, 2)
ClassDef.
double getNphot_p() const
Return number of expected photons for proton.
double getLogL_e() const
Return electron log likelihood.
double getNphot_K() const
Return number of expected photons for kaon.
void set(const Const::ChargedStable &part, int numPhot, double logL, double estPhot, double estBkg)
Sets other data members for a given particle hypothesis.
double getLogL_p() const
Return proton log likelihood.
float getEstBkg() const
Return estimated number of background photons.
int getFlag() const
Return reconstruction flag.
float m_estBkg
estimated background
int m_numPhot
number of photons
double getLogL_mu() const
Return muon log likelihood.
int m_flag
reconstruction flag
float getLogL(const Const::ChargedStable &part) const
Return log likelihood for a given particle.
TOPLikelihood()
default constructor
double getLogL_K() const
Return kaon log likelihood.
int getNphot() const
Return number of detected photons.
float m_estPhot[Const::ChargedStable::c_SetSize]
estimated number of photons
Abstract base class for different kinds of events.