Some pointer datamembers converted into arrays
authorbarbera <barbera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Oct 2002 17:14:05 +0000 (17:14 +0000)
committerbarbera <barbera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Oct 2002 17:14:05 +0000 (17:14 +0000)
ITS/AliITSVertex.cxx

index 7b4a477e91b66286b5807c1f7dccc189b162c15e..c86b8469059195bc1bae543107d3a45b625710e3 100644 (file)
@@ -40,26 +40,21 @@ ClassImp(AliITSVertex)
 //______________________________________________________________________
 AliITSVertex::AliITSVertex() {
     // Default Constructor
-
-    fPosition   = 0;
-    fResolution = 0;
-    fSNR        = 0;
+       
+       Int_t i;
+       for (i = 0; i < 3; i++) {
+           fPosition[i]   = 0.0;
+       fResolution[i] = 0.0;
+           fSNR[i]        = 0.0;
+       }
 }
 //______________________________________________________________________
 AliITSVertex::~AliITSVertex() {
-    // Default Constructor
-
-    if(fPosition){ delete [] fPosition; fPosition   = 0;}
-    if(fResolution){ delete []fResolution; fResolution = 0;}
-    if(fSNR){ delete [] fSNR;fSNR        = 0;}
+    // Default Destructor
 }
 //______________________________________________________________________
 void AliITSVertex::Exec(){
 
-   fPosition = new Double_t[3];
-   fResolution = new Double_t[3];
-   fSNR = new Double_t[3];
-  
    AliITS* aliits =(AliITS *)gAlice->GetDetector("ITS");
    AliITSgeom *g2 = ((AliITS*)aliits)->GetITSgeom();