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