]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecPoint.h
Dimitri just makes it work
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecPoint.h
index b28019ed2f7d7f59f9b3fb6bc4cbec0dc566307f..8d3c9f17ef7a97ef155131935a1cdfb4cab6b55a 100644 (file)
@@ -3,14 +3,10 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-////////////////////////////////////////////////
-//  Base class for Reconstructed Points       //
-//  in PHOS and PPSD                          //
-//                                            //
-//  Author Gines MARTINEZ    SUBATECH         //
-//                                            //  
-//                                            //
-////////////////////////////////////////////////
+//_________________________________________________________________________
+//  Base Class for PHOS Reconstructed Points  
+//                  
+//*-- Author: Gines Martinez (SUBATECH)
 
 // --- ROOT system ---
 
 
 // --- Standard library ---
 
-#include <cassert>
-
 // --- 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 ; 
-  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 Bool_t IsEmc(void){return kTRUE ;} 
-  virtual  void  Paint(Option_t * option="");
-  virtual void   Print(Option_t * opt = "void") {} 
-
-  virtual Int_t   Compare(TObject * obj) {  assert(0==1) ; }   
-  virtual Bool_t  IsSortable() const { return kTRUE ; }  
-
-protected:
+  AliPHOSRecPoint(const AliPHOSRecPoint & rp) {
+    // cpy ctor requested by Coding Convention 
+    // but not yet needed
+    assert(0==1) ; 
+  } 
   
-  Int_t      fPHOSMod ;
+  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   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 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") {
+    // Print prototype
+  } 
 
-public:
-  ClassDef(AliPHOSRecPoint,1)
+  AliPHOSRecPoint & operator = (const AliPHOSRecPoint & rvalue)  {
+    // 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
+
+
+  ClassDef(AliPHOSRecPoint,1) // RecPoint for PHOS (Base Class)
  
 };