30 printf(
"(%f, %f, %f)\n", fX, fY, fZ);
38 fX = v.
x(); fY = v.
y(); fZ = v.
z();
47 if (cosTheta*cosTheta < 1)
return -0.5*
TMath::Log( (1.0-cosTheta)/(1.0+cosTheta) );
48 Warning(
"Eta",
"transverse momentum = 0, returning +/- 1e10");
49 return (fZ >= 0) ? 1e10 : -1e10;
112 printf(
"(%f, %f, %f; %f)\n", TP::fX, TP::fY, TP::fZ, fT);
146 printf(
"(%f, %f)\n", fX, fY);
void Set(const Float_t *v)
T Mag(const SVector< T, D > &rhs)
Vector magnitude (Euclidian norm) Compute : .
void OrthoNormBase(TEveVectorT &a, TEveVectorT &b) const
Set vectors a and b to be normal to this and among themselves, both of length 1.
Minimal, templated four-vector.
void Dump() const
Dump to stdout as "(x, y, z)\n".
void Dump() const
Dump to stdout as "(x, y, z; t)\n".
TEveVectorT Orthogonal() const
Returns an orthogonal vector (not normalized).
TT Eta() const
Calculate eta of the point, pretending it's a momentum vector.
Double_t length(const TVector2 &v)
void Dump() const
Dump to stdout as "(x, y)\n".
Minimal, templated two-vector.
T * Cross(const T v1[3], const T v2[3], T out[3])
void Warning(const char *location, const char *msgfmt,...)
void Normalize(TT length=1)
Normalize the vector to length if current length is non-zero.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
TT Normalize(TT length=1)
Normalize the vector to length if current length is non-zero.
double CosTheta(const Vector1 &v1, const Vector2 &v2)
Find CosTheta Angle between two generic 3D vectors pre-requisite: vectors implement the X()...
ClassImp(TEveVectorT< Float_t >)