Fix for new AliRun::RunReco().
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 31 May 2001 10:19:52 +0000 (10:19 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 31 May 2001 10:19:52 +0000 (10:19 +0000)
MUON/AliMUON.cxx
MUON/MUONrawclusters.C

index f65d518..bde25cc 100644 (file)
@@ -14,6 +14,9 @@
  **************************************************************************/
 /*
 $Log$
+Revision 1.50  2001/05/16 14:57:17  alibrary
+New files for folders and Stack
+
 Revision 1.49  2001/03/12 17:45:48  hristov
 Changes needed on Sun with CC 5.0
 
@@ -235,6 +238,7 @@ Log message added
 #include "AliMUONClusterFinderVS.h"
 #include "AliMUONTriggerDecision.h"
 #include "AliRun.h"
+#include "AliHeader.h"
 #include "AliMC.h"
 #include "AliMUONClusterInput.h"
 #include "AliMUONMerger.h"     
@@ -958,6 +962,14 @@ void AliMUON::Trigger(Int_t nev){
 void AliMUON::Digits2Reco()
 {
   FindClusters();
+  Int_t nev = gAlice->GetHeader()->GetEvent();
+  gAlice->TreeR()->Fill();
+  char hname[30];
+  sprintf(hname,"TreeR%d", nev);
+  gAlice->TreeR()->Write(hname);
+  gAlice->TreeR()->Reset();
+  ResetRawClusters();        
+  printf("\n End of cluster finding for event %d", nev);
 }
 
 void AliMUON::FindClusters()
index 1e60b08..dc3dd9d 100644 (file)
@@ -64,15 +64,7 @@ void MUONrawclusters (Int_t evNumber1=0,Int_t evNumber2=0)
        cout << "nparticles  " << nparticles <<endl;
        if (nev < evNumber1) continue;
        if (nparticles <= 0) return;
-       gAlice->SetEvent(nev);
        gAlice->RunReco("MUON");
-       gAlice->TreeR()->Fill();
-       char hname[30];
-       sprintf(hname,"TreeR%d", nev);
-       gAlice->TreeR()->Write(hname);
-       gAlice->TreeR()->Reset();
-       MUON->ResetRawClusters();        
-       printf("\n End of cluster finding for event %d", 0);
     }   // event loop 
 }