11#include <framework/datastore/RelationsObject.h>
12#include <framework/gearbox/Const.h>
113 const double* fractions = 0,
148 const double* fractions,
Class to collect log likelihoods from Clusters from ECL and KLM aimed for output to mdst includes fun...
Cluster()
Default constructor: log likelihoods and flags set to 0.
bool isAvailable(Const::ClusterDetectorSet set) const
Check whether cluster information from a given set of detectors is available.
Const::Cluster getMostLikely(const double *fractions=0, Const::ClusterDetectorSet set=Const::ClusterDetectorSet::set()) const
Return most likely particle among clusterSet; if prior fractions not given equal prior probabilities ...
float getLogL(const Const::Cluster &cluster, Const::ClusterDetectorSet set=Const::ClusterDetectorSet::set()) const
Return log likelihood for a given detector set and particle.
void probability(double probabilities[], const double *fractions, Const::ClusterDetectorSet detSet) const
Calculate likelihood probabilities.
float getDeltaLogL(const Const::Cluster &c1, const Const::Cluster &c2, Const::ClusterDetectorSet set=Const::ClusterDetectorSet::set()) const
Return log likelihood difference for a given detector set and clusters.
std::string getInfoHTML() const override
Return HTML Info of cluster Likelihoods.
float m_logl[Const::ClusterDetectors::c_size][Const::Cluster::c_SetSize]
log likelihoods
void printArray() const
Prints the content of a private array of log likelihoods.
ClassDefOverride(Cluster, 1)
Initial version.
void setLogLikelihood(Const::EDetector det, const Const::Cluster &cluster, float logl)
Set log likelihood for a given detector and particle.
Const::DetectorSet m_detectors
set of detectors with cluster information
double getProbability(const Const::Cluster &c1, const Const::Cluster &c2, Const::ClusterDetectorSet set=Const::ClusterDetectorSet::set()) const
Return combined likelihood probability for a cluster being c1 and not c2, assuming equal prior probab...
static const size_t c_size
Number of PID detectors, temporary workaround.
Provides a type-safe way to pass members of the clusterSet set.
static const unsigned int c_SetSize
Number of elements (for use in array bounds etc.)
The DetectorSet class for sets of detector IDs in the form of EDetector values.
bool contains(const DetectorSet &set) const
Check whether this set contains another set.
A class for sets of detector IDs whose content is limited to restricted set of valid detector IDs.
static DetectorSet set()
Accessor for the set of valid detector IDs.
EDetector
Enum for identifying the detector components (detector and subdetector).
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.