]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MFT/AliMFTCluster.h
Setting a dummy number of contributors for the MC primary vertex
[u/mrichter/AliRoot.git] / MFT / AliMFTCluster.h
index 122088b697a8715e3099cfaa56ba431050f30a55..7015349ad5901411eacb7d584cc0aad4973a5d4b 100644 (file)
@@ -28,11 +28,12 @@ public:
   AliMFTCluster();
   AliMFTCluster(const AliMFTCluster&);
   AliMFTCluster& operator=(const AliMFTCluster&);
-
-  virtual ~AliMFTCluster() {};  // destructor
-
+  virtual ~AliMFTCluster() { if(fDigitsInCluster){fDigitsInCluster->Delete(); delete fDigitsInCluster; fDigitsInCluster=NULL;}}
+  
+  virtual void Clear(const Option_t* /*opt*/) { if(fDigitsInCluster) {fDigitsInCluster->Delete(); delete fDigitsInCluster; fDigitsInCluster = 0x0;} }
+  
   void SetXYZ(Double_t x, Double_t y, Double_t z) { fX=x; fY=y; fZ=z; }
-
+  
   void SetX(Double_t x) { if(fIsClusterEditable) fX = x; }
   void SetY(Double_t y) { if(fIsClusterEditable) fY = y; }
   void SetZ(Double_t z) { if(fIsClusterEditable) fZ = z; }