Main Page
Namespaces
Classes
Package Documentation
PhysicsTools
Heppy
python
physicsobjects
IsoTrack.py
Go to the documentation of this file.
1
from
PhysicsTools.Heppy.physicsobjects.PhysicsObject
import
*
2
import
ROOT
3
import
math
4
5
class
IsoTrack
(
PhysicsObject
):
6
7
def
__init__
(self, isoTrack):
8
self.
isoTrack
= isoTrack
9
super(IsoTrack, self).
__init__
(isoTrack)
10
11
def
relIso
(self, dummy1, dummy2):
12
'''Just making the tau behave as a lepton.'''
13
return
-1
14
15
def
__str__
(self):
16
lep = super(IsoTrack, self).
__str__
()
17
return
lep
18
#spec = '\t\tTau: decay = {decMode:<15}, eOverP = {eOverP:4.2f}, isoMVALoose = {isoMVALoose}'.format(
19
# decMode = tauDecayModes.intToName( self.decayMode() ),
20
# eOverP = self.calcEOverP(),
21
# isoMVALoose = self.tauID('byLooseIsoMVA')
22
# )
23
#return '\n'.join([lep, spec])
24
25
IsoTrack.IsoTrack
Definition:
IsoTrack.py:5
IsoTrack.IsoTrack.__init__
def __init__(self, isoTrack)
Definition:
IsoTrack.py:7
PhysicsObject
Definition:
PhysicsObject.py:1
IsoTrack.IsoTrack.isoTrack
isoTrack
Definition:
IsoTrack.py:8
PhysicsObject
IsoTrack.IsoTrack.__str__
def __str__(self)
Definition:
IsoTrack.py:15
IsoTrack.IsoTrack.relIso
def relIso(self, dummy1, dummy2)
Definition:
IsoTrack.py:11
Generated for CMSSW Reference Manual by
1.8.11