BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrLocalTrack


class description - source file - inheritance tree

class BrLocalTrack : public TObject


    public:
BrLocalTrack BrLocalTrack() BrLocalTrack BrLocalTrack(BrLocalTrack* loctra_p) BrLocalTrack BrLocalTrack(BrLocalTrack&) virtual void ~BrLocalTrack() virtual void AddDetectorHit(const BrDetectorHit* hitp) virtual void AddTrackHit(BrTrackHit* trahit_p) virtual void AddVec(const Float_t* vec) static TClass* Class() virtual void Fit() virtual Float_t GetChisq() const virtual Float_t** GetCovarianceMatrix() const virtual BrDetectorHit* GetDetectorHitAt(Int_t i) const virtual BrVector3D GetDeviationFromFit(const BrDetectorHit *const detHit) const virtual Int_t GetFlg() const virtual TObjArray* GetHitList() virtual Int_t GetID() const virtual Int_t GetNhit() const virtual const Float_t* GetPos() const virtual const Float_t* GetPosError() const virtual Int_t GetStat() const virtual BrTrackHit2D* GetTr1() const virtual BrTrackHit2D* GetTr2() const virtual Int_t GetTrackEntries() const virtual BrTrackHit* GetTrackHitAt(Int_t i) const virtual const Float_t* GetVec() const virtual const Float_t* GetVecError() const virtual BrVirtualTrack* GetVtrack() const virtual Bool_t HasAllHitsBetween(Int_t index, Float_t low, Float_t high) const virtual Bool_t HasHitInRow(Int_t rowNo) const virtual void IncNhit() virtual TClass* IsA() const virtual Bool_t IsBad() virtual Bool_t IsOk() virtual void MarkAsBad() virtual Float_t RelativeOverlap(BrLocalTrack* t2, Float_t zl, Float_t r) virtual void RemoveDetectorHit(BrDetectorHit* detHit) virtual void RemoveTrackHit(BrTrackHit* trahit) virtual void SetChisq(Float_t x) virtual void SetFlg(Int_t i) virtual void SetID(Int_t i) virtual void SetNhit(Int_t i) virtual void SetPos(const Float_t* pos) virtual void SetPosError(const Float_t* error) virtual void SetStat(Int_t i) virtual void SetTr1(BrTrackHit2D* tra2d) virtual void SetTr2(BrTrackHit2D* tra2d) virtual void SetVec(const Float_t* vec) virtual void SetVecError(const Float_t* error) virtual void SetVtrack(BrVirtualTrack* vtrack) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Int_t fID Id for this local track. Float_t* fPos [3] position for local track Float_t* fPosError [3] position for local track Float_t* fVec [3] direction of track Float_t* fVecError [3] direction of track Int_t fNhit #hits associated with the track Int_t fFlg ! local variable used during track finding. Float_t** fCovar ! covariance matrix for fit. Float_t fChisq Chisq of Track Fit TObjArray fDetectorHits container for DetectorHits map entries. BrVirtualTrack* fVtrack !pointer to track candidate group BrTrackHit2D* fTr1 ! BrTrackHit2D* fTr2 ! Int_t fStatus Status of track from list of enums. TObjArray fTrahit ! container for TraHit map entries. Used locally (DC tracking) public:
static const BrLocalTrack::Status kOk static const BrLocalTrack::Status kBad

Class Description


BrLocalTrack()

BrLocalTrack(BrLocalTrack* loctra_p)
 Copy constructor


~BrLocalTrack()
Just clear these hit arrays because they are the responsibility of
someone else to delete them.

void Fit()
 Fit the localtrack to the hits
 Fill postions and vector in track as well as chisq and covariance matrix


Float_t RelativeOverlap(BrLocalTrack* t2, Float_t zl, Float_t r)
 Calculate the relative overlap between "this" track and the given track

 Parameters:
   In:  dt_p   pointer to the other track
        zl     length of detector (in local z direction)
        r      radius of cylinder around tracks

 Algorithm:
   A cylinder of radius r is put around each track.
   The relative overlap is defined as the ratio between
     the volume of the overlap region of two cylinders
   and
     the volume of the cylinder around "this" track is calculated.
   The cylinders are distorted in order to have a circular intersection
   between the cylinders and planes at arbitrary z.

 Requires:
   The tracks are parametrized as:
     x = ax * z + bx
     y = ay * z + by


BrVector3D GetDeviationFromFit(const BrDetectorHit *const detHit) const
 Returns a vector with the deviation in x and y of the hit from
 the fitted line.
 The deviation is calculated for the same z
 and is given as fit - hit.

Bool_t HasHitInRow(Int_t rowNo) const
 Look through the hits to see if there is hit in the given
 row. returns kTRUE if it finds a hit

Bool_t HasAllHitsBetween(Int_t index,Float_t low, Float_t high) const
 Look through the hits to see if the index component of all
 position coordinates is between low and high
 returns kTRUE if it does not find anyone outside
 Useful if you only want tracks in a certain region of the TPC, no
 matter if it is pad, time or row.

void RemoveDetectorHit(BrDetectorHit *detHit)



Inline Functions


                   void AddDetectorHit(const BrDetectorHit* hitp)
                   void AddTrackHit(BrTrackHit* trahit_p)
                   void AddVec(const Float_t* vec)
                Float_t GetChisq() const
              Float_t** GetCovarianceMatrix() const
         BrDetectorHit* GetDetectorHitAt(Int_t i) const
                  Int_t GetFlg() const
             TObjArray* GetHitList()
                  Int_t GetID() const
                  Int_t GetNhit() const
         const Float_t* GetPos() const
         const Float_t* GetPosError() const
                  Int_t GetStat() const
          BrTrackHit2D* GetTr1() const
          BrTrackHit2D* GetTr2() const
                  Int_t GetTrackEntries() const
            BrTrackHit* GetTrackHitAt(Int_t i) const
         const Float_t* GetVec() const
         const Float_t* GetVecError() const
        BrVirtualTrack* GetVtrack() const
                   void IncNhit()
                 Bool_t IsBad()
                 Bool_t IsOk()
                   void MarkAsBad()
                   void RemoveTrackHit(BrTrackHit* trahit)
                   void SetChisq(Float_t x)
                   void SetID(Int_t i)
                   void SetFlg(Int_t i)
                   void SetNhit(Int_t i)
                   void SetPos(const Float_t* pos)
                   void SetPosError(const Float_t* error)
                   void SetStat(Int_t i)
                   void SetTr1(BrTrackHit2D* tra2d)
                   void SetTr2(BrTrackHit2D* tra2d)
                   void SetVec(const Float_t* vec)
                   void SetVecError(const Float_t* error)
                   void SetVtrack(BrVirtualTrack* vtrack)
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
           BrLocalTrack BrLocalTrack(BrLocalTrack&)

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on 2001/06/21 14:55:03 $ by hagel $

Validate HTML
Validate CSS