Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-08 23:11:02

0001 #! /usr/bin/env python3
0002 from __future__ import print_function
0003 import ROOT
0004 from DataFormats.FWLite import Events, Handle
0005 import FWCore.ParameterSet.VarParsing as VarParsing
0006 options = VarParsing.VarParsing ('analysis')
0007 options.parseArguments()
0008 events = Events(options)
0009 
0010 print("In total there are %d events" % events.size())
0011 print("Trying an event loop")
0012 for i,event in enumerate(events):
0013     print("I am processing an event")
0014     if i > 10: break
0015 print("Done with the event loops")