]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/global/AliFlatTPCCluster.h
fix compiler warning (empty body of if statement)
[u/mrichter/AliRoot.git] / HLT / global / AliFlatTPCCluster.h
index 843bab5755ab70e92d5aad62c08ff1818e537c30..2966066d43925da660c5a4eebc7ae9f4befc5c65 100644 (file)
  */
 
 #include "Rtypes.h"
-#include "AliVVcluster.h"
-#include "AliFlatESDMisc.h"
+#include "AliVMisc.h"
 
-class AliFlatTPCCluster: public AliVVcluster
+class AliFlatTPCCluster
 {
   public:
+
+  AliFlatTPCCluster() : fX(0.), fY(0.), fZ(0.), fPadRow(0), fSigmaY2(0.), fSigmaZ2(0.), fCharge(0), fQMax(0) {}
+  ~AliFlatTPCCluster() {}
+
   void SetX(Float_t x)             {fX = x;}
   void SetY(Float_t y)             {fY = y;}
   void SetZ(Float_t z)             {fZ = z;}
@@ -25,9 +28,7 @@ class AliFlatTPCCluster: public AliVVcluster
   void SetCharge(UShort_t charge)  {fCharge = charge;}
   void SetQMax(UShort_t qmax)      {fQMax = qmax;}
   
-  void Reinitialize(){
-       new (this) AliFlatTPCCluster(AliFlatESDReinitialize);
-  }
+  void Reinitialize(){} // do nothing
 
   Float_t  GetX()       const      {return fX;}
   Float_t  GetY()       const      {return fY;}
@@ -38,8 +39,6 @@ class AliFlatTPCCluster: public AliVVcluster
   UShort_t GetCharge()  const      {return fCharge;}
   UShort_t GetQMax()    const      {return fQMax;}
 
-  AliFlatTPCCluster() 
-  : fX(0.), fY(0.), fZ(0.), fPadRow(0), fSigmaY2(0.), fSigmaZ2(0.), fCharge(0), fQMax(0) {}
 
   static Bool_t SortClusters(const AliFlatTPCCluster &first, const AliFlatTPCCluster &second){
     // Method to sort two clusters according to pad row
@@ -49,8 +48,11 @@ class AliFlatTPCCluster: public AliVVcluster
   }
   
   private:
-  AliFlatTPCCluster(AliFlatESDSpecialConstructorFlag){}
-  virtual ~AliFlatTPCCluster() {}
+
+ AliFlatTPCCluster(AliVConstructorReinitialisationFlag )
+ //  : fX(fX),fY(fY),fZ(fZ),fPadRow(fPadRow),fSigmaY2(fSigmaY2),fSigmaZ2(fSigmaZ2),fCharge(fCharge),fQMax(fQMax)
+ {}
+
   Float_t fX;       // X coordinate in local coordinates
   Float_t fY;       // Y coordinate in local coordinates
   Float_t fZ;       // Z coordinate in local coordinates
@@ -60,8 +62,6 @@ class AliFlatTPCCluster: public AliVVcluster
   UInt_t  fCharge;  // total charge of cluster
   UInt_t  fQMax;    // QMax of cluster
   
-  
-  
 };
 
 #endif