Skip to content

Commit 042b789

Browse files
authored
Merge pull request #40 from Eventdisplay/v1.10-dev-2
v1.10 - dev - minor improvements for handling of double slashes
2 parents e0b0000 + d026e86 commit 042b789

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

CTA.runAnalysis.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ RUN="$2"
4949
[[ "$5" ]] && MST=$5 || MST="2"
5050
[[ "$6" ]] && SST=$6 || SST="2"
5151
[[ "$7" ]] && SCMST=$7 || SCMST="2"
52-
[[ "$8" ]] && PDIR=${8} || PDIR="$CTA_USER_LOG_DIR/"
52+
[[ "$8" ]] && PDIR=${8} || PDIR="${CTA_USER_LOG_DIR%/}/"
5353
echo "Telescope multiplicities: LST ${LST} MST ${MST} SST ${SST} SCMST ${SCMST}"
5454

5555
#####################################
@@ -60,7 +60,7 @@ QSUBOPT="_M_P_X_cta_high_X__M_js_X_9"
6060

6161
#####################################
6262
# output directory for script parameter files
63-
mkdir -p "$PDIR/tempRunParameterDir/"
63+
mkdir -p "${PDIR%/}/tempRunParameterDir/"
6464

6565
#####################################
6666
# analysis dates and table dates
@@ -270,6 +270,7 @@ then
270270
SITE="${SITE}-NSB5x"
271271
fi
272272
EDM="-sq50-LL"
273+
EDM="-sq60-LL"
273274
if [[ $P2 == *"DL2plus"* ]]; then
274275
EDM="-sq10-LL-DL2plus"
275276
fi
@@ -334,7 +335,7 @@ then
334335
else
335336
SITE="${SITE}-dark"
336337
fi
337-
EDM="-sq10-LL"
338+
EDM="-sq20-LL"
338339
if [[ $P2 == *"DL2plus"* ]]; then
339340
EDM="-sq10-LL-DL2plus"
340341
fi
@@ -399,7 +400,7 @@ then
399400
for ((i = 0; i < ${#PARTICLE[@]}; i++ ))
400401
do
401402
N=${PARTICLE[$i]}
402-
LIST=${CTA_USER_DATA_DIR}/analysis/AnalysisData/FileList_${ARRAYDIR}/${SITE}/${N}.list
403+
LIST=${CTA_USER_DATA_DIR%/}/analysis/AnalysisData/FileList_${ARRAYDIR}/${SITE}/${N}.list
403404

404405
echo "READING SIMTEL FILE LIST $LIST"
405406
if [[ ! -e ${LIST} ]]; then
@@ -427,7 +428,7 @@ if [[ ! -e ${ARRAYDIR}/$ARRAY ]]; then
427428
exit
428429
fi
429430
NXARRAY=$(cat ${ARRAYDIR}/$ARRAY)
430-
NFILARRAY=$PDIR/tempRunParameterDir/temp.$ARRAY.list
431+
NFILARRAY=${PDIR%/}/tempRunParameterDir/temp.$ARRAY.list
431432
rm -f "$NFILARRAY"
432433
touch "$NFILARRAY"
433434
for A in $NXARRAY
@@ -551,7 +552,7 @@ do
551552
then
552553
TMVATYPF=NIM${NIMAGESMIN}LST${LST}MST${MST}SST${SST}
553554
fi
554-
PARA="$PDIR/tempRunParameterDir/scriptsInput.${ID}${ETYPF}${AZ}.${SITE}${AZ}${OOTIME}.runparameter"
555+
PARA="${PDIR%/}/tempRunParameterDir/scriptsInput.${ID}${ETYPF}${AZ}.${SITE}${AZ}${OOTIME}.runparameter"
555556
rm -f "$PARA"
556557
touch "$PARA"
557558
echo "WRITING PARAMETERFILE $PARA"

analysis/CTA.EVNDISP.sub_convert_and_analyse_MC_VDST_ArrayJob.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ FSCRIPT="CTA.EVNDISP.qsub_convert_and_analyse_MC_VDST_ArrayJob"
6868

6969
# output directory for shell scripts and run lists
7070
# log files
71-
QLOG=$CTA_USER_LOG_DIR/jobs/$(uuidgen)
71+
QLOG="${CTA_USER_LOG_DIR%/}/jobs/$(uuidgen)"
7272
SHELLDIR=${QLOG}
7373
mkdir -p $QLOG
7474
mkdir -p "$SHELLDIR"

install/prepareProductionBinaries.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ install_analysis_files()
4040
cd $AUXDIR
4141
rm -rf Eventdisplay_AnalysisFiles_CTA
4242
echo "Analysis file installation into $AUXDIR/Eventdisplay_AnalysisFiles_CTA/"
43-
if [[ $VERSION == "main" ]]; then
44-
git clone [email protected]:Eventdisplay/Eventdisplay_AnalysisFiles_CTA.git
45-
else
46-
git clone -b ${VERSION} [email protected]:Eventdisplay/Eventdisplay_AnalysisFiles_CTA.git
47-
fi
43+
git clone [email protected]:Eventdisplay/Eventdisplay_AnalysisFiles_CTA.git
44+
#if [[ $VERSION == "main" ]]; then
45+
# git clone [email protected]:Eventdisplay/Eventdisplay_AnalysisFiles_CTA.git
46+
#else
47+
# git clone -b ${VERSION} [email protected]:Eventdisplay/Eventdisplay_AnalysisFiles_CTA.git
48+
#fi
4849
}
4950

5051
install_hessio()

setSoftwarePaths.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export ROOTSYS=/afs/ifh.de/group/cta/cta/software/root/root-6.20.04_build/
2323

2424
# main working directory (logs and code)
2525
DSET="${1}"
26-
export WORKDIR="${CTA_USER_WORK_DIR}/analysis/AnalysisData/${DSET}"
26+
export WORKDIR="${CTA_USER_WORK_DIR%/}/analysis/AnalysisData/${DSET}"
2727
# main data results
2828
# export DATADIR="${CTA_USER_DATA_DIR}/analysis/AnalysisData/${DSET}"
2929

0 commit comments

Comments
 (0)