259 |
|
tree->Branch("type1metPhi", &type1met_phi, "type1metPhi/F"); |
260 |
|
tree->Branch("ht", &ht, "ht/F"); |
261 |
|
tree->Branch("nVertex", &nVertex, "nVertex/I"); |
262 |
< |
tree->Branch("pu_weight", &pu_weight, "pu_weight/F"); |
262 |
> |
tree->Branch("weight", &weight, "weight/D"); |
263 |
|
tree->Branch("genElectron", &genElectron); |
264 |
|
tree->Branch("genPhoton", &genPhoton); |
265 |
|
|
279 |
|
|
280 |
|
// weights |
281 |
|
if (pileupHisto == 0) { |
282 |
< |
pu_weight = 1.; |
282 |
> |
weight = 1.; |
283 |
|
} else { |
284 |
|
float trueNumInteractions = -1; |
285 |
|
for( susy::PUSummaryInfoCollection::const_iterator iBX = event->pu.begin(); |
287 |
|
if (iBX->BX == 0) |
288 |
|
trueNumInteractions = iBX->trueNumInteractions; |
289 |
|
} |
290 |
< |
pu_weight = pileupHisto->GetBinContent( pileupHisto->FindBin( trueNumInteractions ) ); |
290 |
> |
weight = pileupHisto->GetBinContent( pileupHisto->FindBin( trueNumInteractions ) ); |
291 |
|
} |
292 |
|
|
293 |
|
// get ak5 jets |
307 |
|
thisphoton.photonIso = photonIso_corrected(*it, event->rho25); |
308 |
|
|
309 |
|
bool loose_photon_barrel = it->isEB() |
310 |
– |
&& it->passelectronveto |
310 |
|
&& it->hadTowOverEm<0.05 |
311 |
|
&& it->sigmaIetaIeta<0.012 |
312 |
|
&& thisphoton.chargedIso<2.6 |
314 |
|
&& thisphoton.photonIso<1.3+0.005*thisphoton.pt; |
315 |
|
|
316 |
|
bool loose_photon_endcap = it->isEE() |
318 |
– |
&& it->passelectronveto |
317 |
|
&& it->hadTowOverEm<0.05 |
318 |
|
&& it->sigmaIetaIeta<0.034 |
319 |
|
&& thisphoton.chargedIso<2.3 |