ROOT logo
AliRoot » STEER » ESD » AliStrLine

class AliStrLine: public TObject


A straight line is coded as a point (3 Double_t) and
3 direction cosines


Function Members (Methods)

public:
AliStrLine()
AliStrLine(const AliStrLine& source)
AliStrLine(const Double_t *const point, const Double_t *const cd, Bool_t twopoints = kFALSE, UShort_t id1 = 65535, UShort_t id2 = 65535)
AliStrLine(const Double_t *const point, const Double_t *const sig2point, const Double_t *const cd, Bool_t twopoints = kFALSE, UShort_t id1 = 65535, UShort_t id2 = 65535)
AliStrLine(const Double_t *const point, const Double_t *const sig2point, const Double_t *const wmat, const Double_t *const cd, Bool_t twopoints = kFALSE, UShort_t id1 = 65535, UShort_t id2 = 65535)
virtual~AliStrLine()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidClear(Option_t*)
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
voidComputePointAtT(Double_t t, Double_t* p) const
virtual voidTObject::Copy(TObject& object) const
Int_tCross(AliStrLine* line, Double_t* point)
Int_tCrossPoints(AliStrLine* line, Double_t* point1, Double_t* point2)
Int_tCrossrphi(const AliStrLine* line)
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
voidGetCd(Double_t* cd) const
voidGetCurrentPoint(Double_t* point) const
Double_tGetDCA(const AliStrLine* line) const
Double_tGetDistFromPoint(const Double_t* point) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
UShort_tGetIdPoint(Int_t i) const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
voidGetP0(Double_t* point) const
Bool_tGetParamAtRadius(Double_t r, Double_t& t1, Double_t& t2) const
voidGetSigma2P0(Double_t* sigsq) const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
voidGetWMatrix(Double_t* wmat) const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
Int_tIsParallelTo(const AliStrLine* line) const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
AliStrLine&operator=(const AliStrLine& source)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
voidPrintStatus() const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetCd(const Double_t* cd)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetIdPoints(UShort_t id1, UShort_t id2)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetP0(const Double_t* point)
voidSetSigma2P0(const Double_t* sigsq)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetWMatrix(const Double_t* wmat)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidInitDirection(const Double_t *const point, const Double_t *const cd)
voidInitTwoPoints(const Double_t *const pA, const Double_t *const pB)
voidTObject::MakeZombie()
private:
voidSetPar(const Double_t par)

Data Members

protected:
Double_tfCd[3]direction cosines
UShort_tfIdPoint[2]Identifiers of RecPoints defining the line
Double_tfP0[3]given point
Double_tfSigma2P0[3]errors on coordinates of given point
Double_tfTpar! parameter
Double_t*fWMatrix[6] weighting matrix

Class Charts

Inheritance Chart:
TObject
AliStrLine

Function documentation

AliStrLine()
 Default constructor
AliStrLine(const Double_t *const point, const Double_t *const cd, Bool_t twopoints = kFALSE, UShort_t id1 = 65535, UShort_t id2 = 65535)
 Standard constructor
 if twopoints is true:  point and cd are the 3D coordinates of
                        two points defininig the straight line
 if twopoint is false: point represents the 3D coordinates of a point
                       belonging to the straight line and cd is the
                       direction in space
AliStrLine(const Double_t *const point, const Double_t *const sig2point, const Double_t *const cd, Bool_t twopoints = kFALSE, UShort_t id1 = 65535, UShort_t id2 = 65535)
 Standard constructor
 if twopoints is true:  point and cd are the 3D coordinates of
                        two points defininig the straight line
 if twopoint is false: point represents the 3D coordinates of a point
                       belonging to the straight line and cd is the
                       direction in space
AliStrLine(const Double_t *const point, const Double_t *const sig2point, const Double_t *const wmat, const Double_t *const cd, Bool_t twopoints = kFALSE, UShort_t id1 = 65535, UShort_t id2 = 65535)
 Standard constructor
 if twopoints is true:  point and cd are the 3D coordinates of
                        two points defininig the straight line
 if twopoint is false: point represents the 3D coordinates of a point
                       belonging to the straight line and cd is the
                       direction in space
AliStrLine(const AliStrLine& source)
 copy constructor

AliStrLine& operator=(const AliStrLine& source)
 Assignment operator
void GetWMatrix(Double_t* wmat) const
 Getter for weighting matrix, as a [9] dim. array
void SetWMatrix(const Double_t* wmat)
 Setter for weighting matrix, strating from a [9] dim. array
void InitDirection(const Double_t *const point, const Double_t *const cd)
 Initialization from a point and a direction
void InitTwoPoints(const Double_t *const pA, const Double_t *const pB)
 Initialization from the coordinates of two
 points in the space
~AliStrLine()
 destructor
void PrintStatus() const
 Print current status
Int_t IsParallelTo(const AliStrLine* line) const
 returns 1 if lines are parallel, 0 if not paralel
Int_t Crossrphi(const AliStrLine* line)
 Cross 2 lines in the X-Y plane
Int_t CrossPoints(AliStrLine* line, Double_t* point1, Double_t* point2)
 Looks for the crossing point estimated starting from the
 DCA segment
Int_t Cross(AliStrLine* line, Double_t* point)
Double_t GetDCA(const AliStrLine* line) const
Returns the distance of closest approach between two lines
void GetCurrentPoint(Double_t* point) const
 Fills the array point with the current value on the line
Double_t GetDistFromPoint(const Double_t* point) const
 computes distance from point
Bool_t GetParamAtRadius(Double_t r, Double_t& t1, Double_t& t2) const
 Input: radial distance from the origin (x=0, x=0) in the bending plane
 Returns a boolean: kTRUE if the line crosses the cylinder of radius r
 and axis coincident with the z axis. It returns kFALSE otherwise
 Output: t1 and t2 in ascending order. The parameters of the line at
 the two intersections with the cylinder
void Clear(Option_t* )
{if(fWMatrix)delete[] fWMatrix; fWMatrix = 0;}
void SetP0(const Double_t* point)
{for(Int_t i=0;i<3;i++)fP0[i]=point[i];}
void SetSigma2P0(const Double_t* sigsq)
{for(Int_t i=0;i<3;i++)fSigma2P0[i]=sigsq[i];}
void SetCd(const Double_t* cd)
{for(Int_t i=0;i<3;i++)fCd[i]=cd[i];}
void SetIdPoints(UShort_t id1, UShort_t id2)
void GetP0(Double_t* point) const
{for(Int_t i=0;i<3;i++)point[i]=fP0[i];}
void GetSigma2P0(Double_t* sigsq) const
{for(Int_t i=0;i<3;i++)sigsq[i]=fSigma2P0[i];}
void GetCd(Double_t* cd) const
{for(Int_t i=0;i<3;i++)cd[i]=fCd[i];}
UShort_t GetIdPoint(Int_t i) const
void ComputePointAtT(Double_t t, Double_t* p) const
void SetPar(const Double_t par)
{fTpar = par;}