}
//____________________________________________________________________________
-Float_t AliEMCALClusterizerv1::Calibrate(Int_t amp, Int_t AbsId)
+Float_t AliEMCALClusterizerv1::Calibrate(Int_t amp, Int_t absId)
{
// Convert digitized amplitude into energy.
Int_t iphi = -1;
Int_t ieta = -1;
- Bool_t bCell = fGeom->GetCellIndex(AbsId, iSupMod, nModule, nIphi, nIeta) ;
+ Bool_t bCell = fGeom->GetCellIndex(absId, iSupMod, nModule, nIphi, nIeta) ;
if(!bCell) {
fGeom->PrintGeometry();
- Error("Calibrate()"," Wrong cell id number : %i", AbsId);
+ Error("Calibrate()"," Wrong cell id number : %i", absId);
assert(0);
}
// Gustavo: 15-12-09 In case of RAW data this selection is already done, but not in simulation.
// for the moment keep it here but remember to do the selection at the sdigitizer level
// and remove it from here
- Int_t channelStatus = (fCaloPed->GetDeadMap(iSupMod))->GetBinContent(ieta,iphi);
+ Int_t channelStatus = (Int_t)(fCaloPed->GetDeadMap(iSupMod))->GetBinContent(ieta,iphi);
if(channelStatus == AliCaloCalibPedestal::kHot || channelStatus == AliCaloCalibPedestal::kDead) {
AliDebug(2,Form("Tower from SM %d, ieta %d, iphi %d is BAD : status %d !!!",iSupMod,ieta,iphi, channelStatus));
return 0;