message: recalculate/calibrate cluster/cell energy only when recalibration requested, avoid long if statements
diff: @@ -2010,16 +2010,14 @@ void AliCalorimeterUtils::RecalibrateCellTimeL1Phase(Double_t & time, Int_t calo
  Float_t AliCalorimeterUtils::RecalibrateClusterEnergy(AliVCluster * cluster,
  AliVCaloCells * cells)
  {
  + if ( !IsRecalibrationOn() ) return cluster->E();
  +
  // Initialize some used variables
  Float_t frac = 0., energy = 0.;
  - if(cells)
  - {
  // Get the cluster number of cells and list of absId, check what kind of cluster do we have.
  -
  UShort_t * index = cluster->GetCellsAbsId() ;
  Double_t * fraction = cluster->GetCellsAmplitudeFraction() ;
  -
  Int_t ncells = cluster->GetNCells();
  Int_t calo = AliFiducialCut::kEMCAL;
  @@ -2044,12 +2042,6 @@ Float_t AliCalorimeterUtils::RecalibrateClusterEnergy(AliVCluster * cluster,
  AliDebug(1,Form("Energy before %f, after %f",cluster->E(),energy));
  - } // cells available
  - else
  - {
  - AliFatal("Cells pointer does not exist!");
  - }
  -
  return energy;
  }
  @@ -2063,13 +2055,9 @@ Float_t AliCalorimeterUtils::RecalibrateClusterEnergyWeightCell(AliVCluster * cl
  // Initialize some used variables
  Float_t frac = 0., energy = 0.;
  - if(cells)
  - {
  // Get the cluster number of cells and list of absId, check what kind of cluster do we have.
  -
  UShort_t * index = cluster->GetCellsAbsId() ;
  Double_t * fraction = cluster->GetCellsAmplitudeFraction() ;
  -
  Int_t ncells = cluster->GetNCells();
  Int_t calo = AliFiducialCut::kEMCAL;
  @@ -2084,7 +2072,7 @@ Float_t AliCalorimeterUtils::RecalibrateClusterEnergyWeightCell(AliVCluster * cl
  if(frac < 1e-3) frac = 1; //in case of EMCAL, this is set as 0, not used.
  Float_t amp = cells->GetCellAmplitude(absId);
  - RecalibrateCellAmplitude(amp,calo, absId);
  + if ( IsRecalibrationOn() ) RecalibrateCellAmplitude(amp,calo, absId);
  amp*=GetMCECellClusFracCorrection(amp,energyOrg);
  @@ -2095,11 +2083,6 @@ Float_t AliCalorimeterUtils::RecalibrateClusterEnergyWeightCell(AliVCluster * cl
  }
  AliDebug(1,Form("Energy before %f, after %f",cluster->E(),energy));
  - } // cells available
  - else
  - {
  - AliFatal("Cells pointer does not exist!");
  - }
  return energy;
  }
  