THelix Class Reference

#include <THelix.h>

Inheritance diagram for THelix:

TPolyLine3D TPolyLine3D TAtt3D TAttLine TObject TAtt3D TAttLine TObject TAtt3D TAttLine TObject TAtt3D TAttLine TObject List of all members.

Public Member Functions

 THelix ()
 THelix (Double_t x, Double_t y, Double_t z, Double_t vx, Double_t vy, Double_t vz, Double_t w)
 THelix (Double_t *xyz, Double_t *v, Double_t w, Double_t *range=0, EHelixRangeType rtype=kHelixZ, Double_t *axis=0)
 THelix (const THelix &helix)
virtual ~THelix ()
virtual void Copy (TObject &helix) const
virtual void Draw (Option_t *option="")
Option_tGetOption () const
virtual void Print (Option_t *option="") const
virtual void SavePrimitive (ostream &out, Option_t *option="")
virtual void SetOption (Option_t *option="")
virtual void SetAxis (Double_t *axis)
virtual void SetAxis (Double_t x, Double_t y, Double_t z)
virtual void SetRange (Double_t *range, EHelixRangeType rtype=kHelixZ)
virtual void SetRange (Double_t r1, Double_t r2, EHelixRangeType rtype=kHelixZ)
void SetHelix (Double_t *xyz, Double_t *v, Double_t w, Double_t *range=0, EHelixRangeType type=kUnchanged, Double_t *axis=0)
 THelix ()
 THelix (Double_t x, Double_t y, Double_t z, Double_t vx, Double_t vy, Double_t vz, Double_t w)
 THelix (Double_t *xyz, Double_t *v, Double_t w, Double_t *range=0, EHelixRangeType rtype=kHelixZ, Double_t *axis=0)
 THelix (const THelix &helix)
virtual ~THelix ()
virtual void Copy (TObject &helix) const
virtual void Draw (Option_t *option="")
Option_tGetOption () const
virtual void Print (Option_t *option="") const
virtual void SavePrimitive (ostream &out, Option_t *option="")
virtual void SetOption (Option_t *option="")
virtual void SetAxis (Double_t *axis)
virtual void SetAxis (Double_t x, Double_t y, Double_t z)
virtual void SetRange (Double_t *range, EHelixRangeType rtype=kHelixZ)
virtual void SetRange (Double_t r1, Double_t r2, EHelixRangeType rtype=kHelixZ)
void SetHelix (Double_t *xyz, Double_t *v, Double_t w, Double_t *range=0, EHelixRangeType type=kUnchanged, Double_t *axis=0)

Protected Member Functions

THelixoperator= (const THelix &)
void SetRotMatrix ()
Double_t FindClosestPhase (Double_t phi0, Double_t cosine)
THelixoperator= (const THelix &)
void SetRotMatrix ()
Double_t FindClosestPhase (Double_t phi0, Double_t cosine)

Protected Attributes

Double_t fX0
Double_t fY0
Double_t fZ0
Double_t fVt
Double_t fPhi0
Double_t fVz
Double_t fW
Double_t fAxis [3]
TRotMatrixfRotMat
Double_t fRange [2]
TRotMatrixfRotMat

Static Protected Attributes

static Int_t fgMinNSeg

Detailed Description

Definition at line 40 of file THelix.h.


Constructor & Destructor Documentation

THelix::THelix (  ) 

Definition at line 118 of file THelix.cxx.

References fAxis, fPhi0, fRange, fRotMat, fVt, fVz, fW, fX0, fY0, and fZ0.

THelix::THelix ( Double_t  x,
Double_t  y,
Double_t  z,
Double_t  vx,
Double_t  vy,
Double_t  vz,
Double_t  w 
)

Definition at line 132 of file THelix.cxx.

References TPolyLine3D::fOption, fRotMat, kHelixZ, p, and SetHelix().

THelix::THelix ( Double_t xyz,
Double_t v,
Double_t  w,
Double_t range = 0,
EHelixRangeType  rtype = kHelixZ,
Double_t axis = 0 
)

Definition at line 154 of file THelix.cxx.

References TPolyLine3D::fOption, fRotMat, and SetHelix().

THelix::THelix ( const THelix helix  ) 

Definition at line 232 of file THelix.cxx.

References fRotMat.

THelix::~THelix (  )  [virtual]

Definition at line 223 of file THelix.cxx.

References fRotMat.

THelix::THelix (  ) 

THelix::THelix ( Double_t  x,
Double_t  y,
Double_t  z,
Double_t  vx,
Double_t  vy,
Double_t  vz,
Double_t  w 
)

THelix::THelix ( Double_t xyz,
Double_t v,
Double_t  w,
Double_t range = 0,
EHelixRangeType  rtype = kHelixZ,
Double_t axis = 0 
)

THelix::THelix ( const THelix helix  ) 

virtual THelix::~THelix (  )  [virtual]


Member Function Documentation

THelix & THelix::operator= ( const THelix  )  [protected]

Definition at line 201 of file THelix.cxx.

References fAxis, fPhi0, fRange, fRotMat, fVt, fVz, fW, fX0, fY0, fZ0, i, and TPolyLine3D::operator=().

void THelix::SetRotMatrix (  )  [protected]

Definition at line 564 of file THelix.cxx.

References TMath::ACos(), TMath::ATan2(), fAxis, fRotMat, and TMath::Pi().

Referenced by SetAxis().

Double_t THelix::FindClosestPhase ( Double_t  phi0,
Double_t  cosine 
) [protected]

Definition at line 593 of file THelix.cxx.

References TMath::Abs(), TMath::ACos(), TMath::Pi(), and pi.

Referenced by SetRange().

void THelix::Copy ( TObject helix  )  const [virtual]

Reimplemented from TPolyLine3D.

Definition at line 242 of file THelix.cxx.

References TAttLine::Copy(), TObject::Copy(), fAxis, TPolyLine3D::fOption, fPhi0, fRange, fRotMat, fVt, fVz, fW, fX0, fY0, fZ0, i, and kHelixT.

void THelix::Draw ( Option_t option = ""  )  [virtual]

Reimplemented from TPolyLine3D.

Definition at line 276 of file THelix.cxx.

References TObject::AppendPad().

Option_t* THelix::GetOption (  )  const [inline, virtual]

Reimplemented from TPolyLine3D.

Definition at line 74 of file THelix.h.

References TString::Data(), and TPolyLine3D::fOption.

void THelix::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TPolyLine3D.

Definition at line 285 of file THelix.cxx.

References TPolyLine3D::fN.

void THelix::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TPolyLine3D.

Definition at line 294 of file THelix.cxx.

References xmlio::Class, TROOT::ClassSaved(), TMath::Cos(), fAxis, TPolyLine3D::fOption, fPhi0, fRange, fVt, fVz, fW, fX0, fY0, fZ0, gROOT, kHelixT, TAttLine::SaveLineAttributes(), and TMath::Sin().

virtual void THelix::SetOption ( Option_t option = ""  )  [inline, virtual]

Reimplemented from TPolyLine3D.

Definition at line 77 of file THelix.h.

References TPolyLine3D::fOption, and option.

void THelix::SetAxis ( Double_t axis  )  [virtual]

Definition at line 318 of file THelix.cxx.

References TObject::Error(), fAxis, len, SetRotMatrix(), and TMath::Sqrt().

Referenced by SetAxis().

void THelix::SetAxis ( Double_t  x,
Double_t  y,
Double_t  z 
) [virtual]

Definition at line 343 of file THelix.cxx.

References axis, and SetAxis().

void THelix::SetRange ( Double_t range,
EHelixRangeType  rtype = kHelixZ 
) [virtual]

Definition at line 353 of file THelix.cxx.

References a, TMath::Abs(), TMath::Cos(), TObject::Error(), fgMinNSeg, FindClosestPhase(), fPhi0, fRange, fRotMat, fVt, fVz, fW, fX0, fY0, fZ0, TRotMatrix::GetMatrix(), i, kHelixT, kHelixX, kHelixY, kHelixZ, kLabX, kLabY, kLabZ, m, TMath::Pi(), TPolyLine3D::SetPoint(), TPolyLine3D::SetPolyLine(), TMath::Sin(), and t.

Referenced by SetRange().

void THelix::SetRange ( Double_t  r1,
Double_t  r2,
EHelixRangeType  rtype = kHelixZ 
) [virtual]

Definition at line 546 of file THelix.cxx.

References SetRange().

void THelix::SetHelix ( Double_t xyz,
Double_t v,
Double_t  w,
Double_t range = 0,
EHelixRangeType  type = kUnchanged,
Double_t axis = 0 
)

Referenced by THelix().

THelix& THelix::operator= ( const THelix  )  [protected]

void THelix::SetRotMatrix (  )  [protected]

Double_t THelix::FindClosestPhase ( Double_t  phi0,
Double_t  cosine 
) [protected]

virtual void THelix::Copy ( TObject helix  )  const [virtual]

Reimplemented from TPolyLine3D.

virtual void THelix::Draw ( Option_t option = ""  )  [virtual]

Reimplemented from TPolyLine3D.

Option_t* THelix::GetOption (  )  const [inline, virtual]

Reimplemented from TPolyLine3D.

Definition at line 74 of file THelix.h.

References TString::Data(), and TPolyLine3D::fOption.

virtual void THelix::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TPolyLine3D.

virtual void THelix::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TPolyLine3D.

virtual void THelix::SetOption ( Option_t option = ""  )  [inline, virtual]

Reimplemented from TPolyLine3D.

Definition at line 77 of file THelix.h.

References TPolyLine3D::fOption, and option.

virtual void THelix::SetAxis ( Double_t axis  )  [virtual]

virtual void THelix::SetAxis ( Double_t  x,
Double_t  y,
Double_t  z 
) [virtual]

virtual void THelix::SetRange ( Double_t range,
EHelixRangeType  rtype = kHelixZ 
) [virtual]

virtual void THelix::SetRange ( Double_t  r1,
Double_t  r2,
EHelixRangeType  rtype = kHelixZ 
) [virtual]

void THelix::SetHelix ( Double_t xyz,
Double_t v,
Double_t  w,
Double_t range = 0,
EHelixRangeType  type = kUnchanged,
Double_t axis = 0 
)


Member Data Documentation

Double_t THelix::fX0 [protected]

Definition at line 43 of file THelix.h.

Referenced by Copy(), operator=(), SavePrimitive(), SetRange(), and THelix().

Double_t THelix::fY0 [protected]

Definition at line 44 of file THelix.h.

Referenced by Copy(), operator=(), SavePrimitive(), SetRange(), and THelix().

Double_t THelix::fZ0 [protected]

Definition at line 45 of file THelix.h.

Referenced by Copy(), operator=(), SavePrimitive(), SetRange(), and THelix().

Double_t THelix::fVt [protected]

Definition at line 46 of file THelix.h.

Referenced by Copy(), operator=(), SavePrimitive(), SetRange(), and THelix().

Double_t THelix::fPhi0 [protected]

Definition at line 47 of file THelix.h.

Referenced by Copy(), operator=(), SavePrimitive(), SetRange(), and THelix().

Double_t THelix::fVz [protected]

Definition at line 48 of file THelix.h.

Referenced by Copy(), operator=(), SavePrimitive(), SetRange(), and THelix().

Double_t THelix::fW [protected]

Definition at line 49 of file THelix.h.

Referenced by Copy(), operator=(), SavePrimitive(), SetRange(), and THelix().

Double_t THelix::fAxis [protected]

Definition at line 50 of file THelix.h.

Referenced by Copy(), operator=(), SavePrimitive(), SetAxis(), SetRotMatrix(), and THelix().

TRotMatrix* THelix::fRotMat [protected]

Definition at line 51 of file THelix.h.

Referenced by Copy(), operator=(), SetRange(), SetRotMatrix(), THelix(), and ~THelix().

Double_t THelix::fRange [protected]

Definition at line 52 of file THelix.h.

Referenced by Copy(), operator=(), SavePrimitive(), SetRange(), and THelix().

static Int_t THelix::fgMinNSeg [static, protected]

Definition at line 59 of file THelix.h.

Referenced by SetRange().

TRotMatrix* THelix::fRotMat [protected]

Definition at line 51 of file THelix.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:41:32 2011 for ROOT_528-00b_version by  doxygen 1.5.1