Skip to content

Commit 25bfda8

Browse files
authored
Merge pull request #33 from VERITAS-Observatory/v490-dev-0.2
Draft: v490 - alpha.2
2 parents 5f69905 + 2b1875f commit 25bfda8

File tree

34 files changed

+332
-714
lines changed

34 files changed

+332
-714
lines changed

DispBDTs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
V6*

DispBDTs/README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
# Support files for dispBDT angular reconstruction
22

33
dispBDT files are provided in three different bins of zenith angle:
4-
- small (<40 deg): use dispBDT files trained for 20 deg zenith angle
5-
- medium (40 deg < ze < 50deg): use dispBDT files trained for 50 deg zenith angle
6-
- large (>50deg): use dispBDT files trained for 60 deg zenith angle
4+
- small (SZE; <38 deg): use dispBDT files trained for 20 deg zenith angle
5+
- medium (MZE; 38 deg < ze < 48 deg): use dispBDT files trained for 45 deg zenith angle
6+
- large (LZE: 48 deg < ze < 58 deg): use dispBDT files trained for 55 deg zenith angle
7+
- very large (XZE: >= 58 deg): use dispBDT files trained for 60 deg zenith angle
78

89
Note that this is encoded both in the script `copy_dispBDTs.sh` as in the
910
analysis steering scripts for MSCW.
11+
12+
VERITAS epochs and operation types supported:
13+
- V6 nominal high voltage
14+
- V6redHV reduced high voltage
15+
- V5 nominal high voltage
16+
- V4 nominal high voltage

DispBDTs/copy_dispBDTs.sh

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
#!/bin/bash
22
# copy dispBDT files from IRF production site
33
#
4+
# hardwired
5+
# - SIMTYPE (e.g., CARE_June2020)
6+
# - ANALYSISTYPE (e.g., AP)
47
#
58

69
IRFVERSION=$(cat ../IRFVERSION)
7-
ANALYSISTYPE="TS"
10+
ANALYSISTYPE="AP"
811
SIMTYPE="CARE_June2020"
912

