Hi all! I have the following problem in Root: When I try to invoke the following function: void findGoodTracks(LCDEvent *event, TObjArray *goodTrackList, UInt_t *MCPartArray) { const Double_t cosCut=0.9; const Double_t pCut=0.2; Int_t nTracks = event->Tracks()->GetEntries(); int count = 0; LCDTrack *trk; LCDMcPart part; TVector3 ptrk; MCPartArray = new UInt_t[nTracks]; for (int itrk=0; itrk<nTracks; itrk++) { trk = (LCDTrack *)(event.Tracks()->At(itrk)); ptrk=trk->GetMomentumVector(0.0); if( (TMath::Abs(ptrk.CosTheta())) < cosCut && ptrk.Mag() > pCut) { MCPartArray[count++] = trk->GetParticle(); part = (LCDMcPart *)event.MCparticles()->At(trk->GetParticle()); goodTrackList->Add((TObject *)trk); } } return; } I get these errormessages Error: Symbol event is not defined in current scope FILE:getFastMC.cc LINE:31 *** Interpreter error recovered *** Could anybody please explain this to me ? Thanks, Jan
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:02 MET