KaliVeda
1.13/01
Heavy-Ion Analysis Toolkit
|
A lightweight replacement for the TVector2 class.
This has only been added in order to be able to use KVIDLine in a multi-threaded environment. Something in TVector2 seems to be not thread-friendly (and it is any case deprecated).
The previous implementation of KVIDLine::DistanceToLine(Double_t, Double_t, Double_t, Double_t, Double_t, Double_t, Int_t&) using TVector2 required Mutex locking (R__LOCKGUARD(gGlobalMutex)) to be thread-safe, leading to a huge reduction in speed.
Definition at line 155 of file KVIDLine.h.
Public Member Functions | |
MyVector2 (const MyVector2 &T) | |
MyVector2 (double X, double Y) | |
double | Mod () const |
double | Mod2 () const |
MyVector2 | Norm (const MyVector2 &v) const |
MyVector2 & | operator= (const MyVector2 &T) |
Double_t | Phi () const |
MyVector2 | Proj (const MyVector2 &v) const |
Private Attributes | |
double | x |
double | y |
Friends | |
double | operator* (const MyVector2 &a, const MyVector2 &b) |
MyVector2 | operator* (const MyVector2 &a, double s) |
MyVector2 | operator* (double s, const MyVector2 &a) |
MyVector2 | operator- (const MyVector2 &a, const MyVector2 &b) |
Definition at line 158 of file KVIDLine.h.
|
inline |
Definition at line 159 of file KVIDLine.h.
|
inline |
Definition at line 191 of file KVIDLine.h.
|
inline |
Definition at line 187 of file KVIDLine.h.
Definition at line 201 of file KVIDLine.h.
Definition at line 163 of file KVIDLine.h.
|
inline |
Definition at line 205 of file KVIDLine.h.
Definition at line 195 of file KVIDLine.h.
Definition at line 175 of file KVIDLine.h.
Definition at line 179 of file KVIDLine.h.
Definition at line 183 of file KVIDLine.h.
Definition at line 171 of file KVIDLine.h.
|
private |
Definition at line 156 of file KVIDLine.h.
|
private |
Definition at line 156 of file KVIDLine.h.