Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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.__init__
def __init__
Definition:
IsoTrack.py:7
IsoTrack.IsoTrack
Definition:
IsoTrack.py:5
IsoTrack.IsoTrack.relIso
def relIso
Definition:
IsoTrack.py:11
PhysicsObject
Definition:
PhysicsObject.py:1
IsoTrack.IsoTrack.isoTrack
isoTrack
Definition:
IsoTrack.py:8
IsoTrack.IsoTrack.__str__
def __str__
Definition:
IsoTrack.py:15
PhysicsObject
Generated for CMSSW Reference Manual by
1.8.5