11#include <framework/datastore/RelationsObject.h>
12#include <framework/gearbox/Const.h>
56 return m_logl[type.getIndex()];
62 return exp((
double)
m_logl[type.getIndex()]);
68 m_logl[type.getIndex()] = logl;
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.)
Container for likelihoods with ECL PID (ECLChargedPIDModule)
float trkDepth() const
Track Depth.
float lat() const
Cluster LAT.
float m_shDepth
Cluster Depth.
ECLPidLikelihood()
default constructor
float m_e9e25
Ratio of energy in 3x3 matrix over energy in 5x5 matrix (should now be called E9oE21) for cluster.
double getLikelihood(const Const::ChargedStable &type) const
returns exp(getLogLikelihood(type)) with sufficient precision.
void setVariables(float energy, float eop, float e9e25, float lat, float dist, float trkDepth, float shDepth, int ncrystals, int nclusters)
Set cluster features upon which the likelihood might depend.
int nCrystals() const
Number of crystals per candidate.
float m_energy
Cluster Energy.
ECLPidLikelihood(const float *logl, float energy=0, float eop=0, float e9e25=0, float lat=0, float dist=0, float trkDepth=0, float shDepth=0, int ncrystals=0, int nclusters=0)
actually const float (&logl)[Const::ChargedStable::c_SetSize], but CINT complains.
ClassDef(ECLPidLikelihood, 3)
Build ROOT dictionary.
int nClusters() const
Number of clusters per candidate.
float m_logl[Const::ChargedStable::c_SetSize]
log likelihood for each particle, not including momentum prior
void setLogLikelihood(const Const::ChargedStable &type, float logl)
corresponding setter for m_logl.
int m_nCrystals
Number of crystals per candidate.
float dist() const
Cluster-Shower distance.
float m_eop
E/p ratio for cluster.
float m_trkDepth
Track Depth.
float shDepth() const
Cluster Depth.
float getLogLikelihood(const Const::ChargedStable &type) const
returns log-likelihood value for a particle hypothesis.
float m_dist
Cluster-Shower distance.
double energy() const
Cluster energy.
double e9e25() const
Ratio of energies of the (central) 3x3 crystal matrix and outermost 5x5 matrix.
double eop() const
E/p ratio for cluster.
int m_nClusters
Number of clusters per candidate.
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.