5 from DataFormats.FWLite
import Events, Handle
7 from FWCore.ParameterSet.VarParsing
import VarParsing
8 options = VarParsing (
'python')
9 options.parseArguments()
11 print "maxEvents", options.maxEvents
13 events = Events (options)
14 conversionHandle = Handle (
'vector<reco::Conversion>')
15 conversionLabel = (
"conversions")
18 aux = event.object().eventAuxiliary()
19 print "run %6d event %d" % (aux.run(), aux.event())
20 event.getByLabel (conversionLabel, conversionHandle)
21 conversionVector = conversionHandle.product()
22 for index, conversion
in enumerate (conversionVector):
23 print " %2d %8.4f" % (index, conversion.EoverP())