10pylcgdict.load_library(
"libPyAnalysisExamplesDict")
13cut = g.AthPyEx.MyCutClass(30*GeV)
22ha = ROOT.TH1F (
'accept',
'Test Acc',100,0,100000)
23hr = ROOT.TH1F (
'reject',
'Test Rej',100,0,100000)
26for ievent
in range(5):
31 econ = PyParticleTools.getElectrons(
"ElectronCollection")
32 for ie
in range(len(econ)):
34 if cut.isAccepted(eobj):
35 print (
"accept %f" % eobj.pt())
38 print (
"reject %f" % eobj.pt())