Generic entry weight, including a correlation bit.
Mimics a pair<double,int>
, where the double contains a weight (either gen or rec level, for events, jets, photons, etc.), and the int an index. For bin-to-bin correlated (uncorrelated) uncertainties, it should always be 0 (correspond to the index of the bin containing the corrections). This allows to handle the decorrelations coming from independent stat in different bins.
A few operators are overloaded so that the weight may be used just as a floating number.