CMS 3D CMS Logo

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

Public Member Functions

def buildDiLeptons (self, cmgDiLeptons, event)
 
def buildLeptons (self, cmgLeptons, event)
 
def buildOtherLeptons (self, cmgLeptons, event)
 
def declareHandles (self)
 
def testMuonID (self, muon)
 
def testMuonIso (self, muon, isocut)
 
def testVertex (self, lepton)
 

Static Public Attributes

 DiObjectClass
 
 LeptonClass
 
 testLeg1ID
 
 testLeg1Iso
 
 testLeg2ID
 
 testLeg2Iso
 

Detailed Description

Definition at line 7 of file ZMuMuAnalyzer.py.

Member Function Documentation

def ZMuMuAnalyzer.ZMuMuAnalyzer.buildDiLeptons (   self,
  cmgDiLeptons,
  event 
)
Build di-leptons, associate best vertex to both legs,
select di-leptons with a tight ID muon.
The tight ID selection is done so that dxy and dz can be computed
(the muon must not be standalone).

Definition at line 29 of file ZMuMuAnalyzer.py.

29  def buildDiLeptons(self, cmgDiLeptons, event):
30  '''Build di-leptons, associate best vertex to both legs,
31  select di-leptons with a tight ID muon.
32  The tight ID selection is done so that dxy and dz can be computed
33  (the muon must not be standalone).
34  '''
35  diLeptons = []
36  for index, dil in enumerate(cmgDiLeptons):
37  pydil = self.__class__.DiObjectClass(dil)
38  pydil.leg1().associatedVertex = event.goodVertices[0]
39  pydil.leg2().associatedVertex = event.goodVertices[0]
40  diLeptons.append( pydil )
41  return diLeptons
42 
43 
def buildDiLeptons(self, cmgDiLeptons, event)
def ZMuMuAnalyzer.ZMuMuAnalyzer.buildLeptons (   self,
  cmgLeptons,
  event 
)

Definition at line 44 of file ZMuMuAnalyzer.py.

44  def buildLeptons(self, cmgLeptons, event):
45  return []
46 
47 
def buildLeptons(self, cmgLeptons, event)
def ZMuMuAnalyzer.ZMuMuAnalyzer.buildOtherLeptons (   self,
  cmgLeptons,
  event 
)

Definition at line 48 of file ZMuMuAnalyzer.py.

48  def buildOtherLeptons(self, cmgLeptons, event):
49  return []
50 
51 
def buildOtherLeptons(self, cmgLeptons, event)
def ZMuMuAnalyzer.ZMuMuAnalyzer.declareHandles (   self)

Definition at line 12 of file ZMuMuAnalyzer.py.

References core.Analyzer.Analyzer.handles, and HTTP.RequestManager.handles.

12  def declareHandles(self):
13  super(ZMuMuAnalyzer, self).declareHandles()
14  print 'ZMuMuAnalyzer.declareHandles'
15  self.handles['diLeptons'] = AutoHandle(
16  'cmgDiMuonSel',
17  'std::vector<cmg::DiObject<cmg::Muon,cmg::Muon>>'
18  )
19  self.handles['leptons'] = AutoHandle(
20  'cmgMuonSel',
21  'std::vector<cmg::Muon>'
22  )
23  self.handles['otherLeptons'] = AutoHandle(
24  'cmgElectronSel',
25  'std::vector<cmg::Electron>'
26  )
27 
28 
def ZMuMuAnalyzer.ZMuMuAnalyzer.testMuonID (   self,
  muon 
)
Tight muon selection, no isolation requirement

Definition at line 66 of file ZMuMuAnalyzer.py.

References ZMuMuAnalyzer.ZMuMuAnalyzer.testVertex().

66  def testMuonID(self, muon):
67  '''Tight muon selection, no isolation requirement'''
68  # import pdb; pdb.set_trace()
69  return muon.tightId() and \
70  self.testVertex( muon )
71 
72 
def testVertex(self, lepton)
def testMuonID(self, muon)
def ZMuMuAnalyzer.ZMuMuAnalyzer.testMuonIso (   self,
  muon,
  isocut 
)
dbeta corrected pf isolation with all charged particles instead of
charged hadrons

Definition at line 58 of file ZMuMuAnalyzer.py.

58  def testMuonIso(self, muon, isocut ):
59  '''dbeta corrected pf isolation with all charged particles instead of
60  charged hadrons'''
61  return muon.relIsoAllChargedDB05()<isocut
62 
def testMuonIso(self, muon, isocut)
def ZMuMuAnalyzer.ZMuMuAnalyzer.testVertex (   self,
  lepton 
)
Tests vertex constraints, for mu and tau

Definition at line 52 of file ZMuMuAnalyzer.py.

References funct.abs().

Referenced by ZMuMuAnalyzer.ZMuMuAnalyzer.testMuonID().

52  def testVertex(self, lepton):
53  '''Tests vertex constraints, for mu and tau'''
54  return abs(lepton.dxy()) < 0.045 and \
55  abs(lepton.dz()) < 0.2
56 
57 
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def testVertex(self, lepton)

Member Data Documentation

ZMuMuAnalyzer.ZMuMuAnalyzer.DiObjectClass
static

Definition at line 9 of file ZMuMuAnalyzer.py.

ZMuMuAnalyzer.ZMuMuAnalyzer.LeptonClass
static

Definition at line 10 of file ZMuMuAnalyzer.py.

ZMuMuAnalyzer.ZMuMuAnalyzer.testLeg1ID
static

Definition at line 73 of file ZMuMuAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1().

ZMuMuAnalyzer.ZMuMuAnalyzer.testLeg1Iso
static

Definition at line 63 of file ZMuMuAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1().

ZMuMuAnalyzer.ZMuMuAnalyzer.testLeg2ID
static

Definition at line 74 of file ZMuMuAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2().

ZMuMuAnalyzer.ZMuMuAnalyzer.testLeg2Iso
static

Definition at line 64 of file ZMuMuAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2().