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);
Int_t *phentry = new Int_t [nentry];
Int_t *hadentry = new Int_t [nentry];
- Int_t *trenergy = 0x0;
Int_t *trpid = 0x0;
Int_t *sortcoord = 0x0;
+ Float_t *trenergy = 0x0;
Int_t ngtrack = 0;
Int_t nhtrack = 0;
// find out which track deposits maximum energy and
// assign that track number and track pid
- trenergy = new Int_t [nghadtrack];
+ trenergy = new Float_t [nghadtrack];
trpid = new Int_t [nghadtrack];
- sortcoord = new Int_t [nghadtrack];
+ 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;
}
//--------------------------------------------------------------------//