8#ifndef EVENT_CLUSTERALGORESULT_H_
9#define EVENT_CLUSTERALGORESULT_H_
58 double getAlgoVar(
int element)
const {
return variables_[element]; }
66 return (variables_.GetSize() < 1) ? (0) : (variables_[0]);
75 return (variables_.GetSize() < 2) ? (0) : (variables_[1]);
84 return (variables_.GetSize() < 3) ? (0) : (variables_[2]);
93 return (variables_.GetSize() < 4) ? (0) : (variables_[3]);
102 return (variables_.GetSize() < 5) ? (0) : (variables_[4]);
110 return (nCluster < weights_.GetSize()) ? (0) : (weights_[nCluster]);
118 void set(
const TString& name,
int nvar);
126 void set(
const TString& name,
int nvar,
int nweights);
Contains details about the clustering algorithm.
const TString & getName() const
Return the name of the cluster algo.
TString name_
Name of the clustering algorithm.
double getWeight(int nCluster) const
Return the weight reached when cluster count reached n.
void setAlgoVar(int element, double value)
Set an algorithm variable.
virtual ~ClusterAlgoResult()
Class destructor.
double getAlgoVar1() const
Return algorithm variable 1 (see algorithm code for details).
double getAlgoVar3() const
Return algorithm variable 3 (see algorithm code for details).
ClusterAlgoResult()
Class constructor.
void set(const TString &name, int nvar)
Set name and number of variables of cluster algo.
double getAlgoVar4() const
Return algorithm variable 4 (see algorithm code for details).
double getAlgoVar2() const
Return algorithm variable 2 (see algorithm code for details).
void set(const TString &name, int nvar, int nweights)
Set name, number of variables and weights of cluster algo.
void setWeight(int nClusters, double weight)
Set a weight when number of clusters reached.
void Clear()
Reset the ClusterAlgoResult object.
double getAlgoVar0() const
Return algorithm variable 0 (see algorithm code for details).
void Print() const
Print a description of this object.
double getAlgoVar(int element) const
Return algorithm variable i (see algorithm code for details).