Skip to content

Commit c1be071

Browse files
authored
Merge pull request #57 from Eventdisplay/v2.2-dev3
v2.2 dev3 - 30 ns SST integration window
2 parents 54a3642 + ba57b2f commit c1be071

37 files changed

+85
-101
lines changed

DSTgeneration/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ Execute:
2121
./generateDSTFiles.sh
2222
```
2323

24-
Output is written to:
24+
Output is written to:
2525

2626
```
2727
$CTA_USER_DATA_DIR/DST_testDevelopment_prod5/
2828
```
29-

DSTgeneration/generateDSTFiles.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
#
2+
#
33
# generate DST files
44
#
55

@@ -111,7 +111,7 @@ elif [[ $SITE == "Paranal" ]]; then
111111
OFILE="${ODIR}/${N}-${TYPE}-Emin05TeV"
112112
$EVNDISPSYS/bin/CTA.convert_hessio_to_VDST -a ${ARRAY} -minenergy 5. -c ${IPR} -o ${OFILE}.root ${MCFILE} > ${OFILE}.log
113113

114-
# superE
114+
# superE
115115
OFILE="${ODIR}/${N}-${TYPE}-Emin20TeV"
116116
$EVNDISPSYS/bin/CTA.convert_hessio_to_VDST -a ${ARRAY} -minenergy 20. -c ${IPR} -o ${OFILE}.root ${MCFILE} > ${OFILE}.log
117117

IPRgeneration/convertToDST.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
11
#!/bin/sh
2-
# Produce IPR graphs from NSB simulations
3-
# Converts first simtel_array ouput file to DST
2+
# Converts first simtel_array ouput file to DST for IPR generation
43
#
54
# Requires an Eventdisplay installation
65
# including all environmental variables
76
#
87

98
if [ $# -lt 1 ]; then
109
echo "
11-
./produceIPRGraphs.sh <directory with simtel files> [production (default=PROD6; optional PROD5)
10+
./convertToDST.sh <directory with simtel files> [production (default=PROD6; optional PROD5)
1211
"
1312
exit
1413
fi
1514
SCRATCH=${1}
1615
[[ "$2" ]] && PROD=$2 || PROD="PROD6"
1716
CDIR=$(pwd)
1817

19-
if [[ $PROD == "PROD5" ]]; then
20-
RUNPARA="EVNDISP.prod5.reconstruction.runparameter"
21-
else
22-
RUNPARA="EVNDISP.prod6.reconstruction.runparameter"
23-
fi
24-
echo "Using ${RUNPARA} for Production ${PROD}"
25-
2618
FLIST=$(find $SCRATCH -name "*.simtel.gz")
2719

2820
for F in $FLIST

IPRgeneration/mergeIPRGraphs.C

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* eventdisplay analysis
55
*
66
* root -l -q -b 'mergeIPRGraphs.C( "output.root", "inputdirectory/" )'
7-
*.
8-
*. If the output file name contains the word "halfmoon", e.g., prod5-halfmoon-ze-20-IPR.root,
9-
*. then the halfmoon pedestal files are merged.
7+
*
8+
* If the output file name contains the word "halfmoon", e.g., prod5-halfmoon-ze-20-IPR.root,
9+
* then the halfmoon pedestal files are merged.
1010
*/
1111

1212
vector< string > get_file_list( string iFileListName )
@@ -69,4 +69,3 @@ void mergeIPRGraphs( string iMergedFile = "prod6-ze-20-IPR.root",
6969
}
7070
f->Close();
7171
}
72-

IPRgeneration/mergeIPRGraphs.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@ IPRFILE=${2}
1717
CDIR=$(pwd)
1818

1919
# list of files to be merged
20-
FLIST=${SCRATCH}/pedestals-${MOON}-ze-${ZE}.list
20+
FLIST="${SCRATCH}/pedestals.list"
2121
rm -f ${FLIST}
22-
find $SCRATCH -name "*.pedestal.root" > ${FLIST}
22+
find $SCRATCH -name "*.pedestal.root" | sort > ${FLIST}
2323
echo "IPR files to be merged (from ${FLIST}):"
2424
cat ${FLIST}
2525

2626
# merge IPR graphs
2727
root -l -q -b 'mergeIPRGraphs.C( '\"$IPRFILE\"', '\"$FLIST\"' )'
2828

2929
# add log files
30-
for logFileNow in $(ls ${SCRATCH}/*.log)
30+
LOGFILES=$(find $SCRATCH -name "*.log" | sort)
31+
for logFileNow in $LOGFILES
3132
do
3233
logFile=$(basename -- "$logFileNow")
3334
fileTitle="${logFile%.*}"

IPRgeneration/produceIPRGraphs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [ $# -lt 1 ]; then
1313
"
1414
exit
1515
fi
16-
SCRATCH=${1}
16+
SCRATCH=$(realpath "$1")
1717
[[ "$2" ]] && PROD=$2 || PROD="PROD6"
1818
CDIR=$(pwd)
1919

@@ -38,7 +38,7 @@ do
3838
-sourcefile ${SCRATCH}/${FILEN}.dst.root \
3939
-runmode=1 -singlepedestalrootfile=1 \
4040
-donotusepeds -usePedestalsInTimeSlices=0 \
41-
-calibrationsumwindow=10 -calibrationsumfirst=0 \
41+
-calibrationsumwindow=30 -calibrationsumfirst=0 \
4242
-reconstructionparameter ${RUNPARA} \
4343
-nopedestalsintimeslices -combine_pedestal_channels ${ADC}
4444

IPRgeneration/producePedestals.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ SCRATCH="."
4141

4242
if [[ $PROD == "PROD5" ]]; then
4343
TELTYPES=( LST MST-FlashCam MST-NectarCam SST )
44-
TELTYPES=( SST )
4544
else
4645
TELTYPES=( LST MST-FlashCam MST-NectarCam SST SCT MAGIC )
4746
SITE=( CTA_NORTH CTA_SOUTH CTA_NORTH CTA_SOUTH CTA_SOUTH CTA_NORTH )

IPRgeneration/run_prod6_all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
if [ $# -lt 1 ]; then
66
echo "
7-
./run_all.sh <producePedestals/convertToDST/produceIPRGraphs/mergeIPRGraphs>
7+
./run_all.sh <producePedestals/convertToDST/produceIPRGraphs/mergeIPRGraphs>
88
"
99
exit
1010
fi

IPRgeneration/setupPackage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source /cvmfs/sw.cta-observatory.org/software/centos7/gcc48_noOpt/tools/gsl/v1.1
77

88
# Main directory
99
# USER: Change this path to the grid package you want to use! # TODO
10-
export CTA_PROD6_PATH="/cvmfs/sw.cta-observatory.org/software/centos7/gcc48_noOpt/simulations/corsika_simtelarray/2020-06-29/"
10+
export CTA_PROD6_PATH="/cvmfs/sw.cta-observatory.org/software/centos7/gcc83_noOpt/simulations/corsika_simtelarray/2020-06-29b/"
1111
export CTA_PATH=${CTA_PROD6_PATH}
1212

1313
# CORSIKA and SIMTEL

analysis/CTA.EFFAREA.sub_analyse_list.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ h_cpu="11:29:00"
1212
h_vmem="40000M"
1313
tmpdir_size="15G"
1414

15-
if [ $# -lt 6 ]
15+
if [ $# -lt 6 ]
1616
then
1717
echo ""
1818
echo "./CTA.EFFAREA.sub_analyse_list.sh <subarray list> <cutfile template> <analysis parameter file> <output subdirectory> <data set> [filling mode] [qsub options] [job_dir] [direction (e.g. _180deg)]"
@@ -24,7 +24,7 @@ then
2424
echo " template for gamma/hadron cut file"
2525
echo " (suffix must be .gamma/.CRbck ; this will be added by this script)"
2626
echo " examples can be found in $CTA_EVNDISP_AUX_DIR/GammaHadronCutFiles"
27-
echo
27+
echo
2828
echo "<analysis parameter file>"
2929
echo " file with analysis parameter"
3030
echo " examples can be found in $CTA_EVNDISP_AUX_DIR/ParameterFiles/"
@@ -64,9 +64,9 @@ if [ -n $7 ]
6464
then
6565
QSUBOPT="$7"
6666
fi
67-
QSUBOPT=${QSUBOPT//_X_/ }
68-
QSUBOPT=${QSUBOPT//_M_/-}
69-
QSUBOPT=${QSUBOPT//\"/}
67+
QSUBOPT=${QSUBOPT//_X_/ }
68+
QSUBOPT=${QSUBOPT//_M_/-}
69+
QSUBOPT=${QSUBOPT//\"/}
7070

7171
# set directories
7272
source ../setSoftwarePaths.sh $DSET
@@ -76,7 +76,7 @@ CDIR="$CTA_EVNDISP_AUX_DIR/GammaHadronCutFiles/"
7676
# read values from parameter file
7777
if [ ! -e $ANAPAR ]
7878
then
79-
echo "error: analysis parameter file not found: $ANAPAR"
79+
echo "error: analysis parameter file not found: $ANAPAR"
8080
exit
8181
fi
8282
echo "reading analysis parameter from $ANAPAR"
@@ -106,7 +106,7 @@ mkdir -p $QSHELLDIR
106106
mkdir -p $QDIR
107107

108108
#################################################
109-
# set particle types
109+
# set particle types
110110
# (don't expect to have cone for all data sets)
111111
if [ $GMOD = "0" ] || [ $GMOD = "3" ]
112112
then

0 commit comments

Comments
 (0)