Project
Loading...
Searching...
No Matches
o2::emcal::ClusterLabel Class Reference

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< labelWithEmClusterLabels
 List of MC particles that generated the cluster, paired with energy fraction.
 

Detailed Description

cluster class for MC particle IDs and their respective energy fraction

Author
Marvin Hemmer marvi.nosp@m.n.he.nosp@m.mmer@.nosp@m.cern.nosp@m..ch, Goethe university Frankfurt
Since
December 13, 2023

Definition at line 33 of file ClusterLabel.h.

Member Function Documentation

◆ addValue()

void ClusterLabel::addValue ( int  label,
float  energyFraction 
)

Add label and energy fraction to the.

Parameters
labelMC label
energyFractionEnergy fraction

Definition at line 25 of file ClusterLabel.cxx.

◆ clear()

void ClusterLabel::clear ( )

Clear the member variables.

Definition at line 19 of file ClusterLabel.cxx.

◆ getEnergyFractions()

std::vector< float > ClusterLabel::getEnergyFractions ( )

Getter for vector of energy fractions.

Definition at line 59 of file ClusterLabel.cxx.

◆ getLabels()

std::vector< int32_t > ClusterLabel::getLabels ( )

Getter for vector of labels.

Definition at line 48 of file ClusterLabel.cxx.

◆ normalize()

void ClusterLabel::normalize ( float  factor)

Normalize the energy fraction.

Parameters
factornormalization factor

Definition at line 40 of file ClusterLabel.cxx.

◆ orderLabels()

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.

Member Data Documentation

◆ mClusterLabels

std::vector<labelWithE> o2::emcal::ClusterLabel::mClusterLabels
protected

List of MC particles that generated the cluster, paired with energy fraction.

Definition at line 90 of file ClusterLabel.h.


The documentation for this class was generated from the following files: