ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MuJetAnalysis/AnalysisTools/scripts/countSuccessfulEvents.py
(Generate patch)

Comparing UserCode/MuJetAnalysis/AnalysisTools/scripts/countSuccessfulEvents.py (file contents):
Revision 1.3 by pivarski, Wed Oct 13 01:09:39 2010 UTC vs.
Revision 1.4 by pivarski, Wed Oct 13 01:14:36 2010 UTC

# Line 39 | Line 39 | for fileName in source.fileNames:
39                  raise Exception, "%s/CMSSW_%d.stdout has an out-of-order event (number %d)." % (crabResDir, index, e)
40              eventnumber = e
41  
42 <    total_number_of_events += eventnumber
42 >    if eventnumber is not None:
43 >        total_number_of_events += eventnumber
44      print fileName, eventnumber
45  
46   print "======================================================"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines