66 Boost b(betax, betay, betaz);
73 o.setf(std::ios::right, std::ios::adjustfield);
75 o << std::setw(4) << std::setprecision(2) << p.
pid() <<
" (";
76 o << std::setw(2) << std::setprecision(2) << p.
status() <<
"): ";
77 o << std::setw(10) << std::setprecision(4) << p.
momentum() <<
" ";
78 o << std::setw(10) << std::setprecision(4) << p.
vertex();
83 double mypp, tmpEt = -1.;
87 tmpEt =
E() *
pt() / mypp;
void setMomentum(const XYZTLorentzVector &vtx)
set the momentum
double pz() const
z of the momentum
void setCharge(float q)
set the MEASURED charge
void boost(double bx, double by, double bz)
void rotateZ(double rphi)
std::ostream & operator<<(std::ostream &o, const RawParticle &p)
XYZTLorentzVector myVertex
the four vector of the vertex
double pt() const
transverse momentum
int status() const
get the particle status
void rotateY(double rphi)
int myId
the particle id number HEP-PID
double myMass
the RECONSTRUCTED mass
XYZTLorentzVector myMomentum
the four vector of the momentum
int pid() const
get the HEP particle ID number
void setT(const double t)
set the time of creation
double mass() const
get the MEASURED mass
ROOT::Math::RotationZ RotationZ
void setMass(float m)
set the RECONSTRUCTED mass
int myStatus
the status code according to PYTHIA
ROOT::Math::RotationX RotationX
const XYZTLorentzVector & momentum() const
the momentum fourvector
double t() const
vertex time
double e() const
energy of the momentum
double myCharge
the MEASURED charge
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
ROOT::Math::RotationY RotationY
void rotate(double rphi, const XYZVector &raxis)
double charge() const
get the MEASURED charge
const XYZTLorentzVector & vertex() const
the vertex fourvector
void setStatus(int istat)
void rotateX(double rphi)
double r() const
vertex radius
ROOT::Math::AxisAngle Rotation
double E() const
energy of the momentum
double px() const
x of the momentum
double py() const
y of the momentum
math::XYZVector XYZVector
double et() const
get the transverse energy
math::XYZTLorentzVector XYZTLorentzVector
T angle(T x1, T y1, T z1, T x2, T y2, T z2)