ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/LeptonSelection/src/IsolationSelection.cc
(Generate patch)

Comparing UserCode/MitHzz4l/LeptonSelection/src/IsolationSelection.cc (file contents):
Revision 1.13 by khahn, Thu May 10 00:14:35 2012 UTC vs.
Revision 1.14 by khahn, Thu May 10 11:14:33 2012 UTC

# Line 371 | Line 371 | SelectionStatus muonIsoMVASelection(Cont
371            IsLeptonFootprint = kTRUE;
372        } // loop over electrons
373        
374 +      /* KH - commented for sync
375        //
376        // Check for muons
377        //
# Line 385 | Line 386 | SelectionStatus muonIsoMVASelection(Cont
386          if (pf->Charge() != 0 && mithep::MathUtils::DeltaR(tmpmu->Phi(),tmpmu->Eta(), pf->Phi(), pf->Eta()) < 0.01)
387            IsLeptonFootprint = kTRUE;
388        } // loop over muons
389 <
389 >      */
390  
391      if (IsLeptonFootprint)
392        continue;
# Line 662 | Line 663 | double  muonPFIso04(ControlFlags &ctrl,
663              && mithep::MathUtils::DeltaR(tmpele->Phi(),tmpele->Eta(), pf->Phi(), pf->Eta()) < 0.08)
664            IsLeptonFootprint = kTRUE;
665        } // loop over electrons
666 <      
666 >
667 >      /* KH - comment for sync      
668        //
669        // Check for muons
670        //
# Line 677 | Line 679 | double  muonPFIso04(ControlFlags &ctrl,
679          if (pf->Charge() != 0 && mithep::MathUtils::DeltaR(tmpmu->Phi(),tmpmu->Eta(), pf->Phi(), pf->Eta()) < 0.01)
680            IsLeptonFootprint = kTRUE;
681        } // loop over muons
682 <
682 >      */
683  
684      if (IsLeptonFootprint)
685        continue;
686  
687      //
688 <    // Charged Iso Rings
688 >    // Charged Iso
689      //
690      if (pf->Charge() != 0 && (pf->HasTrackerTrk()||pf->HasGsfTrk()) ) {
691  
# Line 715 | Line 717 | double  muonPFIso04(ControlFlags &ctrl,
717      }
718  
719      //
720 <    // Other Neutral Iso Rings
720 >    // Other Neutrals
721      //
722      else {
723 <      fNeutralHadronIso += pf->Pt();
723 >      // KH, add to sync
724 >      if( pf->Pt() > 0.5 )
725 >        fNeutralHadronIso += pf->Pt();
726      }
727      
728      }
# Line 911 | Line 915 | SelectionStatus electronIsoMVASelection(
915            IsLeptonFootprint = kTRUE;
916          }
917        } // loop over electrons
918 <      
918 >
919 >      /* KH - comment for sync            
920        //
921        // Check for muons
922        //
# Line 930 | Line 935 | SelectionStatus electronIsoMVASelection(
935            IsLeptonFootprint = kTRUE;
936          }
937        } // loop over muons
938 <
938 >      */
939  
940      if (IsLeptonFootprint)
941        continue;
# Line 1268 | Line 1273 | float electronPFIso04(ControlFlags &ctrl
1273            IsLeptonFootprint = kTRUE;
1274          }
1275        } // loop over electrons
1276 <      
1276 >
1277 >      /* KH - comment for sync            
1278        //
1279        // Check for muons
1280        //
# Line 1287 | Line 1293 | float electronPFIso04(ControlFlags &ctrl
1293            IsLeptonFootprint = kTRUE;
1294          }
1295        } // loop over muons
1296 <
1296 >      */
1297  
1298      if (IsLeptonFootprint)
1299        continue;
1300  
1301      //
1302 <    // Charged Iso Rings
1302 >    // Charged Iso
1303      //
1304      if (pf->Charge() != 0 && (pf->HasTrackerTrk()||pf->HasGsfTrk()) ) {
1305  
# Line 1334 | Line 1340 | float electronPFIso04(ControlFlags &ctrl
1340      else {
1341        if( ctrl.debug) cout << "neutral:: " << pf->Pt() << " "
1342                             << dr << endl;
1343 <      fNeutralHadronIso += pf->Pt();
1343 >      // KH, add to sync
1344 >      if( pf->Pt() > 0.5 )
1345 >        fNeutralHadronIso += pf->Pt();
1346      }
1347  
1348      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines