16namespace Experimental {
30 printf(
"(%f, %f, %f)\n", fX, fY, fZ);
38 fX =
v.x(); fY =
v.y(); fZ =
v.z();
46 TT cosTheta = CosTheta();
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;
111 printf(
"(%f, %f, %f; %f)\n", TP::fX, TP::fY, TP::fZ, fT);
143 printf(
"(%f, %f)\n", fX, fY);
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h length
REveVector2T A two-vector template without TObject inheritance and virtual functions.
void Normalize(TT length=1)
Normalize the vector to length if current length is non-zero.
void Dump() const
Dump to stdout as "(x, y)\n".
REveVector4T A four-vector template without TObject inheritance and virtual functions.
void Dump() const
Dump to stdout as "(x, y, z; t)\n".
REveVectorT A three-vector template without TObject inheritance and virtual functions.
TT Normalize(TT length=1)
Normalize the vector to length if current length is non-zero.
REveVectorT Orthogonal() const
Returns an orthogonal vector (not normalized).
void Set(const Float_t *v)
void OrthoNormBase(REveVectorT &a, REveVectorT &b) const
Set vectors a and b to be normal to this and among themselves, both of length 1.
TT Eta() const
Calculate eta of the point, pretending it's a momentum vector.
void Dump() const
Dump to stdout as "(x, y, z)\n".
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Double_t Log(Double_t x)
Returns the natural logarithm of x.