madanalysis5 icon indicating copy to clipboard operation
madanalysis5 copied to clipboard

Issue with multi-weight accessor

Open jackaraz opened this issue 1 year ago • 0 comments

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

jackaraz avatar Apr 21 '23 17:04 jackaraz