#include <FSRWeightAlgo.h>
Definition at line 8 of file FSRWeightAlgo.h.
◆ FSRWeightAlgo()
heppy::FSRWeightAlgo::FSRWeightAlgo |
( |
| ) |
|
|
inline |
◆ ~FSRWeightAlgo()
virtual heppy::FSRWeightAlgo::~FSRWeightAlgo |
( |
| ) |
|
|
inlinevirtual |
◆ addGenParticle()
◆ alphaRatio()
double heppy::FSRWeightAlgo::alphaRatio |
( |
double |
pt | ) |
const |
|
private |
Definition at line 78 of file FSRWeightAlgo.cc.
82 const double alphapi = 1 / 137.036 /
M_PI;
83 const double mass_e = 0.0005;
84 const double mass_mu = 0.106;
85 const double mass_tau = 1.777;
86 const double mass_Z = 91.2;
88 pigaga += alphapi * (2 *
log(
pt / mass_e) / 3. - 5. / 9.);
90 pigaga += alphapi * (2 *
log(
pt / mass_mu) / 3. - 5. / 9.);
92 pigaga += alphapi * (2 *
log(
pt / mass_tau) / 3. - 5. / 9.);
104 }
else if (
pt < 2.0) {
108 }
else if (
pt < 4.0) {
112 }
else if (
pt < 10.0) {
116 }
else if (
pt < mass_Z) {
120 }
else if (
pt < 10000.) {
132 return 1. / (1. - pigaga);
References TtFullHadDaughter::B, gen::C, dqm-mbProfile::log, M_PI, and DiDispStaMuonMonitor_cfi::pt.
Referenced by weight().
◆ clear()
void heppy::FSRWeightAlgo::clear |
( |
void |
| ) |
|
|
inline |
◆ weight()
double heppy::FSRWeightAlgo::weight |
( |
| ) |
const |
Definition at line 10 of file FSRWeightAlgo.cc.
14 for (
unsigned int i = 0;
i < gensize; ++
i) {
25 if (bosonId != 23 && bosonId != 24)
27 double bosonMass = boson->
mass();
28 double leptonMass = lepton.
mass();
29 double leptonEnergy = lepton.
energy();
30 double cosLeptonTheta =
cos(lepton.
theta());
31 double sinLeptonTheta =
sin(lepton.
theta());
32 double leptonPhi = lepton.
phi();
44 trueKey = otherleptonKey;
50 for (
unsigned int j = 0;
j < nDaughters; ++
j) {
55 double cosPhotonTheta =
cos(
photon->theta());
56 double sinPhotonTheta =
sin(
photon->theta());
59 sinLeptonTheta * sinPhotonTheta *
cos(leptonPhi -
photonPhi) + cosLeptonTheta * cosPhotonTheta;
63 double betaLepton =
sqrt(1 -
pow(leptonMass / leptonEnergy, 2));
65 (1 -
pow(leptonMass / bosonMass, 2)) / (4 -
pow(leptonMass / bosonMass, 2)) * leptonEnergy *
References funct::abs(), alphaRatio(), funct::cos(), reco::CompositeRefCandidateT< D >::daughter(), reco::CompositeRefCandidateT< D >::daughterRef(), dumpMFGeometry_cfg::delta, reco::LeafCandidate::energy(), genParticles_, mps_fire::i, dqmiolumiharvest::j, HLT_2018_cff::leptonId, reco::Candidate::mass(), reco::LeafCandidate::mass(), reco::CompositeRefCandidateT< D >::mother(), reco::CompositeRefCandidateT< D >::numberOfDaughters(), reco::CompositeRefCandidateT< D >::numberOfMothers(), reco::Candidate::pdgId(), reco::LeafCandidate::pdgId(), reco::LeafCandidate::phi(), muons2muons_cfi::photon, MaterialEffects_cfi::photonEnergy, HLTObjectMonitor_cfi::photonPhi, funct::pow(), funct::sin(), mathSSE::sqrt(), reco::LeafCandidate::status(), and reco::LeafCandidate::theta().
◆ genParticles_