From: hristov Date: Sat, 6 Oct 2001 02:40:31 +0000 (+0000) Subject: TOF example macro updated X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=359432daf1d90f6975707b915fa4ebaf4a0918f3 TOF example macro updated --- diff --git a/TOF/tofanal.C b/TOF/tofanal.C index 18da0915ae4..07873e2546f 100644 --- a/TOF/tofanal.C +++ b/TOF/tofanal.C @@ -47,7 +47,6 @@ void tofanal (Int_t evNumber=0) // Get pointers to Alice detectors and Hits containers AliDetector *TOF = gAlice->GetDetector("TOF"); - TClonesArray *Particles = gAlice->Particles(); Int_t ntracks = gAlice->TreeH()->GetEntries(); @@ -59,10 +58,10 @@ void tofanal (Int_t evNumber=0) if(TOF) { // ======>Histogram TOF for(AliTOFhit* tofHit=(AliTOFhit*)TOF->FirstHit(track); tofHit; tofHit=(AliTOFhit*)TOF->NextHit()) { - tof = tofHit->fTof; + tof = tofHit->GetTof(); hTOF->Fill(tof); - ipart = tofHit->fTrack; - particle = (TParticle*)Particles->UncheckedAt(ipart); + ipart = tofHit->GetTrack(); + particle = (TParticle*)gAlice->Particle(ipart); if (particle->GetFirstMother() < 0) hTOFprim->Fill(tof); } }