TOF example macro updated
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 6 Oct 2001 02:40:31 +0000 (02:40 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 6 Oct 2001 02:40:31 +0000 (02:40 +0000)
TOF/tofanal.C

index 18da0915ae46abe06bae9eecf1312ef806046a72..07873e2546f75b3d580b0d1b40eff69ed53f2d82 100644 (file)
@@ -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);
        }
      }