BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrTofTrackMatch


class description - source file - inheritance tree

class BrTofTrackMatch : public TObject


    public:
BrTofTrackMatch BrTofTrackMatch() BrTofTrackMatch BrTofTrackMatch(BrTofTrackMatch&) virtual void ~BrTofTrackMatch() static TClass* Class() Int_t GetHit2Id() const Int_t GetHitId() const Int_t GetPanelId() const Int_t GetTrack2Id() const Int_t GetTrackId() const virtual TClass* IsA() const virtual void Print(Option_t* option) const void SetMatching(Int_t trk, Int_t hit1, Int_t id2 = 0, Int_t hit2 = 0) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members




Class Description

 Simple class that contains the track id, panel id, tof slat id
 of the global track matching a tof hit in X (matching within
 a certain width defined in BrTofTrackMatchModule)

 the information is stored in the fUniqueID by byte
 shifting:

 fUniqueID =    tof hit 2 slat
             + (tof hit slat << 8)
             + (panel id     << 16)
             + (track id     << 24)

 here, tof hit 2 slat is H2 hit slat for FFS, H1 hit slat for BFS
       tof hit slat is H1 hit slat for FFS, H2 hit slat for BFS
       panel id is 0 for FFS and BFS, tofw panel for MRS (0, 1, ...)
       track id is Br[FFS,Bfs,MRS]Track::GetId()

 in a module using this object, one has only to
 compare the ids returned with the object id:

 example:

 BrDataTable* ffsTrks = node->GetDataTable("FfsTracks");
 BrDataTable* h1hits  = node->GetDataTable("DigTof TOF1");
 BrDataTable* h2hits  = node->GetDataTable("DigTof TOF2");
 BrDataTable* match   = node->GetDataTable("FFSMatch");

 for (Int_t m = 0; m < match->GetEntries(); m++) {
   BrTofTrackMatch* mtc = (BrTofTrackMatch*)match->At(m);

   BrFfsTrack* track = 0;
   BrTofDig*   h1Hit = 0;
   BrTofDig*   h2Hit = 0;

   for (Int_t t = 0; t < ffsTrks->GetEntries(); t++) {
     if (((BrFfsTrack*)ffsTrks->At(t))->GetId() != mtc->GetTrackId())
       continue;
     track = (BrFfsTrack*)ffsTrks->At(t);
   }

   for (Int_t h = 0; h < h1hits->GetEntries(); h++) {
     if (((BrTofDig*)h1hits->At(h))->GetSlatno() != mtc->GetHitId())
       continue;
     h1Hit = (BrTofDig*)h1hits->At(t);
   }

   for (Int_t h = 0; h < h2hits->GetEntries(); h++) {
     if (((BrTofDig*)h2hits->At(h))->GetSlatno() != mtc->GetHit2Id())
       continue;
     h2Hit = (BrTofDig*)h2hits->At(t);
   }
 }

BrTofTrackMatch() : TObject()
 initialize the matching id

void SetMatching(Int_t trk, Int_t slat, Int_t pan = 0, Int_t slat2 = 0)

Int_t GetTrackId() const

Int_t GetPanelId() const

Int_t GetTrack2Id() const

Int_t GetHitId() const

Int_t GetHit2Id() const

void Print(Option_t* option) const
 prints out track id and tof id
 Options:
 M -> mid rapidity
 F -> FFS
 B -> BFS



Inline Functions


                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
        BrTofTrackMatch BrTofTrackMatch(BrTofTrackMatch&)
                   void ~BrTofTrackMatch()

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on 2001/11/07 10:29:54 $ by ouerdane $

Validate HTML
Validate CSS