# | Line 218 | Line 218 | Bool_t ElectronTools::PassCustomIso(cons | |
---|---|---|
218 | Double_t ecalIso = ele->EcalRecHitIsoDr03(); | |
219 | Double_t hcalIso = ele->HcalTowerSumEtDr03(); | |
220 | Double_t combinedIso = trkIso + ecalIso + hcalIso; | |
221 | < | if(ele->IsEB()) combinedIso = combinedIso - 1.0; |
221 | > | if(ele->IsEB()) combinedIso = trkIso + TMath::Max(ecalIso - 1.0, 0.0) + hcalIso; |
222 | combinedIso = combinedIso / ele->Pt(); | |
223 | ||
224 | Int_t eb = 1; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |