15#include "fairlogger/Logger.h"
22CellLabel::CellLabel(
const gsl::span<const int> labels,
const gsl::span<const float> amplitudeFractions) : mLabels(labels), mAmplitudeFraction(amplitudeFractions)
24 if (labels.size() != amplitudeFractions.size()) {
25 LOG(error) <<
"Size of labels " << labels.size() <<
" does not match size of amplitude fraction " << amplitudeFractions.size() <<
" !";
int32_t GetLeadingMCLabel() const
Getter for label with leading amplitude fraction.
gsl::span< const int32_t > mLabels
List of MC particles that generated the cluster, ordered in deposited energy.
CellLabel(const gsl::span< const int > labels, const gsl::span< const float > amplitudeFractions)
Constructor.
gsl::span< const float > mAmplitudeFraction
List of the fraction of the cell energy coming from a MC particle. Index aligns with mLabels!
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"