]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecPoint.h
Coverity fix
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecPoint.h
index d473a1bfce890271fe7ff76b8548ee6355678b55..b503a188aee7bfc7448a088d6fa8b46e49380c53 100644 (file)
@@ -33,15 +33,17 @@ class AliPHOSRecPoint : public AliCluster {
   
   virtual ~AliPHOSRecPoint();
 
-  virtual  void   AddDigit(AliDigitNew &){
-   Fatal("AddDigit", "use AddDigit(AliPHOSDigit & digit, Float_t Energy)") ; 
-  }
-  virtual  void   AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ; 
+  virtual void Clear(const Option_t* /*option*/ ="") { delete[] fDigitsList; fDigitsList=0; delete[] fTracksList; fTracksList=0; }
+
+//  virtual  void   AddDigit(AliDigitNew &){
+//   Fatal("AddDigit", "use AddDigit(AliPHOSDigit & digit, Float_t Energy)") ; 
+//  }
+  virtual  void   AddDigit(AliPHOSDigit & digit, Float_t Energy, Float_t time=0) = 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) ;
-  void            EvalAll(TClonesArray * digits) ;  
+  virtual void    EvalAll(TClonesArray * digits) ;  
   void            EvalLocal2TrackingCSTransform();
   virtual void    EvalPHOSMod(AliPHOSDigit * digit) ;  
   virtual int *   GetDigitsList(void) const { return fDigitsList ; }  
@@ -76,10 +78,9 @@ protected:
   Float_t   fAmp ;        // summed amplitude of digits 
   Int_t     fIndexInList ;// the index of this RecPoint in the list stored in TreeR (to be set by analysis)  
   TVector3  fLocPos ;     // local position in the sub-detector coordinate
-  TMatrixF* fLocPosM ;    // covariance matrix ;
 
 
-  ClassDef(AliPHOSRecPoint,2) // RecPoint for PHOS (Base Class)
+  ClassDef(AliPHOSRecPoint,3) // RecPoint for PHOS (Base Class)
  
 };