288 |
|
|
289 |
|
for(std::vector<susy::Photon>::iterator it = photonVector.begin(); |
290 |
|
it != photonVector.end(); ++it ) { |
291 |
< |
if( !(it->isEB() || it->isEE()) && skim ) |
291 |
> |
if( !it->isEB() && skim ) |
292 |
|
continue; |
293 |
|
tree::Photon thisphoton; |
294 |
|
thisphoton.pt = getPtFromMatchedJet( *it, jetVector, loggingVerbosity ); |
305 |
|
&& thisphoton.chargedIso<2.6 |
306 |
|
&& thisphoton.neutralIso<3.5+0.04*thisphoton.pt |
307 |
|
&& thisphoton.photonIso<1.3+0.005*thisphoton.pt; |
308 |
< |
bool loose_photon_endcap = thisphoton.pt > 20 |
308 |
> |
/*bool loose_photon_endcap = thisphoton.pt > 20 |
309 |
|
&& it->isEE() |
310 |
|
&& it->passelectronveto |
311 |
|
&& it->hadTowOverEm<0.05 |
312 |
|
&& it->sigmaIetaIeta<0.034 |
313 |
|
&& thisphoton.chargedIso<2.3 |
314 |
|
&& thisphoton.neutralIso<2.9+0.04*thisphoton.pt; |
315 |
< |
if(!(loose_photon_endcap || loose_photon_barrel || thisphoton.pt > 75 ) && skim ) |
315 |
> |
*/ |
316 |
> |
if(!(loose_photon_barrel || thisphoton.pt > 75 ) && skim ) |
317 |
|
continue; |
318 |
|
thisphoton.eta = it->momentum.Eta(); |
319 |
|
thisphoton.phi = it->momentum.Phi(); |
409 |
|
if( it->momentum.Pt() < 20 || it->momentum.Pt() > 1e6 ) |
410 |
|
continue; // spike rejection |
411 |
|
float iso = ( it->chargedHadronIso + max(it->neutralHadronIso+it->photonIso |
412 |
< |
- effectiveAreaElectron(it->momentum.Eta())*event->rho25, (Float_t)0. ) |
412 |
> |
- effectiveAreaElectron(it->momentum.Eta())*event->rho25, (float)0. ) |
413 |
|
) / it->momentum.Pt(); |
414 |
|
float d0 = d0correction( *it, *event ); |
415 |
|
float dZ = std::abs( dZcorrection( *it, *event ) ); |