]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Using pointers instead of arrays (Alpha)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Jul 2002 17:39:20 +0000 (17:39 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Jul 2002 17:39:20 +0000 (17:39 +0000)
ITS/AliITSFindClustersV2.C

index 385932678ade7a88f6c78f5c0e6e82a835867f61..7d8d5cb0a75a41501f449dd4598db1bf28be083d 100644 (file)
@@ -63,7 +63,9 @@ Int_t AliITSFindClustersV2(Char_t SlowOrFast='f') {
 
    cerr<<"Number of entries: "<<nentr<<endl;
 
-   Float_t lp[5]; Int_t lab[6]; //Why can't it be inside a loop ?
+   //   Float_t lp[5]; Int_t lab[6]; //Why can't it be inside a loop ?
+   Float_t * lp = new Float_t[5]; 
+   Int_t * lab = new Int_t[6];
 
    for (Int_t i=0; i<nentr; i++) {
        points->Clear();
@@ -116,6 +118,9 @@ Int_t AliITSFindClustersV2(Char_t SlowOrFast='f') {
 
    cerr<<"Number of clusters: "<<nclusters<<endl;
 
+   delete [] lp;
+   delete [] lab;
+
    delete cTree; delete clusters; delete points;
 
    delete gAlice; gAlice=0;