Work on lepton scale factors

Carrying on from Sergey's work.
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>.
>