Main Page
Namespaces
Classes
Package Documentation
GIT Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
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
absIso
(self, dummy1, dummy2):
12
'''Just making the tau behave as a lepton.'''
13
return
-1
14
15
def
relIso
(self, dummy1, dummy2):
16
'''Just making the tau behave as a lepton.'''
17
return
-1
18
19
def
__str__
(self):
20
lep = super(IsoTrack, self).
__str__
()
21
return
lep
22
#spec = '\t\tTau: decay = {decMode:<15}, eOverP = {eOverP:4.2f}, isoMVALoose = {isoMVALoose}'.format(
23
# decMode = tauDecayModes.intToName( self.decayMode() ),
24
# eOverP = self.calcEOverP(),
25
# isoMVALoose = self.tauID('byLooseIsoMVA')
26
# )
27
#return '\n'.join([lep, spec])
28
29
IsoTrack.IsoTrack.__init__
def __init__
Definition:
IsoTrack.py:7
IsoTrack.IsoTrack
Definition:
IsoTrack.py:5
IsoTrack.IsoTrack.relIso
def relIso
Definition:
IsoTrack.py:15
IsoTrack.IsoTrack.absIso
def absIso
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:19
PhysicsObject
Generated for CMSSW Reference Manual by
1.8.5