Clear method added.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Sep 2007 09:48:11 +0000 (09:48 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Sep 2007 09:48:11 +0000 (09:48 +0000)
STEER/AliVertex.cxx
STEER/AliVertex.h

index 593ff60..63063f8 100644 (file)
@@ -106,6 +106,15 @@ AliVertex::~AliVertex() {
   delete [] fIndices;
   fIndices = 0;
 }
+
+void AliVertex::Clear(Option_t* option) 
+{
+    // Delete allocated memory
+    delete [] fIndices;
+    fIndices = 0;
+    TNamed::Clear(option);
+}
+
 //--------------------------------------------------------------------------
 void AliVertex::GetXYZ(Double_t position[3]) const {
 //
index a7f8ada..c70c873 100644 (file)
@@ -24,7 +24,7 @@ class AliVertex : public TNamed {
   AliVertex &operator=(const AliVertex &source);
   virtual ~AliVertex();
 
-
+  virtual void   Clear(Option_t *option="");
   virtual void   SetXYZ(Double_t pos[3]) 
                    {for(Int_t j=0; j<3; j++) fPosition[j]=pos[j];}
   virtual void   SetXv(Double_t xVert) {fPosition[0]=xVert; }