ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Util/src/ElectronEnergySmearingScaling.cc
(Generate patch)

Comparing UserCode/MitHzz4l/Util/src/ElectronEnergySmearingScaling.cc (file contents):
Revision 1.2 by anlevin, Wed Oct 17 01:29:56 2012 UTC vs.
Revision 1.4 by anlevin, Wed Oct 24 13:14:59 2012 UTC

# Line 98 | Line 98 | std::pair<float,float> apply_claudes_ele
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;
# Line 278 | Line 278 | std::pair<float,float> apply_claudes_ele
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines