5 #include "Pythia8/PhaseSpace.h"
32 const PhaseSpace* phaseSpacePtr,
36 if (sigmaProcessPtr->nFinal() != 1)
return 0.;
42 int idRes = sigmaProcessPtr->resonanceB();
43 double mRes = particleDataPtr->m0(idRes);
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);
53 double par[2]={-8.95719e+00,1.62584e-03};
55 if(rH>=
m_maxSHat(settingsPtr)){ weightpT=0; }
57 double weightDecay = 1.;
60 double p0 = -0.000527117;
61 double p1 = 2.64665e-06;
63 weightDecay = 0.008/(
p0+(
p1*rH));
66 long double weight = weightBW * weightpT * weightDecay;