rivet is hosted by Hepforge, IPPP Durham
SmearingFunctions.hh File Reference
#include "Rivet/Particle.hh"
#include "Rivet/Jet.hh"
#include <random>

Go to the source code of this file.

Classes

struct  ParticleEffFilter
struct  JetEffFilter

Namespaces

namespace  Rivet

Functions

Random number and filtering utils
double rand01 ()
template<typename FN >
bool efffilt (const Particle &p, FN &feff)
template<typename FN >
bool efffilt (const Jet &j, FN &feff)
General particle & momentum efficiency and smearing functions
double PARTICLE_FN0 (const Particle &p)
 Take a Particle and return 0.
double PARTICLE_FN1 (const Particle &p)
 Take a Particle and return 1.
Particle PARTICLE_SMEAR_IDENTITY (const Particle &p)
 Take a Particle and return it unmodified.
double P4_FN0 (const FourMomentum &p)
 Take a FourMomentum and return 0.
double P4_FN1 (const FourMomentum &p)
 Take a FourMomentum and return 1.
FourMomentum P4_SMEAR_IDENTITY (const FourMomentum &p)
 Take a FourMomentum and return it unmodified.
FourMomentum P4_SMEAR_E_GAUSS (const FourMomentum &p, double resolution)
FourMomentum P4_SMEAR_PT_GAUSS (const FourMomentum &p, double resolution)
 Smear a FourMomentum's transverse momentum using a Gaussian of absolute width resolution.
FourMomentum P4_SMEAR_MASS_GAUSS (const FourMomentum &p, double resolution)
 Smear a FourMomentum's mass using a Gaussian of absolute width resolution.
double P3_FN0 (const Vector3 &p)
 Take a Vector3 and return 0.
double P3_FN1 (const Vector3 &p)
 Take a Vector3 and return 1.
Vector3 P3_SMEAR_IDENTITY (const Vector3 &p)
 Take a Vector3 and return it unmodified.
Vector3 P3_SMEAR_LEN_GAUSS (const Vector3 &p, double resolution)
 Smear a Vector3's length using a Gaussian of absolute width resolution.
Electron efficiency and smearing functions
double ELECTRON_TRKEFF_ATLAS_RUN1 (const Particle &e)
double ELECTRON_TRKEFF_ATLAS_RUN2 (const Particle &e)
double ELECTRON_EFF_ATLAS_RUN1 (const Particle &e)
double ELECTRON_EFF_ATLAS_RUN2 (const Particle &e)
double ELECTRON_IDEFF_ATLAS_RUN2_LOOSE (const Particle &e)
 ATLAS Run 2 'loose' electron identification/selection efficiency.
double ELECTRON_IDEFF_ATLAS_RUN1_MEDIUM (const Particle &e)
 ATLAS Run 1 'medium' electron identification/selection efficiency.
double ELECTRON_IDEFF_ATLAS_RUN2_MEDIUM (const Particle &e)
 ATLAS Run 2 'medium' electron identification/selection efficiency.
double ELECTRON_IDEFF_ATLAS_RUN1_TIGHT (const Particle &e)
 ATLAS Run 1 'tight' electron identification/selection efficiency.
double ELECTRON_IDEFF_ATLAS_RUN2_TIGHT (const Particle &e)
 ATLAS Run 2 'tight' electron identification/selection efficiency.
Particle ELECTRON_SMEAR_ATLAS_RUN1 (const Particle &e)
 ATLAS Run 1 electron reco smearing.
Particle ELECTRON_SMEAR_ATLAS_RUN2 (const Particle &e)
double ELECTRON_TRKEFF_CMS_RUN1 (const Particle &e)
double ELECTRON_TRKEFF_CMS_RUN2 (const Particle &e)
double ELECTRON_EFF_CMS_RUN1 (const Particle &e)
double ELECTRON_EFF_CMS_RUN2 (const Particle &e)
Particle ELECTRON_SMEAR_CMS_RUN1 (const Particle &e)
 CMS electron energy smearing, preserving direction.
