98 |
|
if (run>=178424 && run<=180252) corr = 0.0047; |
99 |
|
} |
100 |
|
} |
101 |
< |
if (dataset_=="2012Jul13ReReco") { |
101 |
> |
else if (dataset_=="2012Jul13ReReco") { |
102 |
|
// values from https://twiki.cern.ch/twiki/bin/view/CMS/ECALELF |
103 |
|
if (ele->IsEB() && fabs(ele->SCluster()->Eta())<1 && ele->SCluster()->R9()<0.94) { |
104 |
|
if (run>=190645 && run<=190781) scale = 1.0020; |
278 |
|
TRandom1 * rand = new TRandom1(); |
279 |
|
rand->SetSeed(0); |
280 |
|
corrMC = rand->Gaus(1,dsigMC); |
281 |
< |
corrMC = 1+dsigMC; |
281 |
> |
// corrMC = 1+dsigMC; //use this only for synchronization |
282 |
|
if (debug_) std::cout << "[ElectronEnergyCalibrator] unsmeared energy " << energy << std::endl; |
283 |
|
corrected_energy = energy*corrMC; |
284 |
|
if (debug_) std::cout << "[ElectronEnergyCalibrator] smeared energy " << corrected_energy << std::endl; |