madanalysis5
madanalysis5 copied to clipboard
Issue with multi-weight accessor
System Settings
Ma5 version 1.10 and 2
Describe the bug
const WeightCollection *weights = (&(event.mc()->multiweights()));
weights->Get(1);
raises an error claiming that the weight does not exist.
To Reproduce
const WeightCollection *weights = (&(event.mc()->multiweights()));
weights->Get(1);
Expected behaviour
https://github.com/MadAnalysis/madanalysis5/blob/7b3192423dec69e302b67b7818e995df465fdfc4/tools/SampleAnalyzer/Commons/DataFormat/WeightCollection.h#L119
!=
needs to be ==
Log files
No response
Additional information
No response