 |
Belle II Software
release-05-02-19
|
14 #include <framework/datastore/RelationsObject.h>
15 #include <framework/gearbox/Const.h>
102 const Const::Cluster& c2,
116 const double* fractions = 0,
151 const double* fractions,
RestrictedDetectorSet< ClusterDetectors > ClusterDetectorSet
Typedef for set of VXD detectors.
static DetectorSet set()
Accessor for the set of valid detector IDs.
void printArray() const
Prints the content of a private array of log likelihoods.
void probability(double probabilities[], const double *fractions, Const::ClusterDetectorSet detSet) const
Calculate likelihood probabilities.
float m_logl[Const::ClusterDetectors::c_size][Const::Cluster::c_SetSize]
log likelihoods
Cluster()
Default constructor: log likelihoods and flags set to 0.
ClassDef(Cluster, 1)
Initial version.
std::string getInfoHTML() const
Return HTML Info of cluster Likelihoods.
Const::DetectorSet m_detectors
set of detectors with cluster information
float getLogL(const Const::Cluster &cluster, Const::ClusterDetectorSet set=Const::ClusterDetectorSet::set()) const
Return log likelihood for a given detector set and particle.
EDetector
Enum for identifying the detector components (detector and subdetector).
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 ...
bool isAvailable(Const::ClusterDetectorSet set) const
Check whether cluster information from a given set of detectors is available.
void setLogLikelihood(Const::EDetector det, const Const::Cluster &cluster, float logl)
Set log likelihood for a given detector and particle.
static const unsigned int c_SetSize
Number of elements (for use in array bounds etc.)
A class for sets of detector IDs whose content is limited to restricted set of valid detector IDs.
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...
Class to collect log likelihoods from Clusters from ECL and KLM aimed for output to mdst includes fun...
Provides a type-safe way to pass members of the clusterSet set.
Abstract base class for different kinds of events.
static const size_t c_size
Number of PID detectors, temporary workaround.
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.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
bool contains(const DetectorSet &set) const
Check whether this set contains another set.