Fixing constructors of fHitMapD
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Jul 2002 14:00:43 +0000 (14:00 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Jul 2002 14:00:43 +0000 (14:00 +0000)
ITS/AliITSMapA2.cxx

index 53c1569..5993b05 100644 (file)
@@ -74,7 +74,7 @@ AliITSMapA2::AliITSMapA2(AliITSsegmentation *seg,
     fNpz           = fScaleSizeZ*fSegmentation->Npz();
     fNpx           = fScaleSizeX*fSegmentation->Npx();
     fMaxIndex      = fNpz*fNpx+fNpx;             // 2 halves of detector
-    fHitMapD       = new Double_t[fMaxIndex];
+    fHitMapD       = new Double_t[fMaxIndex+1];
     fMapThresholdD = 0.;
     fObjects       = 0;
     fNobjects      = 0;
@@ -92,7 +92,7 @@ AliITSMapA2::AliITSMapA2(AliITSsegmentation *seg, TObjArray *obj,
     fNpz           = fSegmentation->Npz();
     fNpx           = fSegmentation->Npx();
     fMaxIndex      = fNpz*fNpx+fNpx;             // 2 halves of detector  
-    fHitMapD       = new Double_t[fMaxIndex];
+    fHitMapD       = new Double_t[fMaxIndex+1];
     fObjects       =  obj;
     if (fObjects) fNobjects = fObjects->GetEntriesFast();
     fMapThresholdD = thresh;