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 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

◆ __init__()

def DiObject.DiElectron.__init__ (   self,
  diobject 
)
diobject is the di-object read from the edm file

Reimplemented from DiObject.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 

Member Function Documentation

◆ __str__()

def DiObject.DiElectron.__str__ (   self)

Reimplemented from DiObject.DiObject.

Definition at line 71 of file DiObject.py.

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 

References DiObject.DiObject.diobject, join(), EgHLTOffHistBins_cfi.mass, reco::MuonIsolation.sumPt, DiObject.DiObject.sumPt(), HGCalConcentratorCoarsenerImpl::CoarseTC.sumPt, l1t::HGCalClusterT< C >.sumPt(), PileupJetIdentifier.sumPt(), and MBUEandQCDValidation.sumPt.

◆ leg1()

def DiObject.DiElectron.leg1 (   self)

Definition at line 65 of file DiObject.py.

65  def leg1(self):
66  return self.ele1
67 

References DiObject.DiElectron.ele1.

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

◆ leg2()

def DiObject.DiElectron.leg2 (   self)

Definition at line 68 of file DiObject.py.

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

References DiObject.DiElectron.ele2.

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

Member Data Documentation

◆ ele1

DiObject.DiElectron.ele1

Definition at line 62 of file DiObject.py.

Referenced by DiObject.DiElectron.leg1().

◆ ele2

DiObject.DiElectron.ele2

Definition at line 63 of file DiObject.py.

Referenced by DiObject.DiElectron.leg2().

Electron
Definition: Electron.py:1
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
TriggerAnalyzer.__str__
def __str__(self)
Definition: TriggerAnalyzer.py:103
EgHLTOffHistBins_cfi.mass
mass
Definition: EgHLTOffHistBins_cfi.py:34