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.2 by anlevin, Thu Jul 5 14:26:26 2012 UTC vs.
Revision 1.3 by anlevin, Thu Jul 5 18:21:22 2012 UTC

# Line 139 | Line 139 | void mithep::MuonFakeRateMod::Process()
139        if (passMuonDenominatorCuts(mu, fPrimVerts->At(0), denominatorType[denominatorTypeIndex]))  
140          nMuons[denominatorTypeIndex]++;
141      }
142 <    ControlFlags ctrl;
143 <    ctrl.era = 2012;
142 >        
143      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...
144          passMuonDenominatorCuts(mu, fPrimVerts->At(0), denominatorType[1])
145          &&
146 <        muon2012CutBasedIDTight(ctrl,mu,fPrimVerts->At(0),fPFCandidates,fPileupEnergyDensity,mithep::MuonTools::kMuEAData2012)    
146 >        muon2012CutBasedIDTight(mu,fPrimVerts->At(0),fPFCandidates,fPileupEnergyDensity)          
147          )  
148        goodMuons.push_back(mu);
149      
150    }
151    for(Int_t i=0; i<fElectrons->GetEntries(); i++) {
152      const Electron *ele = fElectrons->At(i);
153 <      ControlFlags ctrl;
155 <    ctrl.era = 2012;
156 <    if(electron2012CutBasedIDMedium(ctrl,ele, fPrimVerts->At(0), fPFCandidates, fConversions, fPileupEnergyDensity,mithep::ElectronTools::kEleEAData2012)) goodElectrons.push_back(ele);
153 >    if(electron2012CutBasedIDMedium(ele, fPrimVerts->At(0), fPFCandidates, fConversions, fPileupEnergyDensity)) goodElectrons.push_back(ele);
154  
155    }    
156    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines