madanalysis5 icon indicating copy to clipboard operation
madanalysis5 copied to clipboard

Multiweight implementation

Open jackaraz opened this issue 1 year ago • 4 comments

Context: This PR implements the treatment of multiple weights originating from scale and PDF uncertainties.

Description of the Change:

Readers, cutflow and histogramming objects have been updated to accommodate more than one weight.

Benefits:

This will allow the implementation of theoretical uncertainties into the analysis

Major changes and limitations to backwards compatibility

InitializeForNewEvent function which takes MAfloat64 event weight value, is deprecated. It is an empty function which does not do anything at the moment. This has been replaced by void InitializeForNewEvent(const WeightCollection &EventWeight) function, which takes weight collection as an input. MCEventFormat no longer has a single weight value; everything is controlled by WeightCollection class.

Weights are initialised within main.cpp function. The user does not need to initialise them within the analysis.

jackaraz avatar Jun 27 '23 14:06 jackaraz