CMS 3D CMS Logo

ZEleEleAnalyzer.py
Go to the documentation of this file.
1 from PhysicsTools.Heppy.analyzers.DiLeptonAnalyzer import DiLeptonAnalyzer
2 from PhysicsTools.Heppy.analyzers.AutoHandle import AutoHandle
3 from PhysicsTools.Heppy.physicsobjects.DiObject import DiElectron
4 from PhysicsTools.Heppy.physicsobjects.PhysicsObjects import Electron
5 
6 
8 
9  DiObjectClass = DiElectron
10  LeptonClass = Electron
11 
12  def declareHandles(self):
13  super(ZEleEleAnalyzer, self).declareHandles()
14  print 'ZEleEleAnalyzer.declareHandles'
15  self.handles['diLeptons'] = AutoHandle(
16  'cmgDiElectronSelStdLep',
17  'std::vector<cmg::DiObject<cmg::Electron,cmg::Electron>>'
18  )
19  self.handles['leptons'] = AutoHandle(
20  'cmgElectronSelStdLep',
21  'std::vector<cmg::Electron>'
22  )
23 
24  def testLeg1(self, leg):
25  return self.testElectron(leg) and \
26  super( ZEleEleAnalyzer, self).testLeg1( leg )
27 
28  def testLeg2(self, leg):
29  return self.testElectron(leg) and \
30  super( ZEleEleAnalyzer, self).testLeg2( leg )
31 
32