File indexing completed on 2024-04-06 12:23:27
0001 from __future__ import print_function
0002 from PhysicsTools.Heppy.analyzers.DiLeptonAnalyzer import DiLeptonAnalyzer
0003 from PhysicsTools.Heppy.analyzers.AutoHandle import AutoHandle
0004 from PhysicsTools.Heppy.physicsobjects.DiObject import DiElectron
0005 from PhysicsTools.Heppy.physicsobjects.PhysicsObjects import Electron
0006
0007
0008 class ZEleEleAnalyzer( DiLeptonAnalyzer ):
0009
0010 DiObjectClass = DiElectron
0011 LeptonClass = Electron
0012
0013 def declareHandles(self):
0014 super(ZEleEleAnalyzer, self).declareHandles()
0015 print('ZEleEleAnalyzer.declareHandles')
0016 self.handles['diLeptons'] = AutoHandle(
0017 'cmgDiElectronSelStdLep',
0018 'std::vector<cmg::DiObject<cmg::Electron,cmg::Electron>>'
0019 )
0020 self.handles['leptons'] = AutoHandle(
0021 'cmgElectronSelStdLep',
0022 'std::vector<cmg::Electron>'
0023 )
0024
0025 def testLeg1(self, leg):
0026 return self.testElectron(leg) and \
0027 super( ZEleEleAnalyzer, self).testLeg1( leg )
0028
0029 def testLeg2(self, leg):
0030 return self.testElectron(leg) and \
0031 super( ZEleEleAnalyzer, self).testLeg2( leg )
0032
0033