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

◆ __init__()

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, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ __str__()

def DiObject.DiObject.__str__ (   self)

Definition at line 25 of file DiObject.py.

References __class__< T >.__class__(), DiObject.DiObject.diobject, 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(), EgHLTOffHistBins_cfi.mass, str, reco::MuonIsolation.sumPt, DiObject.DiObject.sumPt(), l1thgcfirmware::HGCalMulticluster.sumPt(), HGCalConcentratorCoarsenerImpl::CoarseTC.sumPt, l1tVertexFinder::VertexNTupler::EmulationVerticesBranchData.sumPt, l1t::HGCalClusterT< C >.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 
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
#define str(s)

◆ sumPt()

def DiObject.DiObject.sumPt (   self)

Member Data Documentation

◆ diobject

DiObject.DiObject.diobject

Definition at line 14 of file DiObject.py.

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

◆ leg1DeltaR

DiObject.DiObject.leg1DeltaR

Definition at line 17 of file DiObject.py.

◆ leg1Gen

DiObject.DiObject.leg1Gen

Definition at line 15 of file DiObject.py.

◆ leg2DeltaR

DiObject.DiObject.leg2DeltaR

Definition at line 18 of file DiObject.py.

◆ leg2Gen

DiObject.DiObject.leg2Gen

Definition at line 16 of file DiObject.py.