Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:23:27

0001 from PhysicsTools.Heppy.physicsobjects.PhysicsObject import *
0002 import ROOT
0003 import math
0004 
0005 class IsoTrack( PhysicsObject ):
0006     
0007     def __init__(self, isoTrack):
0008         self.isoTrack = isoTrack
0009         super(IsoTrack, self).__init__(isoTrack)
0010 
0011     def relIso(self, dummy1, dummy2):
0012         '''Just making the tau behave as a lepton.'''
0013         return -1
0014 
0015     def __str__(self):
0016         lep = super(IsoTrack, self).__str__()
0017         return lep
0018         #spec = '\t\tTau: decay = {decMode:<15}, eOverP = {eOverP:4.2f}, isoMVALoose = {isoMVALoose}'.format(
0019         #    decMode = tauDecayModes.intToName( self.decayMode() ),
0020         #    eOverP = self.calcEOverP(),
0021         #    isoMVALoose = self.tauID('byLooseIsoMVA')
0022         #    )
0023         #return '\n'.join([lep, spec])
0024 
0025