CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DiObject.DiObject Class Reference
Inheritance diagram for DiObject.DiObject:
DiObject.DiElectron DiObject.DiMuon DiObject.DiTau DiObject.MuonElectron DiObject.TauElectron DiObject.TauMuon DiObject.TauTau

Public Member Functions

def __init__ (self, diobject)
 
def __str__ (self)
 
def sumPt (self)
 

Public Attributes

 diobject
 
 leg1DeltaR
 
 leg1Gen
 
 leg2DeltaR
 
 leg2Gen
 

Detailed Description

Generic di-object class, to handle di-objects from the EDM file

Definition at line 8 of file DiObject.py.

Constructor & Destructor Documentation

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

Definition at line 12 of file DiObject.py.

12  def __init__(self, diobject):
13  '''diobject is the di-object read from the edm file'''
14  self.diobject = diobject
15  self.leg1Gen = None
16  self.leg2Gen = None
17  self.leg1DeltaR = -1
18  self.leg2DeltaR = -1
19  super(DiObject, self).__init__(diobject)
20 
def __init__(self, diobject)
Definition: DiObject.py:12

Member Function Documentation

def DiObject.DiObject.__str__ (   self)

Definition at line 25 of file DiObject.py.

References join(), ResonanceBuilder.Resonance.leg1, DiObject.DiMuon.leg1(), ZMuMuRochCorAnalyzer.DiMuon.leg1(), DiObject.DiElectron.leg1(), DiObject.TauMuon.leg1(), DiObject.TauElectron.leg1(), DiObject.MuonElectron.leg1(), DiObject.TauTau.leg1(), ResonanceBuilder.Resonance.leg2, DiObject.DiMuon.leg2(), ZMuMuRochCorAnalyzer.DiMuon.leg2(), DiObject.DiElectron.leg2(), DiObject.TauMuon.leg2(), DiObject.TauElectron.leg2(), DiObject.MuonElectron.leg2(), DiObject.TauTau.leg2(), str, reco::MuonIsolation.sumPt, DiObject.DiObject.sumPt(), PileupJetIdentifier.sumPt(), and MBUEandQCDValidation.sumPt.

25  def __str__(self):
26  header = '{cls}: mvis={mvis}, mT={mt}, sumpT={sumpt}'.format(
27  cls = self.__class__.__name__,
28  mvis = self.diobject.mass(),
29  mt = self.diobject.mTLeg2(),
30  sumpt = self.sumPt() )
31  return '\n'.join( [header,
32  '\t'+str(self.leg1()),
33  '\t'+str(self.leg2())] )
34 
35 
36 
def sumPt(self)
Definition: DiObject.py:21
def __str__(self)
Definition: DiObject.py:25
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
#define str(s)
def DiObject.DiObject.sumPt (   self)

Member Data Documentation

DiObject.DiObject.diobject

Definition at line 14 of file DiObject.py.

DiObject.DiObject.leg1DeltaR

Definition at line 17 of file DiObject.py.

DiObject.DiObject.leg1Gen

Definition at line 15 of file DiObject.py.

DiObject.DiObject.leg2DeltaR

Definition at line 18 of file DiObject.py.

DiObject.DiObject.leg2Gen

Definition at line 16 of file DiObject.py.