Skip to content

Commit 788d48d

Browse files
author
Michael Staib
committed
Save root output, Change Directory structure.
1 parent 490325a commit 788d48d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

TrackingAlignment/IterateFDCInternal.py renamed to TrackingAlignment/Step1/IterateFDCInternal.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,19 @@
3737
call('hd_root -PPLUGINS=FDC_InternalAlignment %s -PNTHREADS=%i -PEVENTS_TO_KEEP=%i' % (filename, nThreads, nEvents), shell=True)
3838
call(r'root -l -b -q $HALLD_HOME/src/plugins/Alignment/FDC_InternalAlignment/FitScripts/FitCathodeAlignment.C\(\"hd_root.root\"\)',shell=True)
3939
call('mv Result.png FDCInternalAlignIterations/Result_Iter%.2i.png' % iter, shell=True)
40-
call('mv Result.png FDCInternalAlignIterations/hd_root_Planes_Iter%.2i.png' % iter, shell=True)
40+
call('mv hd_root.root FDCInternalAlignIterations/hd_root_Planes_Iter%.2i.root' % iter, shell=True)
4141
call('ccdb add /FDC/cathode_alignment CathodeAlignment.txt', shell=True)
4242
call('hd_root -PPLUGINS=FDC_InternalAlignment %s -PNTHREADS=%i -PEVENTS_TO_KEEP=%i' % (filename, nThreads, nEvents), shell=True)
4343
call(r'root -l -b -q $HALLD_HOME/src/plugins/Alignment/FDC_InternalAlignment/FitScripts/FitCathodeProjections.C\(\"hd_root.root\"\)',shell=True)
4444
call('ccdb add /FDC/cathode_alignment CathodeAlignment.txt', shell=True)
4545
call('ccdb add /FDC/strip_pitches_v2 StripPitchesV2.txt',shell=True)
46-
call('mv Result.png FDCInternalAlignIterations/hd_root_Projections_Iter%.2i.png' % iter, shell=True)
46+
call('mv hd_root.root FDCInternalAlignIterations/hd_root_Projections_Iter%.2i.root' % iter, shell=True)
4747
call('mv ResultU.png FDCInternalAlignIterations/ResultU_Iter%.2i.png' % iter, shell=True)
4848
call('mv ResultV.png FDCInternalAlignIterations/ResultV_Iter%.2i.png' % iter, shell=True)
4949

5050
print "======= FINAL ITERATION ======="
5151
call('hd_root -PPLUGINS=FDC_InternalAlignment %s -PNTHREADS=%i -PEVENTS_TO_KEEP=%i' % (filename, nThreads, nEvents), shell=True)
52+
call('mv hd_root.root FDCInternalAlignIterations/hd_root_Planes_Iter%.2i.root' % nIterations, shell=True)
5253
call(r'root -l -b -q $HALLD_HOME/src/plugins/Alignment/FDC_InternalAlignment/FitScripts/FitCathodeAlignment.C\(\"hd_root.root\"\)',shell=True)
5354
call('ccdb add /FDC/cathode_alignment CathodeAlignment.txt', shell=True)
5455
call('mv Result.png FDCInternalAlignIterations/Result_Iter%.2i.png' % nIterations, shell=True)

0 commit comments

Comments
 (0)