Skip to content

Commit 5f69905

Browse files
authored
Merge pull request #29 from VERITAS-Observatory/v490-dev-0.1
v490-alpha
2 parents 6bdd231 + 9271e27 commit 5f69905

File tree

9 files changed

+357
-14
lines changed

9 files changed

+357
-14
lines changed

DispBDTs/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Support files for dispBDT angular reconstruction
2+
3+
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
7+
8+
Note that this is encoded both in the script `copy_dispBDTs.sh` as in the
9+
analysis steering scripts for MSCW.

DispBDTs/copy_dispBDTs.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
# copy dispBDT files from IRF production site
3+
#
4+
#
5+
6+
IRFVERSION=$(cat ../IRFVERSION)
7+
ANALYSISTYPE="TS"
8+
SIMTYPE="CARE_June2020"
9+
10+
for Z in LZE MZE SZE
11+
do
12+
if [[ $Z == "LZE" ]]; then
13+
ZE="60deg"
14+
elif [[ $Z == "MZE" ]]; then
15+
ZE="50deg"
16+
elif [[ $Z == "SZE" ]]; then
17+
ZE="20deg"
18+
fi
19+
echo $Z
20+
for A in ATM61 ATM62
21+
do
22+
if [[ ${A} == "ATM62" ]]; then
23+
EPOCHS=$(cat ../IRF_EPOCHS_SUMMER.dat | sort -u)
24+
else
25+
EPOCHS=$(cat ../IRF_EPOCHS_WINTER.dat | sort -u)
26+
fi
27+
for E in $EPOCHS
28+
do
29+
ODIR="${E}_${A}/${Z}"
30+
mkdir -p ${ODIR}
31+
IDIR="${VERITAS_IRFPRODUCTION_DIR}/${IRFVERSION}/${ANALYSISTYPE}/${SIMTYPE}"
32+
IDIR="${IDIR}/${E}_${A}_gamma/TMVA_AngularReconstruction/"
33+
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
38+
done
39+
done
40+
done
41+
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
cut values for quality and gamma hadron cuts
2+
========================================================
3+
4+
Moderate point source cuts (box cuts)
5+
6+
========================================================
7+
All lines without a '*' in the first column are ignored!
8+
--------------------------------------------------------
9+
i) stereo quality cuts
10+
successfull core and direction reconstruction (>=0.)
11+
* arraychi2 0. 1.e30
12+
distance of core position to telescopes [m]
13+
* arraycore -1. 350.
14+
15+
size of the camera [deg], all events with direction
16+
outside of that intervall are ignored
17+
* cameraedge -1. 2.00
18+
19+
second largest image size
20+
(this depends on the state of the instrument)
21+
* sizesecondmax 400. 1.e30 V4
22+
* sizesecondmax 400. 1.e30 V5
23+
* sizesecondmax 600. 1.e30 V6
24+
cut on mean emission height
25+
* emissionheight 6. 1.e12
26+
27+
Telescope multiplicity
28+
arrayltrig <bit coded telescope combination> <0=off, 1=on> <epoch> <telescope combinations for which this selection is valid>
29+
* arrayltrig 0 0
30+
T1
31+
* arrayltrig 1 0
32+
T2
33+
* arrayltrig 2 0
34+
T1/T2
35+
* arrayltrig 3 1
36+
T3
37+
* arrayltrig 4 0
38+
T1/T3 V4: unlikely to get a 2-tel gamma-ray event with T1 and T3
39+
* arrayltrig 5 0 V4 1234
40+
* arrayltrig 5 1 V5
41+
* arrayltrig 5 1 V6
42+
T2/T3
43+
* arrayltrig 6 1 V4
44+
T2/T3 and V5/V6: unlikely to get a 2-tel gamma-ray event with T2 and T3
45+
* arrayltrig 6 0 V5 1234
46+
* arrayltrig 6 0 V6 1234
47+
T1/T2/T3
48+
* arrayltrig 7 1
49+
T4
50+
* arrayltrig 8 0
51+
T1/T4 and V4: telescopes too close to each other
52+
* arrayltrig 9 0 V4
53+
T1/T4 and V5/V6: unlikely to get a 2-tel gamma-ray event with T1 and T4
54+
* arrayltrig 9 0 V5 1234
55+
* arrayltrig 9 0 V6 1234
56+
T2/T4 and V4: unlikely to get a 2-tel gamma-ray event with T2 and T4
57+
* arrayltrig 10 0 V4 1234
58+
* arrayltrig 10 1 V5
59+
* arrayltrig 10 1 V6
60+
T1/T2/T4
61+
* arrayltrig 11 1
62+
T3/T4
63+
* arrayltrig 12 1
64+
T1/T3/T4
65+
* arrayltrig 13 1
66+
T2/T3/T4
67+
* arrayltrig 14 1
68+
T1/T2/T3/T4
69+
* arrayltrig 15 1
70+
71+
ii) direction cut [deg2]
72+
* arraytheta2 -1. 0.008
73+
74+
iii) gamma hadron cuts:
75+
b) mean scaled width cut (use cut selector 0 in runlist)
76+
* arraymscw -1.2 0.5
77+
* arraymscl -1.2 0.7
78+
79+
iv) energy reconstruction cuts
80+
echi2 is a measure of the difference between the energies
81+
estimated per individual telescope
82+
* arrayechi2 0. 99999.
83+
cut on energy of reconstruction shower (on linear energy scale, in [TeV])
84+
* arrayerec 0. 1.e10

IRFVERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v487
1+
v490

IRF_EPOCHS_SUMMER.dat

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
V6_2012_2013a
2+
V6_2012_2013b
3+
V6_2013_2014a
4+
V6_2013_2014b
5+
V6_2014_2015
6+
V6_2015_2016
7+
V6_2016_2017
8+
V6_2017_2018
9+
V6_2018_2019
10+
V6_2019_2019s
11+
V6_2020_2020s
12+
V6_2021_2021s

IRF_EPOCHS_WINTER.dat

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
V6_2012_2013a
2+
V6_2012_2013b
3+
V6_2013_2014a
4+
V6_2013_2014b
5+
V6_2014_2015
6+
V6_2015_2016
7+
V6_2016_2017
8+
V6_2017_2018
9+
V6_2018_2019
10+
V6_2019_2020w
11+
V6_2020_2021w
12+
V6_2021_2022w
Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
eventdisplay reconstruction parameter file
2+
===========================================
3+
next-neighbour cleaning (no angular DISP) - v4x versions
4+
===========================================
5+
6+
Note: all line without '*' in the beginning are ignored
7+
8+
Remember that after changing any values here, you have to redo lookup tables,
9+
effective areas and radial acceptances
10+
(so don't do it)
11+
12+
The following file describes the reconstruction parameters for eventdisplay:
13+
14+
i) trace integration and image cleaning parameter
15+
16+
ii) quality cuts applied before the array analysis
17+
(reconstruction of shower core and direction).
18+
19+
Each set of cuts listed below correspond to one set of array parameters in the
20+
eventdisplay output file (showerpars tree):
21+
for example: first set of cuts to Xcore[0], Ycore[0], etc., second set to Xcore[1], Ycore[1], ...
22+
23+
The maximum number of different set is 100
24+
(can be changed in VGlobalRunParameter: variable VDST_MAXRECMETHODS
25+
26+
mscw_energy reads the results of one set only, choose with -arrayrecid=RECID
27+
(e.g. for cut set 13: -arrayrecid=13)
28+
29+
(Note: There is some confusion between the words method and cut set in the array analysis code of
30+
eventdisplay.)
31+
32+
Note that these values override parameters given at the command line (!)
33+
---------------------------------------------------------------------------------------------------
34+
---------------------------------------------------------------------------------------------------
35+
36+
37+
i) trace integration and image cleaning parameter
38+
--------------------------------------------------
39+
40+
trace integration <integration method (0=off/1=default/2=sliding window)>
41+
* -1 FADCANALYSIS 2
42+
double pass method
43+
Par1: <doublepass (on=1, off=0)>
44+
Par2: <integration window length for pass 1>
45+
Par3: <integration method for pass 1 (1/2)>
46+
Par4: <double pass error option (0/1)> (don't change if you don't understand)
47+
Par5: <maximum time difference between LG and HG T0 (default -4 samples)>
48+
* -1 FADCDOUBLEPASS 0 6 2 0 -4
49+
trace integration window <window 1> <window 2>
50+
* -1 FADCSUMMATIONWINDOW 6 6
51+
trace integration start (for window 1 for integration method 1)
52+
Par1: <sample # of window start>
53+
Par2: <shift of window start for double pass>
54+
Par3: <timing method used for calculation of window start (FIXED/TZERO/TAVERAGE)>
55+
Par4: <max difference between T0 and trace integration start>
56+
* -1 FADCSUMMATIONSTART 0 0 TAVERAGE
57+
58+
image cleaning <method=TWOLEVELCLEANING/TIMECLUSTERCLEANING/TIMETWOLEVEL/CLUSTERCLEANING> <FIXED/VARIABLE>
59+
* -1 IMAGECLEANINGMETHOD TIMENEXTNEIGHBOUR FIXED
60+
probability to get fake image from NSB for this readout window
61+
* -1 IMAGECLEANING_FAKEPROBABILITY 0.5E-3
62+
* -1 IMAGECLEANING_ACTIVEMULTIPLICITIES 4NN 2NNp1 3NN 2NN
63+
* -1 WRITEGRAPHSTOFILE TRUE
64+
65+
image calculation at the edge of the camera <start fit for image with at least this loss> <min number of tubes>
66+
* -1 LLEDGEFIT 0.05 5
67+
68+
quality cut on distance of image/border pixel (applied for all cuts defined below)
69+
(this is currently used for plotting only)
70+
-1 BRIGHTSTARS CATALOGUENAME MIN_B_MAGNITUDE MIN_DISTANCE_DEG <apply cut for images with less then minimum number of tubes>
71+
* -1 BRIGHTSTARS Hipparcos_MAG8_1997.dat 3.0 0. 15
72+
73+
ii) quality cuts applied before the array analysis
74+
--------------------------------------------------
75+
76+
USAGE:
77+
78+
to start a new set of cuts:
79+
80+
'* -1 RECMETHOD 4'
81+
82+
syntax:
83+
84+
<telescope type> <variable name> <variable value>
85+
86+
all line without '*' in the beginning are ignored
87+
88+
all operators are '>' or '<' (except for number of images, where it is '>=')
89+
90+
DEFAULTS:
91+
minimum number of images required for stereo reconstruction
92+
-1 MNIMAGE 2
93+
minimum angle between image axes for two telescope analysis [deg]
94+
-1 MINANGLE 5.
95+
minimum number of channels for all telescopes
96+
-1 MINTUBES 4
97+
maximum number of low gain channels per telescope
98+
-1 MAXLOWGAIN 5000
99+
minimum local distance for all telescopes [deg]
100+
-1 MINDIST -1.e3
101+
maximum local distance for all telescopes [deg]
102+
-1 MAXDIST 1.e3
103+
minimum alpha for all telescopes [deg]
104+
-1 MINALPHA -1.e3
105+
maximum alpha for all telescopes [deg]
106+
-1 MAXALPHA 1.e3
107+
minimum image size for all telescopes [dc]
108+
-1 MINSIZE 400
109+
ignore all pointing corrections (default: off)
110+
-1 USEEVNPOINTING 0
111+
maximum loss of image size on edge of the camera [%]
112+
-1 MAXLOSS 0.05
113+
maximum width/length (to remove images to close to the telescopes)
114+
-1 MAXWIDTHLENGTH 1.e10
115+
116+
---------------------------------------------------------------------------------------------------
117+
---------------------------------------------------------------------------------------------------
118+
Set 0 = default reconstruction method
119+
120+
* -1 RECMETHOD 4
121+
* -1 MINANGLE 10.
122+
* -1 MINTUBES 5
123+
* -1 MINSIZE 100
124+
* -1 MAXLOSS 0.2
125+
* -1 MINWIDTH 0.02
126+
* -1 MAXDIST 1.75
127+
128+
======== IMPORTANT IMPORTANT ============
129+
ignore the following lines for regular data analysis
130+
-1 MCONLY
131+
======== IMPORTANT IMPORTANT ============
132+
133+
Set 1 = (placeholder, as this is a no-disp file)
134+
135+
* -1 RECMETHOD 4
136+
* -1 MINANGLE 10.
137+
* -1 MINTUBES 5
138+
* -1 MINSIZE 100
139+
* -1 MAXLOSS 0.2
140+
* -1 MINWIDTH 0.02
141+
* -1 MAXDIST 1.75
142+
143+
==============================
144+
3-telescope combinations
145+
==============================
146+
147+
Set 2 = T1 off default reconstruction method
148+
149+
* -1 RECMETHOD 4
150+
* -1 MINANGLE 10.
151+
* -1 MINTUBES 5
152+
* -1 MINSIZE 100
153+
* -1 MAXLOSS 0.2
154+
* -1 MINWIDTH 0.02
155+
* -1 MAXDIST 1.75
156+
* 1 USEIMAGE 0
157+
158+
Set 3 = T2 off default reconstruction method
159+
160+
* -1 RECMETHOD 4
161+
* -1 MINANGLE 10.
162+
* -1 MINTUBES 5
163+
* -1 MINSIZE 100
164+
* -1 MAXLOSS 0.2
165+
* -1 MINWIDTH 0.02
166+
* -1 MAXDIST 1.75
167+
* 2 USEIMAGE 0
168+
169+
Set 4 = T3 off default reconstruction method
170+
171+
* -1 RECMETHOD 4
172+
* -1 MINANGLE 10.
173+
* -1 MINTUBES 5
174+
* -1 MINSIZE 100
175+
* -1 MAXLOSS 0.2
176+
* -1 MINWIDTH 0.02
177+
* -1 MAXDIST 1.75
178+
* 3 USEIMAGE 0
179+
180+
Set 5 = T4 off default reconstruction method
181+
182+
* -1 RECMETHOD 4
183+
* -1 MINANGLE 10.
184+
* -1 MINTUBES 5
185+
* -1 MINSIZE 100
186+
* -1 MAXLOSS 0.2
187+
* -1 MINWIDTH 0.02
188+
* -1 MAXDIST 1.75
189+
* 4 USEIMAGE 0
190+

ParameterFiles/EVNDISP.reconstruction.runparameter.v48x renamed to ParameterFiles/EVNDISP.reconstruction.runparameter.v4x

File renamed without changes.

0 commit comments

Comments
 (0)