CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DiObject.DiElectron Class Reference
Inheritance diagram for DiObject.DiElectron:
DiObject.DiObject

Public Member Functions

def __init__ (self, diobject)
 
def __str__ (self)
 
def leg1 (self)
 
def leg2 (self)
 
- Public Member Functions inherited from DiObject.DiObject
def __init__ (self, diobject)
 
def __str__ (self)
 
def sumPt (self)
 

Public Attributes

 ele1
 
 ele2
 
- Public Attributes inherited from DiObject.DiObject
 diobject
 
 leg1DeltaR
 
 leg1Gen
 
 leg2DeltaR
 
 leg2Gen
 

Detailed Description

Definition at line 58 of file DiObject.py.

Constructor & Destructor Documentation

def DiObject.DiElectron.__init__ (   self,
  diobject 
)

Definition at line 60 of file DiObject.py.

60  def __init__(self, diobject):
61  super(DiElectron, self).__init__(diobject)
62  self.ele1 = Electron( diobject.leg1() )
63  self.ele2 = Electron( diobject.leg2() )
64 
def __init__(self, diobject)
Definition: DiObject.py:60

Member Function Documentation

def DiObject.DiElectron.__str__ (   self)

Definition at line 71 of file DiObject.py.

References join(), reco::MuonIsolation.sumPt, DiObject.DiObject.sumPt(), l1t::HGCalClusterT< C >.sumPt(), PileupJetIdentifier.sumPt(), and MBUEandQCDValidation.sumPt.

71  def __str__(self):
72  header = 'DiElectron: mvis=%3.2f, sumpT=%3.2f' \
73  % (self.diobject.mass(),
74  self.sumPt() )
75  return '\n'.join( [header] )
76 
77 
def sumPt(self)
Definition: DiObject.py:21
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def __str__(self)
Definition: DiObject.py:71
def DiObject.DiElectron.leg1 (   self)

Definition at line 65 of file DiObject.py.

References DiObject.DiElectron.ele1.

Referenced by DiObject.DiObject.__str__(), and DiObject.DiObject.sumPt().

65  def leg1(self):
66  return self.ele1
67 
def leg1(self)
Definition: DiObject.py:65
def DiObject.DiElectron.leg2 (   self)

Definition at line 68 of file DiObject.py.

References DiObject.DiElectron.ele2.

Referenced by DiObject.DiObject.__str__(), and DiObject.DiObject.sumPt().

68  def leg2(self):
69  return self.ele2
70 
def leg2(self)
Definition: DiObject.py:68

Member Data Documentation

DiObject.DiElectron.ele1

Definition at line 62 of file DiObject.py.

Referenced by DiObject.DiElectron.leg1().

DiObject.DiElectron.ele2

Definition at line 63 of file DiObject.py.

Referenced by DiObject.DiElectron.leg2().