#include <FML1PtSmearer.h>
Public Member Functions | |
FML1PtSmearer (const RandomEngine *engine) | |
Constructor (read in the parametrizations from a data file) More... | |
bool | smear (SimpleL1MuGMTCand *) |
smear the transverse momentum of a SimplL1MuGMTCand More... | |
~FML1PtSmearer () | |
Destructor. More... | |
Private Member Functions | |
float | ChargeMisIdent (int ieta, double pt) |
int | IndexOfPtgen (float pt) |
Private Attributes | |
const RandomEngine * | random |
float | resolution [DIMRES] |
Static Private Attributes | |
static const int | DIMRES =3*NPT*NPTL1 |
static const int | NPT =136 |
static const int | NPTL1 =31 |
Class to deal with the 'smearing' of the L1 muon transverse momentum. The output momentum is generated according to the probablility that a MC muon with the same pt leads to that (discrete) momentum value in the GMT.
Definition at line 16 of file FML1PtSmearer.h.
FML1PtSmearer::FML1PtSmearer | ( | const RandomEngine * | engine | ) |
Constructor (read in the parametrizations from a data file)
Definition at line 16 of file FML1PtSmearer.cc.
References gather_cfg::cout, connectstrParser::f1, alignmentValidation::fname, i, j, NPT, NPTL1, path(), and resolution.
FML1PtSmearer::~FML1PtSmearer | ( | ) |
|
inlineprivate |
Definition at line 40 of file FML1PtSmearer.h.
References ExpressReco_HICollisions_FallBack::pt.
Referenced by smear().
|
private |
bool FML1PtSmearer::smear | ( | SimpleL1MuGMTCand * | aMuon | ) |
smear the transverse momentum of a SimplL1MuGMTCand
Definition at line 58 of file FML1PtSmearer.cc.
References SimpleL1MuGMTCand::charge(), ChargeMisIdent(), cmsDriverOptions::counter, RandomEngine::flatShoot(), SimpleL1MuGMTCand::getMomentum(), IndexOfPtgen(), NPT, NPTL1, reco::tau::disc::Pt(), SimpleL1MuGMTCand::ptScale, random, resolution, SimpleL1MuGMTCand::setCharge(), L1MuGMTCand::setPtPacked(), L1MuGMTCand::setPtValue(), and SimpleL1MuGMTCand::smearedPt().
Referenced by FastL1MuonProducer::produce(), and ParamL3MuonProducer::produce().
Definition at line 37 of file FML1PtSmearer.h.
|
staticprivate |
Definition at line 36 of file FML1PtSmearer.h.
Referenced by FML1PtSmearer(), IndexOfPtgen(), and smear().
|
staticprivate |
Definition at line 35 of file FML1PtSmearer.h.
Referenced by FML1PtSmearer(), and smear().
|
private |
Definition at line 31 of file FML1PtSmearer.h.
Referenced by smear().
|
private |
Definition at line 38 of file FML1PtSmearer.h.
Referenced by FML1PtSmearer(), and smear().