KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
List of all members | Public Member Functions | Private Attributes | Friends | List of all members
KVIDLine::MyVector2 Class Reference

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
 
MyVector2operator= (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)
 

Constructor & Destructor Documentation

◆ MyVector2() [1/2]

KVIDLine::MyVector2::MyVector2 ( double  X,
double  Y 
)
inline

Definition at line 158 of file KVIDLine.h.

◆ MyVector2() [2/2]

KVIDLine::MyVector2::MyVector2 ( const MyVector2 T)
inline

Definition at line 159 of file KVIDLine.h.

Member Function Documentation

◆ Mod()

double KVIDLine::MyVector2::Mod ( ) const
inline

Definition at line 191 of file KVIDLine.h.

◆ Mod2()

double KVIDLine::MyVector2::Mod2 ( ) const
inline

Definition at line 187 of file KVIDLine.h.

◆ Norm()

MyVector2 KVIDLine::MyVector2::Norm ( const MyVector2 v) const
inline

Definition at line 201 of file KVIDLine.h.

◆ operator=()

MyVector2& KVIDLine::MyVector2::operator= ( const MyVector2 T)
inline

Definition at line 163 of file KVIDLine.h.

◆ Phi()

Double_t KVIDLine::MyVector2::Phi ( ) const
inline

Definition at line 205 of file KVIDLine.h.

◆ Proj()

MyVector2 KVIDLine::MyVector2::Proj ( const MyVector2 v) const
inline

Definition at line 195 of file KVIDLine.h.

Friends And Related Function Documentation

◆ operator* [1/3]

double operator* ( const MyVector2 a,
const MyVector2 b 
)
friend

Definition at line 175 of file KVIDLine.h.

◆ operator* [2/3]

MyVector2 operator* ( const MyVector2 a,
double  s 
)
friend

Definition at line 179 of file KVIDLine.h.

◆ operator* [3/3]

MyVector2 operator* ( double  s,
const MyVector2 a 
)
friend

Definition at line 183 of file KVIDLine.h.

◆ operator-

MyVector2 operator- ( const MyVector2 a,
const MyVector2 b 
)
friend

Definition at line 171 of file KVIDLine.h.

Member Data Documentation

◆ x

double KVIDLine::MyVector2::x
private

Definition at line 156 of file KVIDLine.h.

◆ y

double KVIDLine::MyVector2::y
private

Definition at line 156 of file KVIDLine.h.


The documentation for this class was generated from the following file: