Skip to content

Commit

Permalink
I had left commented some necessary lines in the last testing round...
Browse files Browse the repository at this point in the history
Uncommented now.
 Committing in .

 Modified Files:
 	test/TestSimDigiRepro.py
 ----------------------------------------------------------------------
  • Loading branch information
Gabriele Benelli committed May 22, 2008
1 parent c67be06 commit eb3869e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Validation/Performance/test/TestSimDigiRepro.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ def main(argv):
GENFile=candle.split('.')[0]+"_GEN"
GENCommand="cmsDriver.py "+candle+" -n "+numEvents+" -s GEN --customise=Configuration/PyReleaseValidation/Simulation.py --fileout="+GENFile+".root>& "+GENFile+".log"
print "Executing %s" % GENCommand
#ExitCode=os.system(GENCommand)
#if ExitCode != 0:
# print "Exit code for %s was %s" % (GENCommand, ExitCode)
# ExitCode=0
ExitCode=os.system(GENCommand)
if ExitCode != 0:
print "Exit code for %s was %s" % (GENCommand, ExitCode)
ExitCode=0

#For SaveRandomSeeds.py it's OK to use the version in the release
#but for RestoreRandomSeeds.py we want to access the number of events to skip
Expand All @@ -177,10 +177,10 @@ def main(argv):
SIMDIGISavedSeedsFile=candle.split('.')[0]+"_SIM_DIGI_SavedSeeds"
SIMDIGISaveSeedsCommand="cmsDriver.py "+candle+" -n "+numEvents+" -s SIM --customise=Configuration/PyReleaseValidation/SaveRandomSeeds.py --filein file:"+GENFile+".root --fileout="+SIMDIGISavedSeedsFile+".root >& "+SIMDIGISavedSeedsFile+".log"
print "Executing %s" % SIMDIGISaveSeedsCommand
#ExitCode=os.system(SIMDIGISaveSeedsCommand)
#if ExitCode != 0:
# print "Exit code for %s was %s" % (SIMDIGISaveSeedsCommand, ExitCode)
# ExitCode=0
ExitCode=os.system(SIMDIGISaveSeedsCommand)
if ExitCode != 0:
print "Exit code for %s was %s" % (SIMDIGISaveSeedsCommand, ExitCode)
ExitCode=0

#Second round SIM+DIGI restoring seeds:
#Get the RestoreRandomSeeds.py locally (it could be done without copying the file locally, just use the link...)
Expand All @@ -194,10 +194,10 @@ def main(argv):
SIMDIGIRestoredSeedsFile=candle.split('.')[0]+"_SIM_DIGI_RestoredSeeds_Skip"+str(skipEvents)+"Evts"
SIMDIGIRestoreSeedsCommand="cmsDriver.py "+candle+" -n "+numEvents+" -s SIM --customise="+NewRestorePy+" --filein file:"+SIMDIGISavedSeedsFile+".root --fileout="+SIMDIGIRestoredSeedsFile+".root >& "+SIMDIGIRestoredSeedsFile+".log"
print "Executing %s" % SIMDIGIRestoreSeedsCommand
#ExitCode=os.system(SIMDIGIRestoreSeedsCommand)
#if ExitCode != 0:
# print "Exit code for %s was %s" % (SIMDIGIRestoreSeedsCommand, ExitCode)
# ExitCode=0
ExitCode=os.system(SIMDIGIRestoreSeedsCommand)
if ExitCode != 0:
print "Exit code for %s was %s" % (SIMDIGIRestoreSeedsCommand, ExitCode)
ExitCode=0

#Get the cfg files necessary to run the dumpers(use python version of them!):
CfgFilesLocation={"runSimHitCaloHitDumper_cfg.py":"/src/SimG4Core/Application/test/","runSimTrackSimVertexDumper_cfg.py":"/src/SimG4Core/Application/test/","runSimDigiDumper_cfg.py":"/src/Validation/Performance/test/"}
Expand Down

0 comments on commit eb3869e

Please sign in to comment.