Skip to content

Commit 1549f9b

Browse files
committedApr 13, 2015
Complete update to iterative alignment to work from a single iterAlign file
1 parent ce34ba4 commit 1549f9b

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed
 

‎CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,6 @@ install (CODE
235235
EXECUTE_PROCESS(COMMAND ln -sf ${PROJECT_SOURCE_DIR}/tools/pyroplot/pyroplot.py ${PROJECT_SOURCE_DIR}/bin/pyroplot)
236236
EXECUTE_PROCESS(COMMAND ln -sf ${PROJECT_SOURCE_DIR}/tools/parsepede/parsemilleout.sh ${PROJECT_SOURCE_DIR}/bin/parsemilleout.sh)
237237
EXECUTE_PROCESS(COMMAND ln -sf ${PROJECT_SOURCE_DIR}/tools/resIntoSteer.py ${PROJECT_SOURCE_DIR}/bin/resIntoSteer.py)
238-
EXECUTE_PROCESS(COMMAND ln -sf ${PROJECT_SOURCE_DIR}/tools/calculatePValue.py ${PROJECT_SOURCE_DIR}/bin/calculatePValue.py )
239-
EXECUTE_PROCESS(COMMAND ln -sf ${PROJECT_SOURCE_DIR}/tools/calculatePValue.pyc ${PROJECT_SOURCE_DIR}/bin/calculatePValue.pyc )
240238
EXECUTE_PROCESS(COMMAND ln -sf ${PROJECT_SOURCE_DIR}/tools/iterAlign.py ${PROJECT_SOURCE_DIR}/bin/iterAlign )"
241239

242240

Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
RunNumber,BeamEnergy,Threshold,GearGeoFile
2-
105,4.4,6,gear-NEWJAC-DUT-105.xml
3-
252,4,6,gear-252-begin.xml
2+
105,4.4,6,gear-single-Quad-partial-correlator-align.xml
3+
252,4,6,gear_250x50_Indium-k.xml
44
650,4,6,gear_250x50_Indium.xml
55

‎jobsub/examples/GBL/iterativeAlignmentScripts/patRecToAlignmentSingleLoop.sh

+5
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,8 @@ done
125125
if [ "$alignment" == "false" ];then
126126
exit 1
127127
fi
128+
129+
if [ $singleLoop == 1 ];then
130+
echo "You have asked for a single complete run."
131+
exit 1
132+
fi

‎tools/iterAlign.py

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def main():
5454
parser.add_argument('-n', help="The number of iterations", default=1)
5555
parser.add_argument('-i', help="This is the string to identify the output histograms and geometry files",default="DEFAULT" )
5656
parser.add_argument('-r', help="The run number to align",default="DEFAULT")
57+
parser.add_argument('-o', help="option: End after single run with only XYShifts. 1/0",default="0")
5758
args = parser.parse_args()
5859
if args.r == "DEFAULT":
5960
print "No run number given"
@@ -67,6 +68,7 @@ def main():
6768
os.environ["RUN"] = args.r
6869
os.environ["numberOfIterations"] = args.n
6970
os.environ["outputIdentifier"] = args.i
71+
os.environ["singleLoop"] = args.o
7072
#Get the scripts which will actually do the work and location of the example and add to the system path.
7173
itScriptLoc=findIterScripts()
7274
itScriptLocPython=itScriptLoc + "/pythonScripts"

0 commit comments

Comments
 (0)
Please sign in to comment.