66 <<
"EvtPhotonParticle.cc: Asked "
67 <<
"for state:" << i << endl;
74 const double px = this->
getP4().
get( 1 );
75 const double py = this->
getP4().
get( 2 );
76 const double pz = this->
getP4().
get( 3 );
78 const double phi = atan2( py, px );
79 const double theta = acos( pz / sqrt( px * px + py * py + pz * pz ) );
80 eps.applyRotateEuler( phi, theta, -phi );
void setAttribute(std::string attName, int attValue)
const EvtVector4R & getP4() const
void setp(double e, double px, double py, double pz)
virtual EvtVector4C eps(int i) const
void setpart_num(EvtId particle_number)
EvtVector4C epsPhoton(int i) const override
EvtSpinDensity rotateToHelicityBasis() const override
void init(EvtId part_n, double e, double px, double py, double pz)
EvtVector4C epsParentPhoton(int i) const override