![]() |
Project
|
cell class for MC particle IDs and their respective amplitude fraction More...
#include <CellLabel.h>
Public Member Functions | |
CellLabel (std::vector< int > labels, std::vector< float > amplitudeFractions) | |
Constructor using std::vector by moving NOT copying. | |
CellLabel (gsl::span< const int > labels, gsl::span< const float > amplitudeFractions) | |
Constructor using gsl::span. | |
size_t | GetLabelSize (void) const |
Getter of label size. | |
int32_t | GetLabel (size_t index) const |
Getter for label. | |
std::vector< int32_t > | GetLabels () const |
Getter for labels. | |
float | GetAmplitudeFraction (size_t index) const |
Getter for amplitude fraction. | |
std::vector< float > | GetAmplitudeFractions () const |
Getter for amplitude fractions. | |
int32_t | GetLeadingMCLabel () const |
Getter for label with leading amplitude fraction. | |
Protected Attributes | |
std::vector< int32_t > | mLabels |
List of MC particles that generated the cluster, ordered in deposited energy. | |
std::vector< float > | mAmplitudeFraction |
List of the fraction of the cell energy coming from a MC particle. Index aligns with mLabels! | |
cell class for MC particle IDs and their respective amplitude fraction
Definition at line 33 of file CellLabel.h.
CellLabel::CellLabel | ( | std::vector< int > | labels, |
std::vector< float > | amplitudeFractions | ||
) |
Constructor using std::vector by moving NOT copying.
labels | list of mc labels |
amplitudeFractions | list of amplitude fractions |
Definition at line 24 of file CellLabel.cxx.
CellLabel::CellLabel | ( | gsl::span< const int > | labels, |
gsl::span< const float > | amplitudeFractions | ||
) |
Constructor using gsl::span.
labels | list of mc labels |
amplitudeFractions | list of amplitude fractions |
Definition at line 31 of file CellLabel.cxx.
|
inline |
Getter for amplitude fraction.
index | index which amplitude fraction to get |
Definition at line 65 of file CellLabel.h.
|
inline |
Getter for amplitude fractions.
Definition at line 68 of file CellLabel.h.
|
inline |
Getter for label.
index | index which label to get |
Definition at line 58 of file CellLabel.h.
|
inline |
Getter for labels.
Definition at line 61 of file CellLabel.h.
|
inline |
Getter of label size.
index | index which label to get |
Definition at line 54 of file CellLabel.h.
int32_t CellLabel::GetLeadingMCLabel | ( | ) | const |
Getter for label with leading amplitude fraction.
Definition at line 38 of file CellLabel.cxx.
|
protected |
List of the fraction of the cell energy coming from a MC particle. Index aligns with mLabels!
Definition at line 75 of file CellLabel.h.
|
protected |
List of MC particles that generated the cluster, ordered in deposited energy.
Definition at line 74 of file CellLabel.h.