|
LDMX Software
|
Contains details about the clustering algorithm. More...
#include <ClusterAlgoResult.h>
Public Member Functions | |
| ClusterAlgoResult ()=default | |
| Class constructor. | |
| virtual | ~ClusterAlgoResult () |
| Class destructor. | |
| void | clear () |
| Reset the ClusterAlgoResult object. | |
| const TString & | getName () const |
| Return the name of the cluster algo. | |
| double | getAlgoVar (int element) const |
| Return algorithm variable i (see algorithm code for details). | |
| double | getAlgoVar0 () const |
| Return algorithm variable 0 (see algorithm code for details). | |
| double | getAlgoVar1 () const |
| Return algorithm variable 1 (see algorithm code for details). | |
| double | getAlgoVar2 () const |
| Return algorithm variable 2 (see algorithm code for details). | |
| double | getAlgoVar3 () const |
| Return algorithm variable 3 (see algorithm code for details). | |
| double | getAlgoVar4 () const |
| Return algorithm variable 4 (see algorithm code for details). | |
| double | getWeight (int nCluster) const |
| Return the weight reached when cluster count reached n. | |
| void | set (const TString &name, int nvar) |
| Set name and number of variables of cluster algo. | |
| void | set (const TString &name, int nvar, int nweights) |
| Set name, number of variables and weights of cluster algo. | |
| void | setAlgoVar (int element, double value) |
| Set an algorithm variable. | |
| void | setWeight (int nClusters, double weight) |
| Set a weight when number of clusters reached. | |
Private Member Functions | |
| ClassDef (ClusterAlgoResult, 2) | |
Private Attributes | |
| TString | name_ {} |
| Name of the clustering algorithm. | |
| TArrayD | variables_ |
| TArrayD | weights_ |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const ClusterAlgoResult &d) |
| Print a description of this object. | |
Contains details about the clustering algorithm.
Definition at line 25 of file ClusterAlgoResult.h.
|
virtual |
Class destructor.
Definition at line 7 of file ClusterAlgoResult.cxx.
References clear().
| void ldmx::ClusterAlgoResult::clear | ( | ) |
Reset the ClusterAlgoResult object.
Definition at line 17 of file ClusterAlgoResult.cxx.
References name_.
Referenced by ~ClusterAlgoResult().
|
inline |
Return algorithm variable i (see algorithm code for details).
| element | The index of the variable. |
Definition at line 58 of file ClusterAlgoResult.h.
|
inline |
Return algorithm variable 0 (see algorithm code for details).
Definition at line 65 of file ClusterAlgoResult.h.
|
inline |
Return algorithm variable 1 (see algorithm code for details).
Definition at line 74 of file ClusterAlgoResult.h.
|
inline |
Return algorithm variable 2 (see algorithm code for details).
Definition at line 83 of file ClusterAlgoResult.h.
|
inline |
Return algorithm variable 3 (see algorithm code for details).
Definition at line 92 of file ClusterAlgoResult.h.
|
inline |
Return algorithm variable 4 (see algorithm code for details).
Definition at line 101 of file ClusterAlgoResult.h.
|
inline |
Return the name of the cluster algo.
Definition at line 51 of file ClusterAlgoResult.h.
References name_.
|
inline |
Return the weight reached when cluster count reached n.
Definition at line 109 of file ClusterAlgoResult.h.
| void ldmx::ClusterAlgoResult::set | ( | const TString & | name, |
| int | nvar ) |
Set name and number of variables of cluster algo.
| name | The name of the cluster algo. |
| nvar | The number of algorithm variables. |
Definition at line 25 of file ClusterAlgoResult.cxx.
References name_.
Referenced by ecal::EcalClusterProducer::produce().
| void ldmx::ClusterAlgoResult::set | ( | const TString & | name, |
| int | nvar, | ||
| int | nweights ) |
Set name, number of variables and weights of cluster algo.
| name | The name of the cluster algo. |
| nvar | The number of algorithm variables. |
| nweights | The number of transition weights. |
Definition at line 33 of file ClusterAlgoResult.cxx.
References name_.
| void ldmx::ClusterAlgoResult::setAlgoVar | ( | int | element, |
| double | value ) |
Set an algorithm variable.
| element | The index of the variable. |
| value | The variable's new value. |
Definition at line 45 of file ClusterAlgoResult.cxx.
Referenced by ecal::EcalClusterProducer::produce().
| void ldmx::ClusterAlgoResult::setWeight | ( | int | nClusters, |
| double | weight ) |
Set a weight when number of clusters reached.
| nClusters | The number of clusters reached. |
| weight | The weight when number of clusters reached. |
Definition at line 51 of file ClusterAlgoResult.cxx.
Referenced by ecal::EcalClusterProducer::produce().
|
friend |
Print a description of this object.
Definition at line 9 of file ClusterAlgoResult.cxx.
|
private |
|
private |
Definition at line 147 of file ClusterAlgoResult.h.
|
private |
Definition at line 150 of file ClusterAlgoResult.h.