if (!nPeaks)
{
ZeroRegion();
+
+ for (Int_t x = 0; x < xsize; x++)
+ {
+ delete [] peaks[x];
+ }
+ delete [] peaks;
+
continue;
}
}
}
+ delete [] idx;
+
if ( !foundPeak )
{
fPatches->RemoveAt( j );
//________________
void AliEMCALTriggerTRU::SetADC( Int_t channel, Int_t bin, Int_t sig )
{
- //
- if (channel>95) AliError("TRU has 96 ADC channels only!");
- fADC[channel][bin] = sig;
+ //Set ADC value
+ if (channel > 95 || bin > 255) {
+ AliError("TRU has 96 ADC channels and 256 bins only!");
+ }
+ else{
+ fADC[channel][bin] = sig;
+ }
}
//________________