|
//____________________________________________________________________ // // // // 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++) { // BrTd1TrackMatch* mtc = (BrTd1TrackMatch*)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 (((BrTd1Dig*)h1hits->At(h))->GetSlatno() != mtc->GetHitId()) // continue; // h1Hit = (BrTd1Dig*)h1hits->At(t); // } // // for (Int_t h = 0; h < h2hits->GetEntries(); h++) { // if (((BrTd1Dig*)h2hits->At(h))->GetSlatno() != mtc->GetHit2Id()) // continue; // h2Hit = (BrTd1Dig*)h2hits->At(t); // } // } //____________________________________________________________________ // // $Id: BrTd1TrackMatch.cxx,v 1.1 2002/02/08 21:33:43 videbaek Exp $ #if !defined BRAT_BrIostream #include <BrIostream.h> #endif #ifndef BRAT_BrTd1TrackMatch #include "BrTd1TrackMatch.h" #endif #ifndef ROOT_TString #include "TString.h" #endif //------- base class -------- //____________________________________________________________________ ClassImp(BrTd1TrackMatch); //____________________________________________________________________ BrTd1TrackMatch::BrTd1TrackMatch() : TObject() { fSlat=0; fLength=0.0; fT0=0; fTrackId=0; } void BrTd1TrackMatch::SetMatching(Int_t trk, Int_t slat, Float_t time, Float_t length){ // fSlat=slat; fLength=length; fT0=time; fTrackId=trk; } //____________________________________________________________________ void BrTd1TrackMatch::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 << " ----- Td1-Track Match ----- " << endl; cout << " Track id : " << GetTrackId() << endl; cout << " Slat : " << fSlat << endl; cout << " Time : " << fT0 << endl; } //____________________________________________________________________ // // $Log: BrTd1TrackMatch.cxx,v $ // Revision 1.1 2002/02/08 21:33:43 videbaek // Td1 trigger counter matching object added // // |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|