|
//____________________________________________________________________ // // // // 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++) { // BrTMrsFTrackMatch* mtc = (BrTMrsFTrackMatch*)match->At(m); // // BrFfsTrack* track = 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 (((BrTMrsFDig*)h1hits->At(h))->GetSlatno() != mtc->GetHitId()) // continue; // h1Hit = (BrTMrsFDig*)h1hits->At(t); // } // // for (Int_t h = 0; h < h2hits->GetEntries(); h++) { // if (((BrTMrsFDig*)h2hits->At(h))->GetSlatno() != mtc->GetHit2Id()) // continue; // h2Hit = (BrTMrsFDig*)h2hits->At(t); // } // } //____________________________________________________________________ // // $Id: BrTMrsFTrackMatch.cxx,v 1.1 2002/04/23 15:34:11 videbaek Exp $ #if !defined BRAT_BrIostream #include <BrIostream.h> #endif #ifndef BRAT_BrTMrsFTrackMatch #include "BrTMrsFTrackMatch.h" #endif #ifndef ROOT_TString #include "TString.h" #endif //____________________________________________________________________ ClassImp(BrTMrsFTrackMatch); //____________________________________________________________________ BrTMrsFTrackMatch::BrTMrsFTrackMatch() : TObject() { fLength=0.0; fT0=0; fTrackId=0; } void BrTMrsFTrackMatch::SetMatching(Int_t trk, Float_t time, Float_t length){ // fLength=length; fT0=time; fTrackId=trk; } //____________________________________________________________________ void BrTMrsFTrackMatch::Print(Option_t* option) const { // prints out track id and tof id // Options: // M -> mid rapidity // F -> FFS // B -> BFS TString op(option); op.ToUpper(); cout << " ----- TMrsF-Track Match ----- " << endl; cout << " Track id : " << GetTrackId() << endl; cout << " Time : " << fT0 << endl; cout << " Length : " << fLength << endl; } //____________________________________________________________________ // // $Log: BrTMrsFTrackMatch.cxx,v $ // Revision 1.1 2002/04/23 15:34:11 videbaek // Add TMrsFTrackMatching object. Used for pp running only. // // // |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|