CMS 3D CMS Logo

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