Go to the documentation of this file.00001
00002
00003 import ROOT
00004 import sys
00005 from DataFormats.FWLite import Events, Handle
00006
00007 from FWCore.ParameterSet.VarParsing import VarParsing
00008 options = VarParsing ('python')
00009 options.parseArguments()
00010
00011 print "maxEvents", options.maxEvents
00012
00013 events = Events (options)
00014 conversionHandle = Handle ('vector<reco::Conversion>')
00015 conversionLabel = ("conversions")
00016
00017 for event in events:
00018 aux = event.object().eventAuxiliary()
00019 print "run %6d event %d" % (aux.run(), aux.event())
00020 event.getByLabel (conversionLabel, conversionHandle)
00021 conversionVector = conversionHandle.product()
00022 for index, conversion in enumerate (conversionVector):
00023 print " %2d %8.4f" % (index, conversion.EoverP())