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

Comparing UserCode/MitHzz4l/NonMCBackground/src/MuonFakeRateMod.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 139 | Line 139 | void mithep::MuonFakeRateMod::Process()
139        if (passMuonDenominatorCuts(mu, fPrimVerts->At(0), denominatorType[denominatorTypeIndex]))  
140          nMuons[denominatorTypeIndex]++;
141      }
142 <        
142 >    ControlFlags ctrl;
143 >    ctrl.era = 2012;
144      if ( //maybe you should do a loop to make sure the muon passes all of the denominators? right now this is ok because 2 is tighter...
145          passMuonDenominatorCuts(mu, fPrimVerts->At(0), denominatorType[1])
146          &&
147 <        muon2012CutBasedIDTight(mu,fPrimVerts->At(0),fPFCandidates,fPileupEnergyDensity)          
147 >        muon2012CutBasedIDTight(ctrl,mu,fPrimVerts->At(0),fPFCandidates,fPileupEnergyDensity,mithep::MuonTools::kMuEAData2012)    
148          )  
149        goodMuons.push_back(mu);
150      
151    }
152    for(Int_t i=0; i<fElectrons->GetEntries(); i++) {
153      const Electron *ele = fElectrons->At(i);
154 <    if(electron2012CutBasedIDMedium(ele, fPrimVerts->At(0), fPFCandidates, fConversions, fPileupEnergyDensity)) goodElectrons.push_back(ele);
154 >      ControlFlags ctrl;
155 >    ctrl.era = 2012;
156 >    if(electron2012CutBasedIDMedium(ctrl,ele, fPrimVerts->At(0), fPFCandidates, fConversions, fPileupEnergyDensity,mithep::ElectronTools::kEleEAData2012)) goodElectrons.push_back(ele);
157  
158    }    
159    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines