16#include <fairlogger/Logger.h>
28 if (
labels.size() != amplitudeFractions.size()) {
29 LOG(error) <<
"Size of labels " <<
labels.size() <<
" does not match size of amplitude fraction " << amplitudeFractions.size() <<
" !";
35 if (
labels.size() != amplitudeFractions.size()) {
36 LOG(error) <<
"Size of labels " <<
labels.size() <<
" does not match size of amplitude fraction " << amplitudeFractions.size() <<
" !";
std::vector< std::string > labels
int32_t GetLeadingMCLabel() const
Getter for label with leading amplitude fraction.
CellLabel(std::vector< int > labels, std::vector< float > amplitudeFractions)
Constructor using std::vector by moving NOT copying.
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!
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"