]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecPoint.h
ExecuteEvent()const added
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecPoint.h
index 2c061e748eae8b265788abde123d82bf5c1df87a..7de96cb30984d2990fce4fb07a5cedd87ce7a307 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"
 // --- AliRoot header files ---
 
 #include "AliRecPoint.h"
+#include "AliPHOSDigit.h"
 
 class AliPHOSRecPoint : public AliRecPoint {
 
-public:
+ public:
+  
+  typedef TObjArray RecPointsList ; 
 
   AliPHOSRecPoint() ;                   // ctor         
-  virtual ~AliPHOSRecPoint(){}          // dtor
-  virtual  void   AddDigit(AliDigitNew & digit, Float_t Energy) = 0 ; 
+  AliPHOSRecPoint(const char * opt) ;   // ctor 
+  AliPHOSRecPoint(const AliPHOSRecPoint & rp) {
+    // cpy ctor requested by Coding Convention 
+    // but not yet needed
+    assert(0==1) ; 
+  } 
+  
+  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(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){return kTRUE ;} 
+  virtual void    ExecuteEvent(Int_t event, Int_t px, Int_t py)const ;
+  virtual void    EvalAll(Float_t logWeight,TClonesArray * digits) ;  
+  virtual void    EvalPHOSMod(AliPHOSDigit * digit) ;  
+  virtual void    EvalPrimaries(TClonesArray * digits) ;  
+  virtual void    GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const ; // return global position in ALICE
+  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 ; 
+  }  
   virtual void    Paint(Option_t * option="");
-  virtual void    Print(Option_t * opt = "void") {} 
+  virtual void    Print(Option_t * opt = "void") const {
+    // Print prototype
+  } 
 
-  virtual Int_t   Compare(TObject * obj) {  assert(0==1) ; }   
-  virtual Bool_t  IsSortable() const { return kTRUE ; }  
+  AliPHOSRecPoint & operator = (const AliPHOSRecPoint & )  {
+    // assignement operator requested by coding convention but not needed
+    assert(0==1) ;
+    return *this ; 
+  }
 
 protected:
   
-  Int_t      fPHOSMod ; // PHOS Module number in which the RecPoint is found
-
+  Int_t fPHOSMod ;      // PHOS Module number in which the RecPoint is found
+  
   ClassDef(AliPHOSRecPoint,1) // RecPoint for PHOS (Base Class)
  
 };