Skip to content

Conversation

@EmyrClement
Copy link
Contributor

Carrying on from Sergey's work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this matching here done only for electrons, not muons?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have yet to consider muons in much detail yet. I can work on it now
as it might be useful for debugging.

On 22/09/2014 14:15, Sergey Senkin wrote:

In src/lepton_scale_factors/read_BLT_ntuple.py:

+# Tag ID
+def getTagLepton( reco_leptons, hlt_leptons ):

  • for lepton in reco_leptons:
  •    passesId = passes_tag_ID( lepton, hlt_leptons, channel )
    
  •    if passesId:
    
  •        matched_index_signal_lepton, matched_delta_R_signal_lepton = match_four_momenta(lepton, hlt_leptons)
    
  •        hlt_lepton = hlt_leptons[matched_index_signal_lepton]
    
  •        return lepton, hlt_lepton
    
  • return 0, 0

+def passes_tag_ID(lepton, hlt_leptons, channel = 'electron'):

  • if channel == 'electron':
  •    if lepton.Pt() > 30 and abs(lepton.Eta()) < 0.8 and lepton.isolation < 0.1 and lepton.ID > 0.9 and lepton.dxy < 0.02 and lepton.innerHits <= 0 and lepton.passConversionVeto:
    
  •        # Does this tag also match to hlt lepton
    

Why is this matching here done only for electrons, not muons?


Reply to this email directly or view it on GitHub
https://github.com/BristolTopGroup/DailyPythonScripts/pull/144/files#r17847359.

senkin added a commit that referenced this pull request Sep 25, 2014
Work on lepton scale factors
@senkin senkin merged commit cacc98c into BristolTopGroup:master Sep 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants