![]() |
Project
|
cell class for MC particle IDs and their respective amplitude fraction More...
#include <CellLabel.h>
Public Member Functions | |
CellLabel (const gsl::span< const int > labels, const gsl::span< const float > amplitudeFractions) | |
Constructor. | |
size_t | GetLabelSize (void) const |
Getter of label size. | |
int32_t | GetLabel (size_t index) const |
Getter for label. | |
gsl::span< const int32_t > | GetLabels () const |
Getter for labels. | |
float | GetAmplitudeFraction (size_t index) const |
Getter for amplitude fraction. | |
gsl::span< const float > | GetAmplitudeFractions () const |
Getter for amplitude fractions. | |
int32_t | GetLeadingMCLabel () const |
Getter for label with leading amplitude fraction. | |
Protected Attributes | |
gsl::span< const int32_t > | mLabels |
List of MC particles that generated the cluster, ordered in deposited energy. | |
gsl::span< const 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 32 of file CellLabel.h.
CellLabel::CellLabel | ( | const gsl::span< const int > | labels, |
const gsl::span< const float > | amplitudeFractions | ||
) |
Constructor.
labels | list of mc labels |
amplitudeFractions | list of amplitude fractions |
Definition at line 22 of file CellLabel.cxx.
|
inline |
Getter for amplitude fraction.
index | index which amplitude fraction to get |
Definition at line 59 of file CellLabel.h.
|
inline |
Getter for amplitude fractions.
Definition at line 62 of file CellLabel.h.
|
inline |
Getter for label.
index | index which label to get |
Definition at line 52 of file CellLabel.h.
|
inline |
Getter for labels.
Definition at line 55 of file CellLabel.h.
|
inline |
Getter of label size.
index | index which label to get |
Definition at line 48 of file CellLabel.h.
int32_t CellLabel::GetLeadingMCLabel | ( | ) | const |
Getter for label with leading amplitude fraction.
Definition at line 29 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 69 of file CellLabel.h.
|
protected |
List of MC particles that generated the cluster, ordered in deposited energy.
Definition at line 68 of file CellLabel.h.