correct the energy smearing function
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 27 Feb 2011 18:15:11 +0000 (18:15 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 27 Feb 2011 18:15:11 +0000 (18:15 +0000)
PWG4/PartCorrBase/AliCaloTrackReader.cxx

index 7d48b74..36a4d9b 100755 (executable)
@@ -845,7 +845,8 @@ void AliCaloTrackReader::FillInputEMCALAlgorithm(AliVCluster * clus, const Int_t
     //In case of MC analysis, to match resolution/calibration in real data
     if(fSmearClusterEnergy){
       Float_t energy    = clus->E();
-      Float_t rdmEnergy = fRandom.Gaus(energy,fSmearClusterParam[0]*TMath::Sqrt(energy)+fSmearClusterParam[1]*energy+fSmearClusterParam[0]);
+      Float_t rdmEnergy = fRandom.Gaus(energy,fSmearClusterParam[0]*TMath::Sqrt(energy)+
+                                       fSmearClusterParam[1]*energy+fSmearClusterParam[2]);
       clus->SetE(rdmEnergy);
       if(fDebug > 2) printf("\t Energy %f, smeared %f\n", energy, clus->E());
     }