Use RunReco with event range.
[u/mrichter/AliRoot.git] / MUON / MUONrawclusters.C
index dc3dd9d18d49809ad6e421a5b4789add937243d2..84c2ac2001d06672ad16a2eed9245fa14bd165ba 100644 (file)
@@ -58,13 +58,6 @@ void MUONrawclusters (Int_t evNumber1=0,Int_t evNumber2=0)
 //
     Int_t Nh=0;
     Int_t Nh1=0;
-    for (int nev=evNumber1; nev<= evNumber2; nev++) {
-       Int_t nparticles = gAlice->GetEvent(nev);
-       cout << "nev         " << nev <<endl;
-       cout << "nparticles  " << nparticles <<endl;
-       if (nev < evNumber1) continue;
-       if (nparticles <= 0) return;
-       gAlice->RunReco("MUON");
-    }   // event loop 
+    gAlice->RunReco("MUON", evNumber1, evNumber2+1);
 }