Skip to content

Commit

Permalink
exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ats2008 committed Dec 20, 2023
1 parent a62e7d2 commit 3ead8aa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions PhysObjectExtractor/python/poet_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
options = VarParsing ('analysis')
isData = False
if len(sys.argv) > 2:
isData = eval(sys.argv[2])
sys.argv.pop( 2 )

try:
isData = eval(sys.argv[2])
sys.argv.pop( 2 )
print "isData is set to ",isData
except:
pass
options.parseArguments()
isMC = True
if isData: isMC = False
Expand Down Expand Up @@ -240,7 +243,7 @@
if len(options.inputFiles) > 0:
process.source.fileNames=options.inputFiles

print "Processing for maxEvents = ",process.maxEvents
print "Processing for maxEvents = ",process.maxEvents.input
print "Processing input files "
for fl in process.source.fileNames:
print " > ",fl
Expand Down

0 comments on commit 3ead8aa

Please sign in to comment.