Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit tests of multichain with empty files
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#! /usr/bin/env python | ||
import ROOT | ||
from DataFormats.FWLite import Events, Handle | ||
import FWCore.ParameterSet.VarParsing as VarParsing | ||
options = VarParsing.VarParsing ('analysis') | ||
options.parseArguments() | ||
events = Events(options) | ||
|
||
print "In total there are %d events" % events.size() | ||
print "Trying an event loop" | ||
for i,event in enumerate(events): | ||
print "I am processing an event" | ||
if i > 10: break | ||
print "Done with the event loops" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters