]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecPoint.h
README updated (R.Barbera)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecPoint.h
index de65da8780b59c78435a73bdbcb0fa0e1db101c5..c2adc61b1c70d0bab472f82185c4ab74dbef14c4 100644 (file)
@@ -2,12 +2,13 @@
 #define ALIPHOSRECPOINT_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
-
 //_________________________________________________________________________
 //  Base Class for PHOS Reconstructed Points  
-//                  
+//  A recpoint being equivalent to a cluster in encal terminology                 
 //*-- Author: Gines Martinez (SUBATECH)
 
+#include <assert.h>
+
 // --- ROOT system ---
 
 #include "TMarker.h"
 
 #include "AliRecPoint.h"
 #include "AliPHOSDigit.h"
+#include "AliPHOSGeometry.h"
 
 class AliPHOSRecPoint : public AliRecPoint {
 
  public:
+  
+  typedef TObjArray RecPointsList ; 
 
   AliPHOSRecPoint() ;                   // ctor         
   AliPHOSRecPoint(const AliPHOSRecPoint & rp) {
@@ -35,20 +39,22 @@ class AliPHOSRecPoint : public AliRecPoint {
   virtual ~AliPHOSRecPoint(){
     // dtor
   }
+  virtual  void   AddDigit(AliDigitNew &){
+    // do not use this definition but the one below
+    assert(0==1) ; 
+  }
   virtual  void   AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ; 
-  virtual Int_t   Compare(TObject * obj) { 
-    // check why this is done
-    assert(0==1) ; return 1 ; 
-  }   
+  virtual Int_t   Compare(const TObject * obj) const = 0 ;   
   virtual Int_t   DistancetoPrimitive(Int_t px, Int_t py);
   virtual void    Draw(Option_t * option="") ;
   virtual void    ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
-  virtual Int_t   GetPHOSMod(void) ;
-  virtual Int_t * GetPrimaries(Int_t & number) ;
-  virtual Bool_t  IsEmc(void){
-    // says that this is a EMC
-    return kTRUE ;
-  } 
+  virtual void    EvalAll(Float_t logWeight,TClonesArray * digits) ;  
+  virtual void    EvalPHOSMod(AliPHOSDigit * digit) ;  
+  virtual void    EvalPrimaries(TClonesArray * digits) ;  
+  virtual Int_t   GetPHOSMod(void) const {return fPHOSMod ; }
+  virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ; 
+                                                      return fTracksList ; }
+  virtual Bool_t  IsEmc(void)const { return kTRUE ;  } 
   virtual Bool_t  IsSortable() const { 
     // tells that this is a sortable object
     return kTRUE ; 
@@ -58,21 +64,17 @@ class AliPHOSRecPoint : public AliRecPoint {
     // Print prototype
   } 
 
-  AliPHOSRecPoint & operator = (AliPHOSRecPoint const & rvalue)  {
+  AliPHOSRecPoint & operator = (const AliPHOSRecPoint & )  {
     // assignement operator requested by coding convention
     // but not needed
     assert(0==1) ;
     return *this ; 
   }
 
- protected:
+protected:
   
   Int_t fPHOSMod ;      // PHOS Module number in which the RecPoint is found
-
- private:
   
-  typedef TObjArray RecPointsList ; 
-
   ClassDef(AliPHOSRecPoint,1) // RecPoint for PHOS (Base Class)
  
 };