/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PhysicsTools/Heppy/python/physicsobjects/IsoTrack.py
23 строки
771 B
Jan Steggemann
Remove unneeded absIso method; remove FSR photon subtraction in favour of previously implemented specific methods in electron/muon classes; change default cone for abs/relIsoR methods to 0.4
05 янв 2016, 13:49
05 янв 2016, 13:49
b8776db
Код
Авторство
О чём код?
from PhysicsTools.Heppy.physicsobjects.PhysicsObject import * import ROOT import math class IsoTrack( PhysicsObject ): def __init__(self, isoTrack): self.isoTrack = isoTrack super(IsoTrack, self).__init__(isoTrack) def relIso(self, dummy1, dummy2): '''Just making the tau behave as a lepton.''' return -1 def __str__(self): lep = super(IsoTrack, self).__str__() return lep #spec = '\t\tTau: decay = {decMode:<15}, eOverP = {eOverP:4.2f}, isoMVALoose = {isoMVALoose}'.format( # decMode = tauDecayModes.intToName( self.decayMode() ), # eOverP = self.calcEOverP(), # isoMVALoose = self.tauID('byLooseIsoMVA') # ) #return '\n'.join([lep, spec])