|
EvtGen
2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
|
Go to the documentation of this file. 72 double e = p4. get( 0 ); 83 double bx, by, bz, gamma, b2; 101 gamma = 1.0 / sqrt( 1 - b2 ); 103 double gb2 = ( gamma - 1.0 ) / b2; 105 double gb2xy = gb2 * bx * by; 106 double gb2xz = gb2 * bx * bz; 107 double gb2yz = gb2 * by * bz; 109 double gbx = gamma * bx; 110 double gby = gamma * by; 111 double gbz = gamma * bz; 118 v[0] = gamma * e2 + gbx * px2 + gby * py2 + gbz * pz2; 120 v[1] = gbx * e2 + gb2 * bxx * px2 + px2 + gb2xy * py2 + gb2xz * pz2; 122 v[2] = gby * e2 + gb2 * byy * py2 + py2 + gb2xy * px2 + gb2yz * pz2; 124 v[3] = gbz * e2 + gb2 * bzz * pz2 + pz2 + gb2yz * py2 + gb2xz * px2; 131 double sp = sin( phi ); 132 double st = sin( theta ); 133 double sk = sin( ksi ); 134 double cp = cos( phi ); 135 double ct = cos( theta ); 136 double ck = cos( ksi ); 139 ( -sk * ct * cp - ck * sp ) * v[2] + st * cp * v[3]; 141 ( -sk * ct * sp + ck * cp ) * v[2] + st * sp * v[3]; 151 s << "(" << v. v[0] << "," << v. v[1] << "," << v. v[2] << "," << v. v[3] << ")";
EvtVector4C boostTo(const EvtVector4C &rs, const EvtVector4R p4)
void applyRotateEuler(double alpha, double beta, double gamma)
ostream & operator<<(ostream &s, const EvtVector4C &v)
void applyBoostTo(const EvtVector4R &p4)
EvtVector4C rotateEuler(const EvtVector4C &rs, double alpha, double beta, double gamma)
|