Applies lepton identification efficiency scale factors. More...
#include <LeptonWeight.h>
Public Member Functions | |
LeptonWeight (Dataset &dataset, Options const &options, ElectronBuilder const *electronBuilder, MuonBuilder const *muonBuilder) | |
Constructor. | |
double | NominalWeight () const override |
Computes the total lepton efficiency weight for the current event. | |
double | ElectronSF (Electron const &electron) const |
Gives scale factor for an electron. | |
double | MuonSF (Muon const &muon) const |
Gives scale factor for a muon. | |
Private Attributes | |
std::vector< PtEtaHistogram > | muonScaleFactors_ |
Individual scale factors for muons and electrons. | |
std::vector< PtEtaHistogram > | electronScaleFactors_ |
ElectronBuilder const * | electronBuilder_ |
Non-owning pointer to object that provides collection of electrons. | |
MuonBuilder const * | muonBuilder_ |
Non-owning pointer to object that provides collection of muons. |
Applies lepton identification efficiency scale factors.
The computation is done using tight leptons provided by the builders given to the constructor. The scale factors are read from files specified in the master configuration. Multiple scale factors for the same lepton flavour are multiplied together. See documentation for class PtEtaHistogram for a description of the configuration for individual scale factors.
Trigger scale factors are missing.
Systematic variations are not provided.
double LeptonWeight::ElectronSF | ( | Electron const & | electron | ) | const |
Gives scale factor for an electron.
Uses pseudorapidity of the ECAL supercluster to look up the scale factor.
double LeptonWeight::MuonSF | ( | Muon const & | muon | ) | const |
Gives scale factor for a muon.
Uses uncorrected momentum to look up the scale factor.