21 const float b = 59.24;
22 const float c = 0.082;
23 const float d = 0.151;
24 const float mt = std::sqrt(mass * mass + pt * pt);
25 const float n =
a +
b / sqrts;
26 const float T =
c + d / sqrts;
27 const float p0 =
n * T;
28 return std::pow((1. + mt / p0), -
n) * pt;
36 return (rnd * (
weight * pt * pt)) < factorPt;
GLuint GLuint GLfloat weight
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
static float tsallisCharged(float pt, float mass, float sqrts)
static bool downsampleTsallisCharged(float pt, float factorPt, float sqrts, float &weight, float rnd, float mass=0.13957)