]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RICH/AliRICHPatRec.cxx
Add MEVSIM and TMEVSIM
[u/mrichter/AliRoot.git] / RICH / AliRICHPatRec.cxx
index 45c060057a9d5b5db4695bd4aaf706ed60a65c81..a9de26f0a596a31b3b145b90ee75bb644b308644 100644 (file)
 
 /*
   $Log$
+  Revision 1.10  2001/02/27 15:21:06  jbarbosa
+  Transition to SDigits.
+
+  Revision 1.9  2001/02/13 20:38:48  jbarbosa
+  Changes to make it work with new IO.
+
+  Revision 1.8  2000/11/01 15:37:18  jbarbosa
+  Updated to use its own rec. point object.
+
   Revision 1.7  2000/10/03 21:44:09  morsch
   Use AliSegmentation and AliHit abstract base classes.
 
@@ -40,7 +49,7 @@
 
 #include "AliRICHHit.h"
 #include "AliRICHCerenkov.h"
-#include "AliRICHPadHit.h"
+#include "AliRICHSDigit.h"
 #include "AliRICHDigit.h"
 #include "AliRICHRawCluster.h"
 #include "AliRICHRecHit1D.h"
@@ -98,7 +107,7 @@ void AliRICHPatRec::PatRec()
 
   Float_t rechit[7];
 
-  printf("PatRec started\n");
+  //printf("PatRec started\n");
 
   AliRICH *pRICH  = (AliRICH*)gAlice->GetDetector("RICH");
   TTree *treeH = gAlice->TreeH();
@@ -116,7 +125,7 @@ void AliRICHPatRec::PatRec()
     segmentation=iChamber->GetSegmentationModel();
 
     nent=(Int_t)gAlice->TreeD()->GetEntries();
-    gAlice->TreeD()->GetEvent(nent-1);
+    gAlice->TreeD()->GetEvent(0);
     TClonesArray *pDigitss = pRICH->DigitsAddress(ich);
     ndigits[ich] = pDigitss->GetEntriesFast();
     printf("Digits in chamber %d: %d\n",ich,ndigits[ich]);