Project
Loading...
Searching...
No Matches
o2::emcal::ClusterLabel::labelWithE Struct Reference

Wrapper structure to make cluster label sortable in energy fraction. More...

#include <ClusterLabel.h>

Public Member Functions

 labelWithE ()
 Constructor.
 
 labelWithE (int l, float e)
 Constructor.
 
bool operator>= (labelWithE const &rhs) const
 Comparison lower operator comparing cells based on energy.
 

Public Attributes

float energyFraction
 Energy Fraction.
 
int label
 MC label.
 

Detailed Description

Wrapper structure to make cluster label sortable in energy fraction.

Definition at line 38 of file ClusterLabel.h.

Constructor & Destructor Documentation

◆ labelWithE() [1/2]

o2::emcal::ClusterLabel::labelWithE::labelWithE ( )
inline

Constructor.

Definition at line 41 of file ClusterLabel.h.

◆ labelWithE() [2/2]

o2::emcal::ClusterLabel::labelWithE::labelWithE ( int  l,
float  e 
)
inline

Constructor.

Parameters
lMC label
eEnergy fraction

Definition at line 46 of file ClusterLabel.h.

Member Function Documentation

◆ operator>=()

bool o2::emcal::ClusterLabel::labelWithE::operator>= ( labelWithE const &  rhs) const
inline

Comparison lower operator comparing cells based on energy.

std::sort will require operator>= to compile.

Parameters
rhsLabel to compare to
Returns
True if this cell is has a lower energy, false otherwise

Definition at line 54 of file ClusterLabel.h.

Member Data Documentation

◆ energyFraction

float o2::emcal::ClusterLabel::labelWithE::energyFraction

Energy Fraction.

Definition at line 59 of file ClusterLabel.h.

◆ label

int o2::emcal::ClusterLabel::labelWithE::label

MC label.

Definition at line 60 of file ClusterLabel.h.


The documentation for this struct was generated from the following file: