class THaTrack: public TObject


 A generic track.

Function Members (Methods)

THaTrack(const THaTrack&)
THaTrack(Double_t x, Double_t y, Double_t theta, Double_t phi, THaTrackingDetector* creator = 0, THaTrackID* id = 0, THaPIDinfo* pid = 0)
voidTObject::AbstractMethod(const char* method) const
Int_tAddCluster(THaCluster* c)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidClear(Option_t* opt = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tCompare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
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
Double_tGetBeta() const
Double_tGetChi2() const
THaCluster*GetCluster(Int_t i)
THaTrackingDetector*GetCreator() const
Double_tGetdBeta() const
Double_tGetDp() const
Double_tGetDPhi() const
virtual Option_t*TObject::GetDrawOption() const
Double_tGetDTheta() const
Double_tGetdTime() const
static Long_tTObject::GetDtorOnly()
Double_tGetDX() const
Double_tGetDY() const
UInt_tGetFlag() const
virtual const char*TObject::GetIconName() const
THaTrackID*GetID() const
Double_tGetLabPx() const
Double_tGetLabPy() const
Double_tGetLabPz() const
virtual const char*TObject::GetName() const
Int_tGetNclusters() const
Int_tGetNDoF() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Double_tGetP() const
Double_tGetPathLen() const
Double_tGetPhi() const
THaPIDinfo*GetPIDinfo() const
Double_tGetRPhi() const
Double_tGetRTheta() const
Double_tGetRX() const
Double_tGetRY() const
Double_tGetTheta() const
Double_tGetTime() const
virtual const char*TObject::GetTitle() const
Double_tGetTPhi() const
Double_tGetTTheta() const
Double_tGetTX() const
Double_tGetTY() const
UInt_tGetType() const
virtual UInt_tTObject::GetUniqueID() const
Double_tGetVertexX() const
Double_tGetVertexY() const
Double_tGetVertexZ() const
Double_tGetX() const
Double_tGetX(Double_t z) const
Double_tGetY() const
Double_tGetY(Double_t z) const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
boolHasDet() const
boolHasFP() const
virtual ULong_tTObject::Hash() const
boolHasRot() const
boolHasTarget() const
boolHasVertex() 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
virtual Bool_tIsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
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)
THaTrack&operator=(const THaTrack&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* opt = "") 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 = "")
voidSet(Double_t x, Double_t y, Double_t theta, Double_t phi)
voidSetBeta(Double_t beta)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetChi2(Double_t chi2, Int_t ndof)
voidSetCreator(THaTrackingDetector* d)
voidSetD(Double_t x, Double_t y, Double_t theta, Double_t phi)
voidSetdBeta(Double_t db)
voidSetDp(Double_t dp)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
voidSetdTime(Double_t dt)
static voidTObject::SetDtorOnly(void* obj)
voidSetFlag(UInt_t flag)
voidSetID(THaTrackID* id)
voidSetMomentum(Double_t p)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetPathLen(Double_t pathl)
voidSetPIDinfo(THaPIDinfo* pid)
voidSetPvect(const TVector3& pvect)
voidSetR(Double_t x, Double_t y, Double_t theta, Double_t phi)
voidSetTarget(Double_t x, Double_t y, Double_t theta, Double_t phi)
voidSetTime(Double_t time)
voidSetType(UInt_t flag)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetVertex(const TVector3& vert)
voidSetVertex(Double_t x, Double_t y, Double_t z)
voidSetVertexError(const TVector3& err)
voidSetVertexError(Double_t x, Double_t y, Double_t z)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& 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
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const

Data Members

enum { kHasDet
enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
Double_tfBetabeta of track
Double_tfChi2goodness of track fit
THaCluster*fClusters[4]! Clusters of this track
THaTrackingDetector*fCreator! Detector creating this track
Double_tfDPhiTangent of DCS Phi
Double_tfDThetaTangent of DCS Theta
Double_tfDXx position in DCS
Double_tfDYy position in DCS
Double_tfDpdp/p_center -- fractional change in momentum
UInt_tfFlagGeneral status flag (for use by tracking det.)
THaTrackID*fID! Track identifier
Int_tfNDoFnumber of hits on the track contributing to chi2
Int_tfNclusters! Number of clusters
Double_tfPTrack momentum (GeV)
THaPIDinfo*fPIDinfo! Particle ID information for this track
Double_tfPathlpathlength from target (z=0) (meters)
Double_tfPhiTangent of TRANSPORT Phi (y')
TVector3fPvectMomentum vector at target in lab system (GeV)
Double_tfRPhiTangent of TRANSPORT Phi (y')
Double_tfRThetaTangent of TRANSPORT Theta (x')
Double_tfRXx position in focal plane (m)
Double_tfRYy position in focal plane (m)
Double_tfTPhiTangent of TRANSPORT Phi (in-plane angle) at target
Double_tfTThetaTangent of TRANSPORT Theta (out-of-plane angle) at target
Double_tfTXx position at target (m)
Double_tfTYy position at target (m)
Double_tfThetaTangent of TRANSPORT Theta (x')
Double_tfTimetime of track at focal plane (s)
UInt_tfTypeFlag indicating which vectors reconstructed
TVector3fVertexVertex location in lab (m) valid if fHasVertex
TVector3fVertexErrorUncertainties in fVertex coordinates.
Double_tfXx position in TRANSPORT plane (m)
Double_tfYy position in TRANSPORT plane (m)
Double_tfdBetauncertainty in fBeta
Double_tfdTimeuncertainty in fTime
static const Double_tkBig

Class Charts

Inheritance Chart:

Function documentation

 Destructor. Delete the track ID associated with this track.
void Clear(Option_t* opt = "")
 If *opt == 'F' then reset all track quantities, else just
 delete memory managed by this track.
 (We need this behavior so we can Clear("C") the track TClonesArray
 without the overhead of clearing everything.)
Int_t AddCluster(THaCluster* c)
 Add a cluster to the internal list of pointers.
 (Clusters are memory-managed by tracking detectors, not by tracks.)
void Print(Option_t* opt = "") const
 Print track parameters
Int_t Compare(const TObject* obj) const
 compare two tracks by chi2/ndof
 for track array sorting
void SetD(Double_t x, Double_t y, Double_t theta, Double_t phi)
 set the coordinates in the rotated focal-plane frame
void SetR(Double_t x, Double_t y, Double_t theta, Double_t phi)
 set the coordinates in the rotated focal-plane frame
void SetTarget(Double_t x, Double_t y, Double_t theta, Double_t phi)
 set the coordinates in the target frame
THaTrack(const THaTrack& )
 Default constructor
{ memset(fClusters,0,kMAXCL*sizeof(THaCluster*)); }
THaTrack(Double_t x, Double_t y, Double_t theta, Double_t phi, THaTrackingDetector* creator = 0, THaTrackID* id = 0, THaPIDinfo* pid = 0)
 Constructor with fp coordinates
 FIXME: this really should be setting detector coordinates
THaTrackingDetector* GetCreator()
{ return fCreator; }
Int_t GetNclusters()
{ return fNclusters; }
THaCluster* GetCluster(Int_t i)
{ return fClusters[i]; }
UInt_t GetFlag()
{ return fFlag; }
UInt_t GetType()
{ return fType; }
THaTrackID* GetID()
{ return fID; }
Double_t GetP()
{ return fP; }
Double_t GetPhi()
{ return fPhi; }
THaPIDinfo* GetPIDinfo()
{ return fPIDinfo; }
Double_t GetTheta()
{ return fTheta; }
Double_t GetX(Double_t z) const
{ return fX; }
Double_t GetY(Double_t z) const
{ return fY; }
Double_t GetX(Double_t z) const
{ return fX + z*fTheta; }
Double_t GetY(Double_t z) const
{ return fY + z*fPhi; }
Double_t GetChi2()
{ return fChi2; }
Int_t GetNDoF()
{ return fNDoF; }
Double_t GetDX()
{ return fDX; }
Double_t GetDY()
{ return fDY; }
Double_t GetDTheta()
{ return fDTheta; }
Double_t GetDPhi()
{ return fDPhi; }
Double_t GetRX()
{ return fRX; }
Double_t GetRY()
{ return fRY; }
Double_t GetRTheta()
{ return fRTheta; }
Double_t GetRPhi()
{ return fRPhi; }
Double_t GetTX()
{ return fTX; }
Double_t GetTY()
{ return fTY; }
Double_t GetTTheta()
{ return fTTheta; }
Double_t GetTPhi()
{ return fTPhi; }
Double_t GetDp()
{ return fDp; }
Double_t GetLabPx()
{ return fPvect.X(); }
Double_t GetLabPy()
{ return fPvect.Y(); }
Double_t GetLabPz()
{ return fPvect.Z(); }
Double_t GetVertexX()
{ return fVertex.X(); }
Double_t GetVertexY()
{ return fVertex.Y(); }
Double_t GetVertexZ()
{ return fVertex.Z(); }
Double_t GetPathLen()
{ return fPathl; }
TVector3& GetPvect()
{ return fPvect; }
TVector3& GetVertex()
{ return fVertex; }
TVector3& GetVertexError()
{ return fVertexError; }
Double_t GetTime()
{ return fTime; }
Double_t GetdTime()
{ return fdTime; }
Double_t GetBeta()
{ return fBeta; }
Double_t GetdBeta()
{ return fdBeta; }
bool HasDet()
{ return (fType&kHasDet); }
bool HasFP()
{ return (fType&kHasFP); }
bool HasRot()
{ return (fType&kHasRot); }
bool HasTarget()
{ return (fType&kHasTarget); }
bool HasVertex()
{ return (fType&kHasVertex); }
void SetID(THaTrackID* id)
{ fID = id; }
void SetFlag(UInt_t flag)
{ fFlag = flag; }
void SetType(UInt_t flag)
{ fType = flag; }
void SetMomentum(Double_t p)
{ fP = p; }
void SetDp(Double_t dp)
{ fDp = dp; }
void Set(Double_t x, Double_t y, Double_t theta, Double_t phi)
{ fX = x; fY = y; fTheta = theta; fPhi = phi; fType |= kHasFP; }
void SetPathLen(Double_t pathl)
{ fPathl = pathl; /* meters */ }
void SetTime(Double_t time)
{ fTime = time; /* seconds */ }
void SetdTime(Double_t dt)
{ fdTime = dt; /* seconds */ }
void SetBeta(Double_t beta)
{ fBeta = beta; }
void SetdBeta(Double_t db)
{ fdBeta = db; }
void SetChi2(Double_t chi2, Int_t ndof)
{ fChi2=chi2; fNDoF=ndof; }
void SetCreator(THaTrackingDetector* d)
{ fCreator = d; }
void SetPIDinfo(THaPIDinfo* pid)
{ fPIDinfo = pid; }
void SetPvect(const TVector3& pvect)
{ fPvect = pvect; }
void SetVertex(const TVector3& vert)
{ fVertex = vert; fType |= kHasVertex; }
void SetVertex(Double_t x, Double_t y, Double_t z)
{ fVertex.SetXYZ( x, y, z ); fType |= kHasVertex; }
void SetVertexError(const TVector3& err)
{ fVertexError = err; }
void SetVertexError(Double_t x, Double_t y, Double_t z)
{ fVertexError.SetXYZ( x, y, z ); }
Bool_t IsSortable()
{ return kTRUE; }

Last change: Sat Nov 7 21:26:53 2009
Last generated: 2009-11-07 21:26

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.