12#ifndef ALICEO2_EMCAL_CLUSTERLABEL_H_
13#define ALICEO2_EMCAL_CLUSTERLABEL_H_
15#include <fairlogger/Logger.h>
cluster class for MC particle IDs and their respective energy fraction
void orderLabels()
Sort the labels and energy fraction in descending order (largest energy fraction to smallest)
void clear()
Clear the member variables.
void normalize(float factor)
Normalize the energy fraction.
void addValue(int label, float energyFraction)
Add label and energy fraction to the.
std::vector< labelWithE > mClusterLabels
List of MC particles that generated the cluster, paired with energy fraction.
std::vector< float > getEnergyFractions()
Getter for vector of energy fractions.
std::vector< int32_t > getLabels()
Getter for vector of labels.
GLuint GLsizei const GLchar * label
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Wrapper structure to make cluster label sortable in energy fraction.
bool operator>=(labelWithE const &rhs) const
Comparison lower operator comparing cells based on energy.
float energyFraction
Energy Fraction.
labelWithE(int l, float e)
Constructor.