Particle ELECTRON_SMEAR_CMS_RUN2 (const Particle &e)
Muon efficiency and smearing functions
Todo:
Photon efficiency and smearing
double MUON_TRKEFF_ATLAS_RUN1 (const Particle &m)
double MUON_TRKEFF_ATLAS_RUN2 (const Particle &m)
double MUON_EFF_ATLAS_RUN1 (const Particle &m)
double MUON_EFF_ATLAS_RUN2 (const Particle &m)
Particle MUON_SMEAR_ATLAS_RUN1 (const Particle &m)
 ATLAS Run 1 muon reco smearing.
Particle MUON_SMEAR_ATLAS_RUN2 (const Particle &m)
double MUON_TRKEFF_CMS_RUN1 (const Particle &m)
double MUON_TRKEFF_CMS_RUN2 (const Particle &m)
double MUON_EFF_CMS_RUN1 (const Particle &m)
double MUON_EFF_CMS_RUN2 (const Particle &m)
Particle MUON_SMEAR_CMS_RUN1 (const Particle &m)
 CMS Run 1 muon reco smearing.
Particle MUON_SMEAR_CMS_RUN2 (const Particle &m)
Tau efficiency and smearing functions
double TAU_EFF_ATLAS_RUN1 (const Particle &t)
 ATLAS Run 1 8 TeV tau efficiencies (medium working point)
double TAU_EFF_ATLAS_RUN2 (const Particle &t)
 ATLAS Run 2 13 TeV tau efficiencies (medium working point)
Particle TAU_SMEAR_ATLAS_RUN1 (const Particle &t)
Particle TAU_SMEAR_ATLAS_RUN2 (const Particle &t)
double TAU_EFF_CMS_RUN2 (const Particle &t)
double TAU_EFF_CMS_RUN1 (const Particle &t)
Particle TAU_SMEAR_CMS_RUN1 (const Particle &t)
Particle TAU_SMEAR_CMS_RUN2 (const Particle &t)
Jet efficiency and smearing functions
double JET_EFF_ZERO (const Jet &p)
 Return a constant 0 given a Jet as argument.
double JET_EFF_ONE (const Jet &p)
 Return a constant 1 given a Jet as argument.
double JET_BTAG_PERFECT (const Jet &j)
 Return 1 if the given Jet contains a b, otherwise 0.
double JET_BTAG_ATLAS_RUN1 (const Jet &j)
 Return the ATLAS Run 1 jet flavour tagging efficiency for the given Jet.
double JET_BTAG_ATLAS_RUN2_MV2C20 (const Jet &j)
 Return the ATLAS Run 2 MC2c20 jet flavour tagging efficiency for the given Jet.
double JET_BTAG_ATLAS_RUN2_MV2C10 (const Jet &j)
 Return the ATLAS Run 2 MC2c10 jet flavour tagging efficiency for the given Jet.
double JET_CTAG_PERFECT (const Jet &j)
 Return 1 if the given Jet contains a c, otherwise 0.
Jet JET_SMEAR_IDENTITY (const Jet &j)
Jet JET_SMEAR_ATLAS_RUN1 (const Jet &j)
Jet JET_SMEAR_ATLAS_RUN2 (const Jet &j)
Jet JET_SMEAR_CMS_RUN2 (const Jet &j)
ETmiss smearing functions
Vector3 MET_SMEAR_IDENTITY (const Vector3 &met, double)
Vector3 MET_SMEAR_ATLAS_RUN1 (const Vector3 &met, double set)
 ATLAS Run 1 ETmiss smearing.
Vector3 MET_SMEAR_ATLAS_RUN2 (const Vector3 &met, double set)
Vector3 MET_SMEAR_CMS_RUN1 (const Vector3 &met, double set)
Vector3 MET_SMEAR_CMS_RUN2 (const Vector3 &met, double set)