10-
for Z in LZE MZE SZE
13+
echo "COPY dispBDT for ${IRVERSION}, analysis type ${ANALYSISTYPE}, and simulation type ${SIMTYPE}"
14+
15+
for Z in XZE LZE MZE SZE
1116
do
12-
if [[ $Z == "LZE" ]]; then
17+
if [[ $Z == "XZE" ]]; then
1318
ZE="60deg"
19+
elif [[ $Z == "LZE" ]]; then
20+
ZE="55deg"
1421
elif [[ $Z == "MZE" ]]; then
15-
ZE="50deg"
22+
ZE="45deg"
1623
elif [[ $Z == "SZE" ]]; then
1724
ZE="20deg"
1825
fi
@@ -26,16 +33,33 @@ do
2633
fi
2734
for E in $EPOCHS
2835
do
29-
ODIR="${E}_${A}/${Z}"
36+
echo "EPOCH ${E}"
37+
ODIR="${E}_${A}_${ANALYSISTYPE}/${Z}"
3038
mkdir -p ${ODIR}
3139
IDIR="${VERITAS_IRFPRODUCTION_DIR}/${IRFVERSION}/${ANALYSISTYPE}/${SIMTYPE}"
3240
IDIR="${IDIR}/${E}_${A}_gamma/TMVA_AngularReconstruction/"
3341
IDIR="${IDIR}/ze${ZE}/"
34-
if [[ -d ${IDIR} ]]; then
35-
cp -v ${IDIR}/BDTDisp/*.xml ${ODIR}
36-
cp -v ${IDIR}/BDTDispError/*.xml ${ODIR}
37-
fi
42+
# check log file for successful training
43+
for B in BDTDisp BDTDispError BDTDispSign
44+
do
45+
if [[ -d ${IDIR}/${B} ]]; then
46+
CHECKF=$(tail -n 1 ${IDIR}/${B}/mvaAngRes_${ZE}-${B}.log | grep -v Delete | wc -l)
47+
if [[ $CHECKF != "0" ]]; then
48+
echo "ERROR training file not complete in ${IDIR}/${B}/"
49+
else
50+
# expect 4=NTel xml files
51+
NFILE=$(ls -1 ${IDIR}/${B}/*.xml | wc -l)
52+
if [[ $NFILE == "4" ]]; then
53+
cp -v -u ${IDIR}/${B}/*.xml ${ODIR}
54+
cp -v -u ${IDIR}/${B}/*.log ${ODIR}
55+
else
56+
echo "ERROR found only $NFILE xml files (expected 4) in ${IDIR}/${B}/"
57+
fi
58+
fi
59+
else
60+
echo "ERROR directory not found: ${IDIR}/${B}"
61+
fi
62+
done
3863
done
3964
done
4065
done
41-

GammaHadronCutFiles/ANASUM.GammaHadron-Cut-NTel2-Extended025-Moderate-TMVA-BDT.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ i) stereo quality cuts
1010
successfull core and direction reconstruction (>=0.)
1111
* arraychi2 0. 1.e30
1212
distance of core position to telescopes [m]
13-
* arraycore -1. 350.
13+
* arraycore -1. 400.
1414

1515
size of the camera [deg], all events with direction
1616
outside of that intervall are ignored

GammaHadronCutFiles/ANASUM.GammaHadron-Cut-NTel2-Extended050-Moderate-TMVA-BDT.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ i) stereo quality cuts
1010
successfull core and direction reconstruction (>=0.)
1111
* arraychi2 0. 1.e30
1212
distance of core position to telescopes [m]
13-
* arraycore -1. 350.
13+
* arraycore -1. 400.
1414

1515
size of the camera [deg], all events with direction
1616
outside of that intervall are ignored

GammaHadronCutFiles/ANASUM.GammaHadron-Cut-NTel2-PointSource-Hard-TMVA-BDT-weak.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ i) stereo quality cuts
1010
successfull core and direction reconstruction (>=0.)
1111
* arraychi2 0. 1.e30
1212
distance of core position to telescopes [m]
13-
* arraycore -1. 350.
13+
* arraycore -1. 400.
1414

1515
size of the camera [deg], all events with direction
1616
outside of that intervall are ignored

GammaHadronCutFiles/ANASUM.GammaHadron-Cut-NTel2-PointSource-Hard-TMVA-BDT.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ i) stereo quality cuts
1010
successfull core and direction reconstruction (>=0.)
1111
* arraychi2 0. 1.e30
1212
distance of core position to telescopes [m]
13-
* arraycore -1. 350.
13+
* arraycore -1. 400.
1414

1515
size of the camera [deg], all events with direction
1616
outside of that intervall are ignored

GammaHadronCutFiles/ANASUM.GammaHadron-Cut-NTel2-PointSource-Moderate-TMVA-BDT.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ i) stereo quality cuts
1010
successfull core and direction reconstruction (>=0.)
1111
* arraychi2 0. 1.e30
1212
distance of core position to telescopes [m]
13-
* arraycore -1. 350.
13+
* arraycore -1. 400.
1414

1515
size of the camera [deg], all events with direction
1616
outside of that intervall are ignored

GammaHadronCutFiles/ANASUM.GammaHadron-Cut-NTel2-PointSource-Moderate-TMVA-Preselection.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ i) stereo quality cuts
1010
successfull core and direction reconstruction (>=0.)
1111
* arraychi2 0. 1.e30
1212
distance of core position to telescopes [m]
13-
* arraycore -1. 350.
13+
* arraycore -1. 400.
1414

1515
size of the camera [deg], all events with direction
1616
outside of that intervall are ignored

GammaHadronCutFiles/ANASUM.GammaHadron-Cut-NTel2-PointSource-Moderate.dat

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ i) stereo quality cuts
1010
successfull core and direction reconstruction (>=0.)
1111
* arraychi2 0. 1.e30
1212
distance of core position to telescopes [m]
13-
* arraycore -1. 350.
13+
* arraycore -1. 400.
1414

1515
size of the camera [deg], all events with direction
1616
outside of that intervall are ignored
@@ -24,6 +24,11 @@ second largest image size
2424
cut on mean emission height
2525
* emissionheight 6. 1.e12
2626

27+
cut on direction reconstruction quality
28+
(applies to Disp method only)
29+
Third parameter: require sucessful reconstruction for both methods
30+
* arraydispdiff -1. 0.5 1
31+
2732
Telescope multiplicity
2833
arrayltrig <bit coded telescope combination> <0=off, 1=on> <epoch> <telescope combinations for which this selection is valid>
2934
* arrayltrig 0 0

0 commit comments

Comments
 (0)