KaliVeda
Toolkit for HIC analysis
|
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 157 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) |
|
inline |
Definition at line 160 of file KVIDLine.h.
|
inline |
Definition at line 161 of file KVIDLine.h.
|
inline |
Definition at line 193 of file KVIDLine.h.
|
inline |
Definition at line 189 of file KVIDLine.h.
Definition at line 203 of file KVIDLine.h.
Definition at line 165 of file KVIDLine.h.
|
inline |
Definition at line 207 of file KVIDLine.h.
Definition at line 197 of file KVIDLine.h.
Definition at line 177 of file KVIDLine.h.
Definition at line 181 of file KVIDLine.h.
Definition at line 185 of file KVIDLine.h.
Definition at line 173 of file KVIDLine.h.
|
private |
Definition at line 158 of file KVIDLine.h.
|
private |
Definition at line 158 of file KVIDLine.h.