ipid = new Int_t[nenbr1];
cadc = new Float_t[nenbr1];
+ for (Int_t ient1 = 0; ient1 < nenbr1; ient1++)
+ {
+ irow[ient1] = -99;
+ icol[ient1] = -99;
+ itra[ient1] = -99;
+ ipid[ient1] = -99;
+ cadc[ient1] = 0.;
+ }
for (Int_t ient1 = 0; ient1 < nenbr1; ient1++)
{
rechit = (AliPMDrechit*)fRechits->UncheckedAt(ient1);
trenergy = new Int_t [nghadtrack];
trpid = new Int_t [nghadtrack];
- sortcoord = new Int_t [nghadtrack];
+ // the dimension of sortcoord is doubled
+ sortcoord = new Int_t [2*nghadtrack];
for (Int_t i = 0; i < ngtrack; i++)
{
trenergy[i] = 0.;
delete [] sortcoord;
} // end of ngtrack >= 1
+
+ delete [] phentry;
+ delete [] hadentry;
}
//--------------------------------------------------------------------//