CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes
ZMuMuAnalyzer.ZMuMuAnalyzer Class Reference
Inheritance diagram for ZMuMuAnalyzer.ZMuMuAnalyzer:

Public Member Functions

def buildDiLeptons
 
def buildLeptons
 
def buildOtherLeptons
 
def declareHandles
 
def testMuonID
 
def testMuonIso
 
def testVertex
 

Static Public Attributes

 DiObjectClass = DiMuon
 
 LeptonClass = Muon
 
 testLeg1ID = testMuonID
 
 testLeg1Iso = testMuonIso
 
 testLeg2ID = testMuonID
 
 testLeg2Iso = testMuonIso
 

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

Definition at line 44 of file ZMuMuAnalyzer.py.

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

Definition at line 48 of file ZMuMuAnalyzer.py.

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

Definition at line 12 of file ZMuMuAnalyzer.py.

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

12 
13  def declareHandles(self):
14  super(ZMuMuAnalyzer, self).declareHandles()
15  print 'ZMuMuAnalyzer.declareHandles'
16  self.handles['diLeptons'] = AutoHandle(
17  'cmgDiMuonSel',
18  'std::vector<cmg::DiObject<cmg::Muon,cmg::Muon>>'
19  )
20  self.handles['leptons'] = AutoHandle(
21  'cmgMuonSel',
22  'std::vector<cmg::Muon>'
23  )
24  self.handles['otherLeptons'] = AutoHandle(
25  'cmgElectronSel',
26  'std::vector<cmg::Electron>'
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 
67  def testMuonID(self, muon):
68  '''Tight muon selection, no isolation requirement'''
69  # import pdb; pdb.set_trace()
70  return muon.tightId() and \
71  self.testVertex( muon )
72 
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 
59  def testMuonIso(self, muon, isocut ):
60  '''dbeta corrected pf isolation with all charged particles instead of
61  charged hadrons'''
62  return muon.relIsoAllChargedDB05()<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 
53  def testVertex(self, lepton):
54  '''Tests vertex constraints, for mu and tau'''
55  return abs(lepton.dxy()) < 0.045 and \
56  abs(lepton.dz()) < 0.2
57 
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

Member Data Documentation

ZMuMuAnalyzer.ZMuMuAnalyzer.DiObjectClass = DiMuon
static

Definition at line 9 of file ZMuMuAnalyzer.py.

ZMuMuAnalyzer.ZMuMuAnalyzer.LeptonClass = Muon
static

Definition at line 10 of file ZMuMuAnalyzer.py.

ZMuMuAnalyzer.ZMuMuAnalyzer.testLeg1ID = testMuonID
static

Definition at line 73 of file ZMuMuAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1().

ZMuMuAnalyzer.ZMuMuAnalyzer.testLeg1Iso = testMuonIso
static

Definition at line 63 of file ZMuMuAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1().

ZMuMuAnalyzer.ZMuMuAnalyzer.testLeg2ID = testMuonID
static

Definition at line 74 of file ZMuMuAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2().

ZMuMuAnalyzer.ZMuMuAnalyzer.testLeg2Iso = testMuonIso
static

Definition at line 64 of file ZMuMuAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2().