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

Comparing UserCode/MitHzz4l/Selection/src/ReferenceSelection.cc (file contents):
Revision 1.15 by anlevin, Wed Jul 25 13:29:14 2012 UTC vs.
Revision 1.16 by anlevin, Wed Oct 3 17:11:31 2012 UTC

# Line 27 | Line 27
27   #include "SelectionFuncs.h"
28   #include "ElectronEnergyCorrection.h"
29   #include "ElectronEnergyRegression.h"
30 + #include "MuonMomentumCorrection.h"
31  
32  
33   extern vector<SimpleLepton> failingLeptons;
# Line 109 | Line 110 | EventData apply_HZZ4L_reference_selectio
110           << endl;
111    }
112  
113 <
113 >  //correct muon momentum
114 >  if(ctrl.correct_muon_momentum){
115 >    for(int i=0; i<muonArr->GetEntries(); i++) {
116 >      const mithep::Muon *const_mu = (mithep::Muon*)((*muonArr)[i]);
117 >      mithep::Muon *mu = const_cast<mithep::Muon*>(const_mu);
118 >      correct_muon_momentum(mu,info->EvtNum());
119 >    }
120 >  }
121  
122  
123    //********************************************************
# Line 119 | Line 127 | EventData apply_HZZ4L_reference_selectio
127    int nlep_above_20=0;
128    for(int i=0; i<muonArr->GetEntries(); i++)
129      {
130 <      const mithep::Muon *mu = (mithep::Muon*)((*muonArr)[i]);        
130 >      const mithep::Muon *mu = (mithep::Muon*)((*muonArr)[i]);  
131 >      
132 >    
133        if( !(mu->IsTrackerMuon() || mu->IsGlobalMuon()) ) continue;
134        if( fabs(mu->Eta()) > 2.4 )                        continue;
135        if( mu->Pt() > 10 )  nlep_above_10++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines