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 |
|
|