madanalysis5
madanalysis5 copied to clipboard
Multiweight implementation
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.