Claus, I looked a bit more into this and concluded the following a) You were right in the the code would not find more than one good track, b) However this is not due to BrModuleMtachTrack, but rather to the fact that the utility module did not copy properly the TpcTracks into BrdetectorTracks I attach the proper code here - since I am unsure if there is a public place for those ? [line with SetID()] // Find the BrTpcTrack table BrDataTable* fTpcTable = inNode->GetDataTable(Form("%s %s", kTpcTrack, GetName())); // Create a BrDetectorTrack Table BrDataTable* fTable = new BrDataTable(Form("DetectorTrack %s", GetName())); outNode->AddDataTable(fTable); if(fTpcTable){ int n = fTpcTable->GetEntries(); for(int i=0;i<n;i++){ BrTpcTrackCandidate* bestTrack = (BrTpcTrackCandidate*) fTpcTable->At(i); BrDetectorTrack *track = new BrDetectorTrack(); track->SetPos(bestTrack->GetPos()); track->SetAlpha(bestTrack->GetSlope()); track->SetQuality(bestTrack->GetQuality()); track->SetID(i); fTable->Add(track); } } ------------------------------------------------------ Flemming Videbaek Physics Department Brookhaven National Laboratory tlf: 631-344-4106 fax 631-344-1334 e-mail: videbaek@bnl.gov
This archive was generated by hypermail 2b30 : Fri Aug 24 2001 - 14:57:53 EDT