WeightBase Class Reference

Abstract base class for per-event weights. More...

#include <WeightBase.h>

Inheritance diagram for WeightBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual double NominalWeight () const =0
 Returns nominal weight for the current event.
virtual int NumVariations () const
 Returns number of supported systematic variations.
virtual double operator() () const
 Returns the default weight.
virtual double RelWeight (int) const
 Returns relative weight for requested systematic variation.
virtual std::string_view VariationName (int) const
 Returns the label of the systematic variation with the given index.

Detailed Description

Abstract base class for per-event weights.

All classes implementing per-event weights should inherit from this one to comply with the standard interface.


Member Function Documentation

virtual int WeightBase::NumVariations (  )  const [inline, virtual]

Returns number of supported systematic variations.

Up and down variations are counted separately. The nominal weight is not included.

Reimplemented in BTagWeight, EWCorrectionWeight, GenWeight, L1TPrefiringWeight, PileUpIdWeight, and PileUpWeight.

virtual double WeightBase::operator() (  )  const [inline, virtual]

Returns the default weight.

This might be different from the nominal weight if a specific variation has been requested via command line options.

Reimplemented in BTagWeight, EWCorrectionWeight, GenWeight, L1TPrefiringWeight, PileUpIdWeight, and PileUpWeight.

virtual double WeightBase::RelWeight ( int   )  const [inline, virtual]

Returns relative weight for requested systematic variation.

The relative weight is computed with respect to the nominal weight. The argument must satisfy 0 <= variation < NumVariations().

Reimplemented in BTagWeight, EWCorrectionWeight, GenWeight, L1TPrefiringWeight, PileUpIdWeight, and PileUpWeight.

virtual std::string_view WeightBase::VariationName ( int   )  const [inline, virtual]

Returns the label of the systematic variation with the given index.

If the variation has the meaning of an "up" or "down" one, the label must end with "_up" or "_down" respectively. The argument must satisfy 0 <= variation < NumVariations().

Reimplemented in BTagWeight, EWCorrectionWeight, GenWeight, L1TPrefiringWeight, PileUpIdWeight, and PileUpWeight.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator

Generated on 30 Oct 2020 for H→ZZ→2ℓ2ν analysis by  doxygen 1.6.1