]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliRecPoint.h
DP:Misalignment of CPV added
[u/mrichter/AliRoot.git] / STEER / AliRecPoint.h
index 254a528be193d3e4e5038962342e9d4df202f13c..06874552b41a8db08de285ed70b85c1fdc580b59 100644 (file)
@@ -18,9 +18,9 @@
 
 // --- ROOT system ---
 
-#include "TObject.h"
-#include "TVector3.h"
-class TMatrix;
+#include <TObject.h>
+#include <TMatrixFfwd.h>
+#include <TVector3.h>
 
 // --- AliRoot header files ---
 
@@ -32,15 +32,15 @@ class AliRecPoint : public TObject {
 public:
 
   AliRecPoint() ;                   // ctor            
+  AliRecPoint(const char * opt) ;                   // ctor            
   AliRecPoint(const AliRecPoint &recp);  // copy ctor
   virtual ~AliRecPoint() ;          // dtor
  
   virtual void  AddDigit(AliDigitNew & digit) ;  // add a digit to the digit's indexes list  
   //  virtual void  AddTrack(AliTrack & track) ;  // add a track to the tracks list  
-  void  Copy(AliRecPoint &recp) const;
-  virtual void  GetCovarianceMatrix(TMatrix & mat) ;
+  virtual void  GetCovarianceMatrix(TMatrixF & mat) const;
   virtual AliGeometry * GetGeom() const { return fGeom; } 
-  virtual void  GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const ; // return global position in ALICE
+  virtual void  GetGlobalPosition(TVector3 & gpos, TMatrixF & gmat) const ; // return global position in ALICE
   virtual int * GetDigitsList(void) const { return fDigitsList ; }
   //  virtual int * GetTracksList(void) const { return fTracksList ; }
   virtual Float_t GetEnergy() const {return fAmp; } 
@@ -50,19 +50,20 @@ public:
   virtual Int_t GetMaximumDigitMultiplicity() const { return  fMaxDigit; } 
   virtual Int_t GetMaximumTrackMultiplicity() const { return  fMaxTrack; } 
   virtual Int_t GetTracksMultiplicity(void) const { return fMulTrack ; }
-  //PH  virtual void  Print(Option_t * opt = "void") = 0 ; 
-  virtual void  Print(Option_t * opt = "void") {;} 
-  AliRecPoint & operator= (const AliRecPoint &recp);
+  AliRecPoint & operator= (const AliRecPoint &recp)
+    {recp.Copy(*this); return (*this);}
+
   void          SetIndexInList(Int_t val) { fIndexInList = val ; } 
 
 
 protected:
+  void  Copy(TObject &recp) const;
 
   Float_t       fAmp ;        // summed amplitude of digits 
   AliGeometry * fGeom ;       //! pointer to the geometry class 
   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
-  TMatrix *     fLocPosM ;    // covariance matrix ;  
+  TMatrixF *     fLocPosM ;    // covariance matrix ;  
   Int_t         fMaxDigit ;   //! max initial size of digits array (not saved)
   Int_t         fMulDigit ;   // total multiplicity of digits
   Int_t         fMaxTrack ;   //! max initial size of tracks array (not saved)