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

Comparing UserCode/MitHzz4l/NonMCBackground/src/ElectronFakeRateMod.cc (file contents):
Revision 1.1 by anlevin, Wed Jul 4 18:27:27 2012 UTC vs.
Revision 1.2 by anlevin, Thu Jul 5 14:26:26 2012 UTC

# Line 140 | Line 140 | void mithep::ElectronFakeRateMod::Proces
140    vector<const Electron*> goodElectrons;
141  
142    for(Int_t i=0; i<fMuons->GetEntries(); i++) {
143 <    const Muon *mu = fMuons->At(i);    
144 <    if( muon2012CutBasedIDTight(mu,fPrimVerts->At(0),fPFCandidates,fPileupEnergyDensity) )              
143 >    const Muon *mu = fMuons->At(i);  
144 >    ControlFlags ctrl;
145 >    ctrl.era = 2012;
146 >    if( muon2012CutBasedIDTight(ctrl,mu,fPrimVerts->At(0),fPFCandidates,fPileupEnergyDensity,mithep::MuonTools::kMuEAData2012) )                
147        goodMuons.push_back(mu);
148    }
149    for(Int_t i=0; i<fElectrons->GetEntries(); i++) {
# Line 153 | Line 155 | void mithep::ElectronFakeRateMod::Proces
155        else
156          fails_some_denominator = kTRUE;
157      }
158 +    ControlFlags ctrl;
159 +    ctrl.era = 2012;
160  
161 <    if(!fails_some_denominator && electron2012CutBasedIDMedium(ele, fPrimVerts->At(0), fPFCandidates, fConversions, fPileupEnergyDensity))
161 >    if(!fails_some_denominator && electron2012CutBasedIDMedium(ctrl,ele, fPrimVerts->At(0), fPFCandidates, fConversions, fPileupEnergyDensity,mithep::ElectronTools::kEleEAData2012))
162        goodElectrons.push_back(ele);
163    }    
164  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines