33 {
34
35
36 if (sigmaProcessPtr->nFinal() != 1) return 0.;
37
38
39
40
41
42 int idRes = sigmaProcessPtr->resonanceB();
43 double mRes = particleDataPtr->m0(idRes);
44
45 double wRes = particleDataPtr->mWidth(idRes);
46 double m2Res = mRes*mRes;
47 double GamMRat = wRes/mRes;
48 double sHat = phaseSpacePtr->sHat();
49 long double weightBW =
pow2(sHat - m2Res) +
pow2(sHat * GamMRat);
50 long double weightpT= 1;
51 double rH = std::sqrt(sHat);
52
53 double par[2]={-8.95719e+00,1.62584e-03};
54 weightpT=std::exp(par[0]+par[1]*rH);
55 if(rH>=
m_maxSHat(settingsPtr)){ weightpT=0; }
56
57 double weightDecay = 1.;
58
60 double p0 = -0.000527117;
61 double p1 = 2.64665e-06;
62
63 weightDecay = 0.008/(
p0+(
p1*rH));
64 }
65
66 long double weight = weightBW * weightpT * weightDecay;
68
69 }
static const std::map< unsigned int, unsigned int > pow2
Pythia8_UserHooks::UserSetting< double > m_maxSHat
Pythia8_UserHooks::UserSetting< double > m_doDecayWeightBelow