![]() |
Project
|
cluster class for MC particle IDs and their respective energy fraction More...
#include <ClusterLabel.h>
Classes | |
struct | labelWithE |
Wrapper structure to make cluster label sortable in energy fraction. More... | |
Public Member Functions | |
void | clear () |
Clear the member variables. | |
void | addValue (int label, float energyFraction) |
Add label and energy fraction to the. | |
void | normalize (float factor) |
Normalize the energy fraction. | |
std::vector< int32_t > | getLabels () |
Getter for vector of labels. | |
std::vector< float > | getEnergyFractions () |
Getter for vector of energy fractions. | |
void | orderLabels () |
Sort the labels and energy fraction in descending order (largest energy fraction to smallest) | |
Protected Attributes | |
std::vector< labelWithE > | mClusterLabels |
List of MC particles that generated the cluster, paired with energy fraction. | |
cluster class for MC particle IDs and their respective energy fraction
Definition at line 33 of file ClusterLabel.h.
Add label and energy fraction to the.
label | MC label |
energyFraction | Energy fraction |
Definition at line 25 of file ClusterLabel.cxx.
void ClusterLabel::clear | ( | ) |
Clear the member variables.
Definition at line 19 of file ClusterLabel.cxx.
std::vector< float > ClusterLabel::getEnergyFractions | ( | ) |
Getter for vector of energy fractions.
Definition at line 59 of file ClusterLabel.cxx.
std::vector< int32_t > ClusterLabel::getLabels | ( | ) |
Getter for vector of labels.
Definition at line 48 of file ClusterLabel.cxx.
void ClusterLabel::normalize | ( | float | factor | ) |
Normalize the energy fraction.
factor | normalization factor |
Definition at line 40 of file ClusterLabel.cxx.
void ClusterLabel::orderLabels | ( | ) |
Sort the labels and energy fraction in descending order (largest energy fraction to smallest)
Definition at line 70 of file ClusterLabel.cxx.
|
protected |
List of MC particles that generated the cluster, paired with energy fraction.
Definition at line 90 of file ClusterLabel.h.