//-----------------------------------------------------------------------------
void AliPHOSPulseGenerator::Digitize()
{
- // Emulates ADC: rounds down to nearest integer value all amplitudes
+ // Emulates ADC: rounds up to nearest integer value all amplitudes
for (Int_t i=0; i<fkTimeBins; i++) {
- fDataHG[i] = (Double_t) ((Int_t)fDataHG[i]);
- fDataLG[i] = (Double_t) ((Int_t)fDataLG[i]);
+ fDataHG[i] = (Int_t)(fDataHG[i]);
+ fDataLG[i] = (Int_t)(fDataLG[i]);
}
}