1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # ---------------------------------------------------------------- #
|
---|
4 | # README README README README README README README README README #
|
---|
5 | # ---------------------------------------------------------------- #
|
---|
6 | # #
|
---|
7 | # To use this script, you need #
|
---|
8 | # - a computer with access to the FACT database in La Palma #
|
---|
9 | # - a file with the password of a valid mysql-user #
|
---|
10 | # - to define the setup below for #
|
---|
11 | # a) the DB access #
|
---|
12 | # b) the data you want to have #
|
---|
13 | # #
|
---|
14 | # To define the setup, search for SETUP in this script and #
|
---|
15 | # read the details there #
|
---|
16 | # #
|
---|
17 | # Per data request, you get up to 3 files: #
|
---|
18 | # *_internal.dat #
|
---|
19 | # *_collaborators.dat #
|
---|
20 | # *_external.dat (only if binning is 20min or nightly) #
|
---|
21 | # #
|
---|
22 | # Please have in mind that this started as a tool for myself, then #
|
---|
23 | # others started using it. Also the script is not yet finalized. #
|
---|
24 | # In case you find problems and/or have a feature request, please #
|
---|
25 | # send and email to dorner@astro.uni-wuerzburg.de #
|
---|
26 | # #
|
---|
27 | # ---------------------------------------------------------------- #
|
---|
28 | # README README README README README README README README README #
|
---|
29 | # ---------------------------------------------------------------- #
|
---|
30 |
|
---|
31 |
|
---|
32 |
|
---|
33 | # ToDo (notes DD):
|
---|
34 | # ----------------
|
---|
35 | # - do conversion to fluxes using FACT Crab spectrum
|
---|
36 | # - add < 20121212 data for QLA
|
---|
37 | # - new version of zd/th-correction and CU from Aachen when ready
|
---|
38 | # nice-to-have
|
---|
39 | # - add E2dNdE
|
---|
40 | # - functionality to determine start time for seaon-binning
|
---|
41 | # - file as attachment to email for download.php
|
---|
42 |
|
---|
43 | #
|
---|
44 | # content of files (wish list):
|
---|
45 | # -----------------------------
|
---|
46 | # REMARK: keep order of columns to allow for reading with TGraph directly from file: X Y EX EY
|
---|
47 | #
|
---|
48 | # internal
|
---|
49 | # --------
|
---|
50 | # time: time, delta time, start, stop, ontime
|
---|
51 | # flux: excrate, excerr, CU, CUerr, flux, fluxerr corrate, corerr, CUcor CUcorerr, fluxcor, fluxcorerr,
|
---|
52 | # other info on flux: signif, cu-factor, num exc, num sig, num bg
|
---|
53 | # other info: zd th R750cor R750ref
|
---|
54 | #
|
---|
55 | # external (allow only 20min and nightly binning)
|
---|
56 | # --------
|
---|
57 | # time: time, delta time, start, stop
|
---|
58 | # flux: excrate, excerr
|
---|
59 | #
|
---|
60 | # collaborators
|
---|
61 | # -------------
|
---|
62 | # time: time, delta time, start, stop, ontime
|
---|
63 | # flux: excrate, excerr, corrate, corerr, CUcor CUcorerr, fluxcor, fluxcorrerr, significance
|
---|
64 | #
|
---|
65 | # additional information to put:
|
---|
66 | # ------------------------------
|
---|
67 | # timestamp of creation
|
---|
68 | # query (for debugging / answering questions)
|
---|
69 | # policy (adapted for internal/collaborators/external) [define in files to be used also by Send_Data*.sh
|
---|
70 | #
|
---|
71 |
|
---|
72 |
|
---|
73 | function print_policy()
|
---|
74 | {
|
---|
75 | echo "#"
|
---|
76 | echo "# Data Usage Policy: "
|
---|
77 | if [ "$expert" == "no" ]
|
---|
78 | then
|
---|
79 | echo "# Using data from the FACT Quick Look Analysis, you agree to cite the FACT design"
|
---|
80 | echo "# paper (H. Anderhub et al. JINST 8 P6008) and the quick look analysis website "
|
---|
81 | echo "# (https://fact-project.org/monitoring)."
|
---|
82 | echo "#"
|
---|
83 | echo "# References: "
|
---|
84 | echo "# FACT design paper: http://adsabs.harvard.edu/abs/2013JInst...8P6008A"
|
---|
85 | echo "# http://iopscience.iop.org/1748-0221/8/06/P06008 "
|
---|
86 | echo "# FACT Performance Paper: http://adsabs.harvard.edu/abs/2014JInst...9P0012B"
|
---|
87 | echo "# http://iopscience.iop.org/1748-0221/9/10/P10012"
|
---|
88 | echo "# FACT quick look analysis: https://fact-project.org/monitoring"
|
---|
89 | echo "# http://adsabs.harvard.edu/abs/2015arXiv150202582D"
|
---|
90 | echo "# If you intend to use data or information from this website, please let us know for reference."
|
---|
91 | else
|
---|
92 | echo "# As a member, associated member or collaborator of the FACT Collaboration, you have access to internal information."
|
---|
93 | echo "# Any publication using FACT internal information has to have the full FACT author list."
|
---|
94 | fi
|
---|
95 | echo "#"
|
---|
96 | }
|
---|
97 |
|
---|
98 | print_selection()
|
---|
99 | {
|
---|
100 | echo "#"
|
---|
101 | echo "# Your Selection: "
|
---|
102 | sourcename=`mysql --defaults-file=$sqlpw -s -e "SELECT fSourceName FROM Source WHERE fSourceKey="$source`
|
---|
103 | echo "# Source: "$sourcename
|
---|
104 | echo "# Time range: "$nightmin"-"$nightmax
|
---|
105 | echo "# Time format: "$timeunit
|
---|
106 | if [ $bin -lt 0 ]
|
---|
107 | then
|
---|
108 | unit="night(s)"
|
---|
109 | else
|
---|
110 | if [ $bin -eq 0 ]
|
---|
111 | then
|
---|
112 | unit="periods"
|
---|
113 | else
|
---|
114 | unit="minutes"
|
---|
115 | fi
|
---|
116 | fi
|
---|
117 | binning=`echo $bin | sed -e 's/-//'`" "$unit
|
---|
118 | echo "# Binning: "$binning
|
---|
119 | if [ "$expert" != "no" ]
|
---|
120 | then
|
---|
121 | echo "# Additional Internal Selection: "
|
---|
122 | echo "# "`echo $table | sed -e 's/AnalysisResultsRun//'`"-Analysis was used."
|
---|
123 | if [ "$zdmax" != "" ]
|
---|
124 | then
|
---|
125 | echo "# Maximum Zenith Distance: "$zdmax" degree"
|
---|
126 | fi
|
---|
127 | if [ "$thmax" != "" ]
|
---|
128 | then
|
---|
129 | echo "# Maximum Trigger Threshold: "$thmax" DAC counts"
|
---|
130 | fi
|
---|
131 | if [ "$light" != "" ]
|
---|
132 | then
|
---|
133 | echo "# Light Condition Cut: "$lightcut
|
---|
134 | fi
|
---|
135 | if [ "$dust" != "" ]
|
---|
136 | then
|
---|
137 | echo "# Calima Cut: dust < "$dust" ug/cm3"
|
---|
138 | fi
|
---|
139 | if [ "$factorcut" != "" ]
|
---|
140 | then
|
---|
141 | echo "# Factor Cut: zdfactor*thfactor > "$factorcut
|
---|
142 | fi
|
---|
143 | if [ "$usedch" == "yes" ]
|
---|
144 | then
|
---|
145 | echo "# Data quality selection was applied. "
|
---|
146 | if [ "$dch" == "" ]
|
---|
147 | then
|
---|
148 | echo "# Standard data check based on cosmic-ray rate: "$dchstd
|
---|
149 | else
|
---|
150 | echo "# You selected a custom datacheck: "$dch
|
---|
151 | fi
|
---|
152 | fi
|
---|
153 | if [ "$crabfluxconv" != "" ]
|
---|
154 | then
|
---|
155 | echo "# You set a custom conversion to fluxes: "$crabfluxconv" [10^-11 ph/s/cm2]"
|
---|
156 | fi
|
---|
157 | fi
|
---|
158 | echo "#"
|
---|
159 | }
|
---|
160 |
|
---|
161 | function get_results()
|
---|
162 | {
|
---|
163 | # some query parts
|
---|
164 |
|
---|
165 | # these values use the Crab spectrum from HESS 2006
|
---|
166 | # hess 2006 http://www.aanda.org/articles/aa/pdf/2006/39/aa5351-06.pdf
|
---|
167 | # PL.SetParameter(1,-2.63);
|
---|
168 | # PL.SetParameter(0, 3.45e-11);
|
---|
169 | case "$table" in
|
---|
170 | "AnalysisResultsRunLP")
|
---|
171 | zdfactor="(pow(cos(fZenithDistanceMean*PI()/180),3)+14.8/21.9*pow(sin(2*fZenithDistanceMean*PI()/180),5))"
|
---|
172 | #zdfactor="(1/(pow(cos(fZenithDistanceMean*PI()/180),3)+14.8/21.9*pow(sin(2*fZenithDistanceMean*PI()/180),5)))"
|
---|
173 | thfactor="(1-0.00124/1.21*(IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)-500)*(IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)>=500))"
|
---|
174 | # ETh: 1100 GeV
|
---|
175 | crabflux="1.81"
|
---|
176 | ;;
|
---|
177 | "AnalysisResultsRunISDC")
|
---|
178 | zdfactor="pow(cos(fZenithDistanceMean*PI()/180)*exp(1-cos(fZenithDistanceMean*PI()/180)),4.2)"
|
---|
179 | thfactor="(1.18-IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)*0.00062)"
|
---|
180 | # ETh: 1070 GeV
|
---|
181 | crabflux="1.89"
|
---|
182 | ;;
|
---|
183 | "AnalysisResultsRunCutsLC")
|
---|
184 | zdfactor="pow(cos(fZenithDistanceMean*PI()/180)*exp(1-cos(fZenithDistanceMean*PI()/180)),4.5)"
|
---|
185 | thfactor="(1.37-IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)*0.00118)"
|
---|
186 | # ETh: 785 GeV
|
---|
187 | crabflux="3.14"
|
---|
188 | ;;
|
---|
189 | "*")
|
---|
190 | zdfactor="0"
|
---|
191 | thfactor="0"
|
---|
192 | crabflux="0"
|
---|
193 | ;;
|
---|
194 | esac
|
---|
195 |
|
---|
196 | # conversion from crab units to fluxes (if a different value is given in setup
|
---|
197 | if [ "$crabfluxconv" != "" ]
|
---|
198 | then
|
---|
199 | crabflux=$crabfluxconv #e-11
|
---|
200 | fi
|
---|
201 | #echo "crabflux: "$crabflux
|
---|
202 | fluxprec=2
|
---|
203 |
|
---|
204 | # some names and definitions needed several times below
|
---|
205 | # ontime
|
---|
206 | ontime1=" TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn "
|
---|
207 | ontime2=" fOnTimeAfterCuts "
|
---|
208 | ontimeif=" IF(ISNULL(fEffectiveOn), "$ontime2", "$ontime1") "
|
---|
209 | # zd and threshold
|
---|
210 | zenith="fZenithDistance"
|
---|
211 | thresh="IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)"
|
---|
212 | # correction for zd- and th-dependence
|
---|
213 | correvts=" fNumExcEvts/"$zdfactor"/"$thfactor
|
---|
214 | # conversion to CU - stored in each result-table (determined by DD Feb 2019)
|
---|
215 | cufactor="fCU"
|
---|
216 | # some calculations
|
---|
217 | #excerr="ExcErr(SUM(fNumSigEvts), SUM(fNumBgEvts))"
|
---|
218 | excerr="ExcErr(fNumSigEvts, fNumBgEvts)"
|
---|
219 | CU="SUM(fNumExcEvts/"$cufactor")/SUM("$ontimeif")*3600"
|
---|
220 | #CUerr=$excerr"/SUM("$ontimeif")*3600*SUM(fNumExcEvts/"$cufactor")/SUM(fNumExcEvts)"
|
---|
221 | CUerr="SQRT(SUM(POW("$excerr"/"$cufactor",2)))/SUM("$ontimeif")*3600"
|
---|
222 | CUcor="SUM("$correvts"/"$cufactor")/SUM("$ontimeif")*3600"
|
---|
223 | #CUcorerr=$excerr"/SUM("$ontimeif")*3600*SUM("$correvts"/"$cufactor")/SUM(fNumExcEvts)"
|
---|
224 | CUcorerr="SQRT(SUM(POW("$excerr"/"$cufactor"/"$zdfactor"/"$thfactor",2)))/SUM("$ontimeif")*3600"
|
---|
225 | #excerr2="ExcErr(SUM(o.sigevts),SUM(o.bgevts))"
|
---|
226 | excerr2="ExcErr(o.sigevts,o.bgevts)"
|
---|
227 | CU2="SUM((o.sigevts-o.bgevts)/o.cufactor)/SUM(o.ot)*3600"
|
---|
228 | #CUerr2=$excerr2"/SUM(o.ot)*3600*SUM((o.sigevts-o.bgevts)/o.cufactor)/(SUM(o.sigevts)-SUM(o.bgevts))"
|
---|
229 | CUerr2="SQRT(SUM(POW("$excerr2"/o.cufactor,2)))/SUM(o.ot)*3600"
|
---|
230 | #CUcor2="SUM(o.corevts/o.cufactor)/SUM(o.ot)*3600"
|
---|
231 | CUcor2="SUM(o.excevts/o.zdfactor/o.thfactor/o.cufactor)/SUM(o.ot)*3600"
|
---|
232 | #CUcorerr2=$excerr2"/SUM(o.ot)*3600*SUM(o.corevts/o.cufactor)/(SUM(o.sigevts)-SUM(o.bgevts))"
|
---|
233 | CUcorerr2="SQRT(SUM(POW("$excerr2"/o.cufactor/o.zdfactor/o.thfactor,2)))/SUM(o.ot)*3600"
|
---|
234 |
|
---|
235 | #"ROUND(SQRT(SUM(POW(ExcErr(fNumSigEvts, fNumBgEvts)/pow(cos(fZenithDistanceMean*PI()/180)*exp(1-cos(fZenithDistanceMean*PI()/180)),4.5)/(1.37-IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)*0.00118), 2)))/SUM( IF(ISNULL(fEffectiveOn), fOnTimeAfterCuts , TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn ) )*3600, 1)"
|
---|
236 |
|
---|
237 | # columns to be selected
|
---|
238 | # for night-binning
|
---|
239 | ontime=" ROUND(SUM("$ontimeif")/60., 1) AS ontime"
|
---|
240 | excrate=" ROUND(SUM(fNumExcEvts)/SUM("$ontimeif")*3600, 1) AS excrate"
|
---|
241 | significance="ROUND(LiMa(Sum(fNumSigEvts), SUM(fNumBgEvts)), 1) AS significance"
|
---|
242 | numexc="SUM(fNumExcEvts) AS numexc"
|
---|
243 | numsig="SUM(fNumSigEvts) AS numsig"
|
---|
244 | numbg="SUM(fNumBgEvts) AS numbg"
|
---|
245 | #excrateerr=" ROUND("$excerr"/SUM("$ontimeif")*3600, 1) AS excrateerr"
|
---|
246 | excrateerr=" ROUND(ExcErr(SUM(fNumSigEvts), SUM(fNumBgEvts))/SUM("$ontimeif")*3600, 1) AS excrateerr"
|
---|
247 | correxcrate=" ROUND(SUM("$correvts")/SUM("$ontimeif")*3600, 1) AS correxcrate"
|
---|
248 | #correxcrateerr=" ROUND("$excerr"/SUM("$ontimeif")*3600*SUM("$correvts")/SUM(fNumExcEvts), 1) AS correxcrateerr"
|
---|
249 | correxcrateerr=" ROUND(SQRT(SUM(POW("$excerr"/"$zdfactor"/"$thfactor", 2)))/SUM("$ontimeif")*3600, 1) AS correxcrateerr"
|
---|
250 | cu=" ROUND("$CU", 2) AS cu"
|
---|
251 | cuerr=" ROUND("$CUerr", 2) AS cuerr"
|
---|
252 | cucor=" ROUND("$CUcor", 2) AS cucor"
|
---|
253 | cucorerr=" ROUND("$CUcorerr", 2) AS 'cucorerr'"
|
---|
254 | flux="ROUND("$CU" * "$crabflux", 2) AS flux"
|
---|
255 | fluxerr="ROUND("$CUerr" * "$crabflux", 2) AS fluxerr"
|
---|
256 | fluxcor="ROUND("$CUcor" * "$crabflux", 2) AS fluxcor"
|
---|
257 | fluxcorerr="ROUND("$CUcorerr" * "$crabflux", 2) AS fluxcorerr"
|
---|
258 | # for minute binning
|
---|
259 | ontime2=" ROUND(SUM(o.ot)/60., 1) AS ontime"
|
---|
260 | #excrate2=" ROUND((SUM(o.sigevts)-SUM(o.bgevts))/SUM(o.ot)*3600, 1) AS excrate"
|
---|
261 | excrate2=" ROUND((SUM(o.excevts))/SUM(o.ot)*3600, 1) AS excrate"
|
---|
262 | significance2=" ROUND(LiMa(SUM(o.sigevts),SUM(o.bgevts)), 1) AS significance"
|
---|
263 | #numexc2="Sum(o.sigevts-o.bgevts) AS numexc"
|
---|
264 | numexc2="SUM(o.excevts) AS numexc"
|
---|
265 | numsig2="SUM(o.sigevts) AS numsig"
|
---|
266 | numbg2="SUM(o.bgevts) AS numbg"
|
---|
267 | excrateerr2=" ROUND(ExcErr(SUM(o.sigevts),SUM(o.bgevts))/SUM(o.ot)*3600, 1) AS excrateerr"
|
---|
268 | correxcrate2=" ROUND(SUM(o.excevts/o.zdfactor/o.thfactor)/SUM(o.ot)*3600, 1) AS correxcrate"
|
---|
269 | #correxcrateerr2=" ROUND("$excerr2"/SUM(o.ot)*3600*SUM(o.corevts)/(SUM(o.sigevts)-SUM(o.bgevts)), 1) AS correxcrateerr"
|
---|
270 | correxcrateerr2=" ROUND(SQRT(SUM(POW("$excerr2"/o.zdfactor/o.thfactor,2)))/SUM(o.ot)*3600,1) AS correxcrateerr"
|
---|
271 | cu2=" ROUND("$CU2", 2) AS cu"
|
---|
272 | cuerr2=" ROUND("$CUerr2", 2) AS cuerr"
|
---|
273 | cucor2=" ROUND("$CUcor2", 2) AS cucor"
|
---|
274 | cucorerr2=" ROUND("$CUcorerr2", 2) AS 'cucorerr'"
|
---|
275 | flux2="ROUND("$CU2" * "$crabflux", "$fluxprec") AS flux"
|
---|
276 | fluxerr2="ROUND("$CUerr2" *"$crabflux", "$fluxprec") AS fluxerr"
|
---|
277 | fluxcor2="ROUND("$CUcor2" * "$crabflux", "$fluxprec") AS fluxcor"
|
---|
278 | fluxcorerr2="ROUND("$CUcorerr2" *"$crabflux", "$fluxprec") AS fluxcorerr"
|
---|
279 |
|
---|
280 | case $timeunit in
|
---|
281 | mjd) delta="(Mjd(MAX(fRunStop))-Mjd(MIN(fRunStart)))/2"
|
---|
282 | start=" Mjd(MIN(fRunStart)) AS start"
|
---|
283 | stop=" Mjd(MAX(fRunStop)) AS stop"
|
---|
284 | deltat=$delta" AS deltat"
|
---|
285 | time=" Mjd(MIN(fRunStart))+"$delta" AS time"
|
---|
286 | delta2="(Mjd(MAX(o.stop))-Mjd(MIN(o.start)))/2"
|
---|
287 | start2=" Mjd(MIN(o.start)) AS start"
|
---|
288 | stop2=" Mjd(MAX(o.stop)) AS stop"
|
---|
289 | deltat2=$delta2" AS deltat"
|
---|
290 | time2=" Mjd(MIN(o.start))+"$delta2" AS time"
|
---|
291 | ;;
|
---|
292 | unix) delta="(Unix_timestamp(CONVERT_TZ(MAX(fRunStop), '+00:00', 'SYSTEM')) - Unix_timestamp(CONVERT_TZ(MIN(fRunStart), '+00:00', 'SYSTEM')))/2"
|
---|
293 | start="Unix_timestamp(CONVERT_TZ(MIN(fRunStart), '+00:00', 'SYSTEM')) AS start"
|
---|
294 | stop="Unix_timestamp(CONVERT_TZ(MAX(fRunStop), '+00:00', 'SYSTEM')) AS stop"
|
---|
295 | deltat=$delta" AS deltat"
|
---|
296 | time=" Unix_timestamp(CONVERT_TZ(MIN(fRunStart), '+00:00', 'SYSTEM'))+"$delta" AS time"
|
---|
297 | delta2="(Unix_timestamp(CONVERT_TZ(MAX(o.stop), '+00:00', 'SYSTEM')) - Unix_timestamp(CONVERT_TZ(MIN(o.start), '+00:00', 'SYSTEM')))/2"
|
---|
298 | start2=" Unix_timestamp(CONVERT_TZ(MIN(o.start), '+00:00', 'SYSTEM')) AS start"
|
---|
299 | stop2=" Unix_timestamp(CONVERT_TZ(MAX(o.stop), '+00:00', 'SYSTEM')) AS stop"
|
---|
300 | deltat2=$delta2" AS deltat"
|
---|
301 | time2=" Unix_timestamp(CONVERT_TZ(MIN(o.start), '+00:00', 'SYSTEM'))+"$delta2" AS time"
|
---|
302 | ;;
|
---|
303 | *) delta="sec_to_time(time_to_sec(timediff(MAX(fRunStop), MIN(fRunStart)))/2)"
|
---|
304 | start=" MIN(fRunStart) AS start"
|
---|
305 | stop=" MAX(fRunStop) AS stop"
|
---|
306 | deltat=$delta" AS deltat"
|
---|
307 | time=" addtime(MIN(fRunStart), "$delta") AS time"
|
---|
308 | delta2="sec_to_time(time_to_sec(timediff(MAX(o.stop), MIN(o.start)))/2)"
|
---|
309 | start2=" MIN(o.start) AS start"
|
---|
310 | stop2=" MAX(o.stop) AS stop"
|
---|
311 | deltat2=$delta2" AS deltat"
|
---|
312 | time2=" addtime(MIN(o.start), "$delta2") AS time"
|
---|
313 | ;;
|
---|
314 | esac
|
---|
315 |
|
---|
316 | # from and join of query
|
---|
317 | from=" FROM RunInfo LEFT JOIN "$table" USING (fNight, fRunID) "
|
---|
318 |
|
---|
319 | # data check based on artificial trigger rate
|
---|
320 | # details see https://www.fact-project.org/logbook/showthread.php?tid=5790
|
---|
321 | #dch=" AND fR750Cor/fR750Ref >0.93 "
|
---|
322 | dchstd=" AND fR750Cor/fR750Ref BETWEEN 0.93 AND 1.3 "
|
---|
323 |
|
---|
324 | # put together where-clause of query
|
---|
325 | # time range and source
|
---|
326 | where=" WHERE fSourceKey="$source" AND fNight BETWEEN "$nightmin" AND "$nightmax
|
---|
327 | where=$where" AND NOT ISNULL(fNumExcEvts) "
|
---|
328 | # some sanity checks
|
---|
329 | where=$where" AND fRunTypeKey=1 "
|
---|
330 | # remove empty rows
|
---|
331 | if [ "$rmemptyrows" == "yes" ]
|
---|
332 | then
|
---|
333 | where=$where" AND NOT ISNULL(fZenithDistanceMean) AND (NOT ISNULL(fThresholdMinSet) OR NOT ISNULL(fThresholdMedian)) AND NOT ISNULL(fCU) "
|
---|
334 | fi
|
---|
335 | # zd cut
|
---|
336 | if [ "$zdmax" != "" ]
|
---|
337 | then
|
---|
338 | where=$where" AND fZenithDistanceMax < "$zdmax
|
---|
339 | fi
|
---|
340 | # th cut
|
---|
341 | if [ "$thmax" != "" ]
|
---|
342 | then
|
---|
343 | where=$where" AND "$thresh" < "$thmax
|
---|
344 | fi
|
---|
345 | # dust cut
|
---|
346 | if [ "$dust" != "" ]
|
---|
347 | then
|
---|
348 | where=$where" AND fTNGDust<"$dust
|
---|
349 | fi
|
---|
350 | # light condition cut
|
---|
351 | if [ "$light" == "nomoon" ]
|
---|
352 | then
|
---|
353 | lightcut=" fZenithDistanceMoon>90"
|
---|
354 | fi
|
---|
355 | if [ "$light" == "dark" ]
|
---|
356 | then
|
---|
357 | lightcut=" fMoonZenithDistance>90 AND fSunZenithDistance>108 "
|
---|
358 | fi
|
---|
359 | if [ "$light" != "" ]
|
---|
360 | then
|
---|
361 | where=$where" AND "$lightcut
|
---|
362 | fi
|
---|
363 | # if [ "$factorcut" != "" ]
|
---|
364 | # then
|
---|
365 | # where=$where" AND ( ("$zdfactor") * ("$thfactor")) > "$factorcut" "
|
---|
366 | # fi
|
---|
367 | querybase=$from$where
|
---|
368 |
|
---|
369 | if [ "$usedch" == "yes" ]
|
---|
370 | then
|
---|
371 | if [ "$dch" == "" ]
|
---|
372 | then
|
---|
373 | querydch=$dchstd
|
---|
374 | else
|
---|
375 | echo "you are using for datacheck: "$dch
|
---|
376 | querydch=$dch
|
---|
377 | fi
|
---|
378 | else
|
---|
379 | querydch=
|
---|
380 | fi
|
---|
381 |
|
---|
382 |
|
---|
383 | if [ $bin -le 0 ]
|
---|
384 | then
|
---|
385 | # first part of the query
|
---|
386 | querystart="SELECT "
|
---|
387 | querystart=$querystart" "$time", "$start", "$stop", "
|
---|
388 | # final part of the query
|
---|
389 | if [ $bin -eq 0 ]
|
---|
390 | then
|
---|
391 | orderby=" ORDER BY fPeriod "
|
---|
392 | #querystart=$querystart" fPeriod AS num, "
|
---|
393 | queryend=" GROUP BY fPeriod "
|
---|
394 | else
|
---|
395 | num=" FLOOR((Mjd(fRunStart)-Mjd("$nightmin")-0.5)/"`echo $bin | sed -e 's/-//'`".) "
|
---|
396 | orderby=" ORDER BY "$num
|
---|
397 | #querystart=$querystart" FLOOR((Mjd(fRunStart)-Mjd("$nightmin")-0.5)/"`echo $bin | sed -e 's/-//'`".) AS num, "
|
---|
398 | queryend=" GROUP BY "$num
|
---|
399 | fi
|
---|
400 | #queryend=" GROUP BY num "
|
---|
401 | if [ "$ontimelimit" = "" ]
|
---|
402 | then
|
---|
403 | queryend=$queryend" HAVING SUM("$ontimeif")>1200 "
|
---|
404 | else
|
---|
405 | queryend=$queryend" HAVING SUM("$ontimeif")>"$ontimelimit
|
---|
406 | fi
|
---|
407 | # if [ "$ontimelimit" = "" ]
|
---|
408 | # then
|
---|
409 | # queryend=$queryend" HAVING abs(cucorerr) < 1 AND SUM("$ontimeif")>1200 ORDER BY "$orderby
|
---|
410 | # else
|
---|
411 | # queryend=$queryend" HAVING abs(cucorerr) < 1 AND SUM("$ontimeif")>"$ontimelimit" ORDER BY "$orderby
|
---|
412 | # fi
|
---|
413 |
|
---|
414 | # internal
|
---|
415 | queryint=$querystart
|
---|
416 | queryint=$queryint" "$excrate", "$cu", "$flux", "$correxcrate", "$cucor", "$fluxcor", "
|
---|
417 | queryint=$queryint" "$deltat", "$ontime", "
|
---|
418 | queryint=$queryint" "$excrateerr", "$cuerr", "$fluxerr", "$correxcrateerr", "$cucorerr", "$fluxcorerr", "
|
---|
419 | queryint=$queryint" "$significance", "
|
---|
420 | queryint=$queryint" MIN(fNight) AS nightmin, MAX(fNight) AS nightmax, "
|
---|
421 | queryint=$queryint" "$numexc", "$numsig", "$numbg", "
|
---|
422 | queryint=$queryint" MIN("$zenith"Min) AS zdmin, MAX("$zenith"Max) AS zdmax, "
|
---|
423 | queryint=$queryint" MIN("$thresh") AS thmin, MAX("$thresh") AS thmax, "
|
---|
424 | queryint=$queryint" ROUND(AVG("$cufactor"), 1) AS cufactor, ROUND(AVG("$zdfactor"), 1) AS zdfactor, ROUND(AVG("$thfactor"), 1) AS thfactor, "
|
---|
425 | queryint=$queryint" ROUND(AVG(fR750Cor), 2) AS R750cor, ROUND(AVG(fR750Ref), 2) AS R750ref "
|
---|
426 | if [ "$factorcut" == "" ]
|
---|
427 | then
|
---|
428 | queryint=$queryint" "$querybase" "$querydch" "$queryend" "$orderby
|
---|
429 | else
|
---|
430 | # queryint=$queryint" "$querybase" "$querydch" "$queryend" "$orderby
|
---|
431 | queryint=$queryint" "$querybase" "$querydch" "$queryend" AND ( zdfactor * thfactor > "$factorcut") "$orderby
|
---|
432 | fi
|
---|
433 |
|
---|
434 | # for collaborators
|
---|
435 | querycol=$querystart
|
---|
436 | querycol=$querycol" "$excrate", "$correxcrate", "$cucor", "$fluxcor", "
|
---|
437 | querycol=$querycol" "$deltat", "$ontime", "
|
---|
438 | querycol=$querycol" "$excrateerr", "$correxcrateerr", "$cucorerr", "$fluxcorerr", "
|
---|
439 | querycol=$querycol" "$significance
|
---|
440 | if [ "$factorcut" == "" ]
|
---|
441 | then
|
---|
442 | querycol=$querycol" "$querybase" "$querydch" "$queryend" "$orderby
|
---|
443 | else
|
---|
444 | # querycol=$querycol" "$querybase" "$querydch" "$queryend" "$orderby
|
---|
445 | querycol=$querycol" "$querybase" "$querydch" "$queryend" AND (AVG("$zdfactor") * AVG("$thfactor") > "$factorcut") "$orderby
|
---|
446 | fi
|
---|
447 |
|
---|
448 | # external
|
---|
449 | # no datacheck applied for external files
|
---|
450 | # no cut on factors
|
---|
451 | queryext=$querystart" "$excrate", "$deltat", "$excrateerr" "$querybase" "$queryend" "$orderby
|
---|
452 |
|
---|
453 | else
|
---|
454 | # first part of the query
|
---|
455 | querystart="SELECT "
|
---|
456 | querystart=$querystart" "$time2", "$start2", "$stop2", "
|
---|
457 |
|
---|
458 | # final part of the query
|
---|
459 | querybase=" FROM (SELECT fNight, fZenithDistanceMin AS zdmin, fZenithDistanceMax AS zdmax, "$thresh" AS th, "
|
---|
460 | querybase=$querybase" fR750Cor AS R750cor, fR750Ref AS R750ref, "$cufactor" AS cufactor, "
|
---|
461 | querybase=$querybase" "$zdfactor" AS zdfactor, "$thfactor" AS thfactor, "
|
---|
462 | querybase=$querybase" @ot:="$ontimeif" AS ot, fRunStart AS start, fRunStop AS stop, "
|
---|
463 | #querybase=$querybase" fNumSigEvts AS sigevts, fNumBgEvts AS bgevts, "$correvts" AS corevts, "
|
---|
464 | querybase=$querybase" fNumSigEvts AS sigevts, fNumBgEvts AS bgevts, fNumExcEvts AS excevts, "
|
---|
465 | querybase=$querybase" IF (@night=fNight AND FLOOR((@os+@ot)/"$bin"./60.)<1, @bl, @bl := @bl + 1) AS block, "
|
---|
466 | querybase=$querybase" IF (@night=fNight AND FLOOR((@os+@ot)/"$bin"./60.)<1, @os:=@os + @ot, @os := @ot) AS os, @night :=fNight AS night "
|
---|
467 | querybase=$querybase$from" CROSS JOIN (SELECT @night :=0, @ot :=0, @os :=0, @bl:=0) PARAMS "
|
---|
468 | querybase=$querybase$where" ORDER BY fRunStart) o GROUP BY block HAVING ontime>0.75*"$bin" ORDER BY 'time'"
|
---|
469 |
|
---|
470 | # internal
|
---|
471 | queryint=$querystart
|
---|
472 | queryint=$queryint" "$excrate2", "$cu2", "$flux2", "$correxcrate2", "$cucor2", "$fluxcor2", "
|
---|
473 | queryint=$queryint" "$deltat2", "$ontime2", "
|
---|
474 | queryint=$queryint" "$excrateerr2", "$cuerr2", "$fluxerr2", "$correxcrateerr2", "$cucorerr2", "$fluxcorerr2", "
|
---|
475 | queryint=$queryint" "$significance2", "
|
---|
476 | #queryint=$queryint" avg(o.night) AS night, "
|
---|
477 | queryint=$queryint" min(o.night) AS nightmin, max(o.night) AS nightmax, "
|
---|
478 | queryint=$queryint" "$numexc2", "$numsig2", "$numbg2", "
|
---|
479 | queryint=$queryint" MIN(o.zdmin) AS zdmin, MAX(o.zdmax) AS zdmax, MIN(o.th) AS thmin, MAX(o.th) AS thmax, "
|
---|
480 | queryint=$queryint" ROUND(AVG(o.cufactor), 1) AS cufactor, ROUND(AVG(o.R750cor), 2) AS R750cor, ROUND(AVG(o.R750ref), 2) AS R750ref "
|
---|
481 | queryint=$queryint" "$querybase
|
---|
482 |
|
---|
483 | # for collaborators
|
---|
484 | querycol=$querystart
|
---|
485 | querycol=$querycol" "$excrate2", "$correxcrate2", "$cu2", "$fluxcor2", "
|
---|
486 | querycol=$querycol" "$deltat2", "$ontime2", "
|
---|
487 | querycol=$querycol" "$excrateerr2", "$correxcrateerr2", "$cuerr2", "$fluxcorerr2", "
|
---|
488 | querycol=$querycol" "$significance2
|
---|
489 | querycol=$querycol" "$querybase
|
---|
490 |
|
---|
491 | # external
|
---|
492 | queryext=$querystart" "$excrate2", "$deltat2", "$ontime2", "$excrateerr2" "$querybase
|
---|
493 |
|
---|
494 | fi
|
---|
495 |
|
---|
496 | # write file for externals only for allowed binnings
|
---|
497 | if [ $bin -eq 20 ] || [ $bin -eq -1 ]
|
---|
498 | then
|
---|
499 | fileext=$datapath"/FACT_preliminary_"$name"_external.dat"
|
---|
500 | if [ "$overwrite" = "yes" ]
|
---|
501 | then
|
---|
502 | if [ "$mode" != "auto" ]
|
---|
503 | then
|
---|
504 | echo "creating "$fileext" ..."
|
---|
505 | fi
|
---|
506 | echo "# This file was created at "`date` > $fileext
|
---|
507 | print_policy >> $fileext
|
---|
508 | fi
|
---|
509 | print_selection >> $fileext
|
---|
510 | headerext="# time["$timeunit"] start["$timeunit"] stop["$timeunit"] excess-rate[evts/h] (stop-start)/2["$timeunit"] excess-rate_error[evts/h] "
|
---|
511 | echo $headerext >> $fileext
|
---|
512 | #echo "$queryext"
|
---|
513 | mysql --defaults-file=$sqlpw -s -e "$queryext" >> $fileext
|
---|
514 | #mysql --defaults-file=$sqlpw -e "$queryext"
|
---|
515 | fi
|
---|
516 | if [ "$mode" == "auto" ] && [ "$expert" == "no" ]
|
---|
517 | then
|
---|
518 | return
|
---|
519 | fi
|
---|
520 |
|
---|
521 | fileint=$datapath"/FACT_preliminary_"$name"_internal.dat"
|
---|
522 | if [ "$overwrite" = "yes" ]
|
---|
523 | then
|
---|
524 | if [ "$mode" != "auto" ]
|
---|
525 | then
|
---|
526 | echo "creating "$fileint" ..."
|
---|
527 | fi
|
---|
528 | echo "# This file was created at "`date` > $fileint
|
---|
529 | print_policy >> $fileint
|
---|
530 | fi
|
---|
531 | print_selection >> $fileint
|
---|
532 | echo "# The following query was used: " >> $fileint
|
---|
533 | echo "# $queryint" >> $fileint
|
---|
534 | echo "#" >> $fileint
|
---|
535 | headerint="# time["$timeunit"] start["$timeunit"] stop["$timeunit"] excess-rate[evts/h] flux[CU] flux[e-11ph/cm2/s] corrected_excess-rate[evts/h] corrected_flux[CU] corrected_flux[e-11ph/cm2/s] (stop-start)/2["$timeunit"] ontime[min]"
|
---|
536 | headerint=$headerint" excess-rate_error[evts/h] flux_error[CU] flux_error[e-11ph/cm2/s] corrected_excess-rate_error[evts/h] corrected_flux_error[CU] corrected_flux_error[e-11/cm2/s] significance nightmin nightmax num_exc num_sig num_bg "
|
---|
537 | headerint=$headerint" zdmin zdmax thmin thmax avg(cufactor) avg(zdfactor) avg(thfactor) avg(R750cor) avg(R750ref) "
|
---|
538 | echo $headerint >> $fileint
|
---|
539 | #echo "$queryint"
|
---|
540 | mysql --defaults-file=$sqlpw -s -e "$queryint" >> $fileint
|
---|
541 | #mysql --defaults-file=$sqlpw -e "$queryint"
|
---|
542 | if [ "$mode" == "auto" ]
|
---|
543 | then
|
---|
544 | return
|
---|
545 | fi
|
---|
546 |
|
---|
547 | filecol=$datapath"/FACT_preliminary_"$name"_collaborators.dat"
|
---|
548 | if [ "$overwrite" = "yes" ]
|
---|
549 | then
|
---|
550 | echo "creating "$filecol" ..."
|
---|
551 | echo "# This file was created at "`date` > $filecol
|
---|
552 | print_policy >> $filecol
|
---|
553 | fi
|
---|
554 | print_selection >> $filecol
|
---|
555 | #echo "# The following query was used: " >> $filecol
|
---|
556 | #echo "# $querycol" >> $filecol
|
---|
557 | #echo "#" >> $filecol
|
---|
558 | headercol="# time["$timeunit"] start["$timeunit"] stop["$timeunit"] excess-rate[evts/h] corrected_excess-rate[evts/h] corrected_flux[CU] corrected_flux[e-11ph/cm2/s] (stop-start)/2["$timeunit"] ontime[min]"
|
---|
559 | headercol=$headercol" excess-rate_error[evts/h] corrected_excess-rate_error[evts/h] corrected_flux_error[CU] corrected_flux_error[e-11ph/cm2/s] significance "
|
---|
560 | echo $headercol >> $filecol
|
---|
561 | #echo "$querycol"
|
---|
562 | mysql --defaults-file=$sqlpw -s -e "$querycol" >> $filecol
|
---|
563 | #mysql --defaults-file=$sqlpw -e "$querycol
|
---|
564 | }
|
---|
565 |
|
---|
566 | # evaluation of command line options (for usage with download.php)
|
---|
567 |
|
---|
568 | if [ ${#@} -eq 16 ]
|
---|
569 | then
|
---|
570 | #get_data.sh $start $stop $source $timebin $email $table $time $expert $dch $zd $th $light $dust $rmemptyrows $factorcut
|
---|
571 | mode="auto"
|
---|
572 | overwrite="yes"
|
---|
573 | # setup for usage with download.php
|
---|
574 | datapath="/home/factwww/dch/data"
|
---|
575 | #datapath="./data"
|
---|
576 | sqlpw=/home/fact/.mysql.pw
|
---|
577 | #sqlpw=/home/fact/.mysql.pw2
|
---|
578 | #host=10.0.100.21
|
---|
579 | #dbname=factdata
|
---|
580 | nightmin=$1
|
---|
581 | nightmax=$2
|
---|
582 | source=$3
|
---|
583 | bin=$4
|
---|
584 | if [ "$bin" == "00" ]
|
---|
585 | then
|
---|
586 | bin=0
|
---|
587 | fi
|
---|
588 | email=$5
|
---|
589 | table=$6
|
---|
590 | timeunit=$7
|
---|
591 | expert=$8
|
---|
592 | usedch=$9 # novalue gives same result as no
|
---|
593 | if [ "${10}" != "novalue" ] && [ "${10}" != "all" ]
|
---|
594 | then
|
---|
595 | zdmax=${10}
|
---|
596 | fi
|
---|
597 | if [ "${11}" != "novalue" ] && [ "${11}" != "all" ]
|
---|
598 | then
|
---|
599 | thmax=${11}
|
---|
600 | fi
|
---|
601 | if [ "${12}" != "novalue" ] && [ "${12}" != "all" ]
|
---|
602 | then
|
---|
603 | light=${12}
|
---|
604 | fi
|
---|
605 | if [ "${13}" != "novalue" ] && [ "${13}" != "all" ]
|
---|
606 | then
|
---|
607 | dust=${13}
|
---|
608 | fi
|
---|
609 | rmemptyrows=${14}
|
---|
610 | if [ "${15}" != "novalue" ] && [ "${15}" != "all" ]
|
---|
611 | then
|
---|
612 | factorcut=${15}
|
---|
613 | fi
|
---|
614 | if [ "${16}" != "-" ]
|
---|
615 | then
|
---|
616 | crabfluxconv=${16}
|
---|
617 | fi
|
---|
618 | name=`echo $email | sed -e 's/@/-at-/'`
|
---|
619 | get_results
|
---|
620 |
|
---|
621 | # sending email
|
---|
622 | if [ "$expert" == "yes" ]
|
---|
623 | then
|
---|
624 | cat $fileint | mail -s 'FACT internal data download' -b qla@fact-project.org -r qla@fact-project.org $email
|
---|
625 | else
|
---|
626 | cat $fileext | mail -s 'FACT data download' -b qla@fact-project.org -r qla@fact-project.org $email
|
---|
627 | fi
|
---|
628 |
|
---|
629 | exit
|
---|
630 | fi
|
---|
631 |
|
---|
632 |
|
---|
633 |
|
---|
634 | # -------------------------------------------------------------------------------------- #
|
---|
635 | # SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP #
|
---|
636 | # -------------------------------------------------------------------------------------- #
|
---|
637 | # #
|
---|
638 | # The lines below define the basic setup for the database and give examples and #
|
---|
639 | # explanations for the various options available. #
|
---|
640 | # The request of the data itself is done with a smaller setup further down. #
|
---|
641 | # #
|
---|
642 | # -------------------------------------------------------------------------------------- #
|
---|
643 | #
|
---|
644 | # ----------
|
---|
645 | # DB SETUP
|
---|
646 | # ----------
|
---|
647 | # path to file with mysql setup (user, password, host, db-name)
|
---|
648 | sqlpw=/home/$USER/.mysql.pw.local
|
---|
649 | sqlpw=/home/$USER/.mysql.pw.ethz.fact
|
---|
650 | #
|
---|
651 | # -------------
|
---|
652 | # BASIC SETUP
|
---|
653 | # -------------
|
---|
654 | # output path
|
---|
655 | path=`dirname $0`
|
---|
656 | datapath=$path"/data"
|
---|
657 | # create directory for data files
|
---|
658 | if ! [ -e $datapath ]
|
---|
659 | then
|
---|
660 | mkdir $datapath
|
---|
661 | fi
|
---|
662 | # time unit
|
---|
663 | #timeunit=timestamp # default
|
---|
664 | #timeunit=unix
|
---|
665 | timeunit=mjd
|
---|
666 | # time binning
|
---|
667 | # positive values: minutes
|
---|
668 | # negative values: days
|
---|
669 | # special case 0: period
|
---|
670 | # for season binning choose -365 and according start date
|
---|
671 | #bin=20 # minutes
|
---|
672 | #bin=0 # period
|
---|
673 | bin=-1 # nightly
|
---|
674 | #bin=-365 # yearly
|
---|
675 | # choose analysis
|
---|
676 | #table="AnalysisResultsAllQLA" # N/A
|
---|
677 | #table="AnalysisResultsRunLP" # QLA
|
---|
678 | #table="AnalysisResultsRunISDC" # ISDC
|
---|
679 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
680 | # time range
|
---|
681 | nightmin=20111115
|
---|
682 | nightmax=20201231
|
---|
683 | # overwrite dataset file?
|
---|
684 | # (useful to combine different binnings in one file -> set to "no")
|
---|
685 | overwrite="yes"
|
---|
686 | # optional: require minimal ontime per bin (default 20 min)
|
---|
687 | # values given in seconds
|
---|
688 | # option only valid for binnings >= 1 day
|
---|
689 | #ontimelimit=1800 # 30 min
|
---|
690 | ontimelimit= # default 20 min
|
---|
691 | # data quality selection
|
---|
692 | # if you explicitely don't want a datacheck, you can comment the following line
|
---|
693 | usedch="yes"
|
---|
694 | # use your own datacheck instead
|
---|
695 | # use a line like the following defining your own data quality selection cut
|
---|
696 | #dch=" AND fR750Cor/fR750Ref BETWEEN 0.93 AND 1.3 "
|
---|
697 | # apply additional predefined cuts
|
---|
698 | # light conditions
|
---|
699 | #light="nomoon" # only data with no moon (but twilight allowed)
|
---|
700 | #light="dark" # only dark night data
|
---|
701 | # TNG dust - cut away data with calima
|
---|
702 | #dust=1
|
---|
703 | #dust=10
|
---|
704 | # use different conversion from CU to fluxes
|
---|
705 | #crabfluxconv="2.5"
|
---|
706 | # remove lines which contain NULL (e.g. zd-corrected flux when zd=NULL)
|
---|
707 | rmemptyrows="yes"
|
---|
708 | rmemptyrows="no"
|
---|
709 | # remove lines with zdfactor * thfactor > value
|
---|
710 | factorcut=0.3
|
---|
711 |
|
---|
712 |
|
---|
713 | # -------------------------------------------------------------------------------------- #
|
---|
714 | # SETUP - GET YOUR DATA HERE - SETUP - GET YOUR DATA HERE - SETUP - GET YOUR DATA HERE #
|
---|
715 | # -------------------------------------------------------------------------------------- #
|
---|
716 | # #
|
---|
717 | # Adapt the lines below to your needs. #
|
---|
718 | # Overwrite default settings above. #
|
---|
719 | # The data-request is sent with the line 'get_results'. #
|
---|
720 | # Minumum setup: Define source key and name for file. #
|
---|
721 | # The list of source keys can be found at #
|
---|
722 | # https://fact-project.org/run_db/db/printtable.php?fTable=Source&fSortBy=fSourceKEY+ #
|
---|
723 | # More examples can be found further down. #
|
---|
724 | # #
|
---|
725 | # -------------------------------------------------------------------------------------- #
|
---|
726 |
|
---|
727 |
|
---|
728 | # LC for periodicity studies
|
---|
729 | datapath=/home/dorner/analysis.FACT/corrected.lcs.for.collaborators/lcs/
|
---|
730 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
731 | # nightly
|
---|
732 | bin=-1
|
---|
733 | nightmin=20111115
|
---|
734 | nightmax=20201231
|
---|
735 | # Mrk 421
|
---|
736 | name="Mrk421_nightly_forPeriodicity"
|
---|
737 | source=1
|
---|
738 | get_results
|
---|
739 | # 1959
|
---|
740 | name="1ES1959_nightly_forPeriodicity"
|
---|
741 | source=7
|
---|
742 | get_results
|
---|
743 | # Crab
|
---|
744 | name="Crab_nightly_forPeriodicity"
|
---|
745 | source=5
|
---|
746 | get_results
|
---|
747 |
|
---|
748 | exit
|
---|
749 |
|
---|
750 |
|
---|
751 | # check of Vitalii's BB
|
---|
752 | datapath=/home/dorner/SW/bb/
|
---|
753 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
754 | # nightly
|
---|
755 | bin=-1
|
---|
756 | nightmin=20111115
|
---|
757 | nightmax=20201231
|
---|
758 | # Mrk 421
|
---|
759 | source=1
|
---|
760 | name="Mrk421_nightly_forBB"
|
---|
761 | get_results
|
---|
762 |
|
---|
763 | exit
|
---|
764 |
|
---|
765 |
|
---|
766 | # LC for Fermi collaboration meeting
|
---|
767 | datapath=/home/dorner/analysis.FACT/LC.incl.alerts
|
---|
768 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
769 | # nightly
|
---|
770 | bin=-1
|
---|
771 | nightmin=20111115
|
---|
772 | nightmax=20201231
|
---|
773 | # Mrk 421
|
---|
774 | source=1
|
---|
775 | name="Mrk421_nightly_forFermiCM"
|
---|
776 | get_results
|
---|
777 | # Mrk 501
|
---|
778 | name="Mrk501_nightly_forFermiCM"
|
---|
779 | source=2
|
---|
780 | get_results
|
---|
781 | # 1959
|
---|
782 | name="1959_nightly_forFermiCM"
|
---|
783 | source=7
|
---|
784 | get_results
|
---|
785 |
|
---|
786 |
|
---|
787 | exit
|
---|
788 |
|
---|
789 | # LC for Mrk 421 paper with MAGIC
|
---|
790 | # from David: MJD 57030 - 57540 (i.e. 8.1.2015 - 1.6.2016)
|
---|
791 | datapath=/home/dorner/FACT.analysis/corrected.lcs.for.collaborators/lcs/
|
---|
792 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
793 | # nightly
|
---|
794 | bin=-1
|
---|
795 | nightmin=20141101
|
---|
796 | nightmax=20160630
|
---|
797 | # conversion factor to fluxes for CutsLC
|
---|
798 | # using slope of -3.35 -> threshold ~685 GeV
|
---|
799 | # details: https://www.fact-project.org/logbook/showthread.php?tid=6994&pid=28902#pid28902
|
---|
800 | crabfluxconv="3.64"
|
---|
801 | # Mrk 421
|
---|
802 | source=1
|
---|
803 | name="Mrk421_nightly_20141101_20160630_forMAGIC"
|
---|
804 | get_results
|
---|
805 |
|
---|
806 |
|
---|
807 |
|
---|
808 | exit
|
---|
809 | # LC for Gopal for periodicity study
|
---|
810 | datapath=/home/dorner/FACT.analysis/corrected.lcs.for.collaborators/lcs/
|
---|
811 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
812 | # nightly
|
---|
813 | bin=-1
|
---|
814 | nightmin=20111115
|
---|
815 | nightmax=20201231
|
---|
816 | # Mrk 501
|
---|
817 | name="Mrk501_nightly"
|
---|
818 | source=2
|
---|
819 | get_results
|
---|
820 |
|
---|
821 | exit
|
---|
822 |
|
---|
823 |
|
---|
824 | # LC for Mrk 421 for crosscheck of BB
|
---|
825 | datapath=/home/dorner/SW/bb/
|
---|
826 | table="AnalysisResultsRunLP"
|
---|
827 | # nightly
|
---|
828 | bin=-1
|
---|
829 | nightmin=20130111
|
---|
830 | nightmax=20180515
|
---|
831 | thmax=560
|
---|
832 | zdmax=60
|
---|
833 | ontimelimit=1800
|
---|
834 | factorcut=
|
---|
835 | rmemptyrows="yes"
|
---|
836 | dch=" AND fR750Cor/fR750Ref BETWEEN 0.93 AND 1.2 AND fHumidityMean<80 "
|
---|
837 | # Mrk 421
|
---|
838 | source=1
|
---|
839 | name="Mrk421_nightly_BBXcheck"
|
---|
840 | get_results
|
---|
841 |
|
---|
842 |
|
---|
843 |
|
---|
844 | exit
|
---|
845 |
|
---|
846 | # LC for Mrk 421 paper with MAGIC
|
---|
847 | # from David: MJD 57030 - 57540 (i.e. 8.1.2015 - 1.6.2016)
|
---|
848 | datapath=/home/dorner/FACT.analysis/corrected.lcs.for.collaborators/lcs/
|
---|
849 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
850 | # nightly
|
---|
851 | bin=-1
|
---|
852 | nightmin=20141101
|
---|
853 | nightmax=20160630
|
---|
854 | # conversion factor to fluxes for CutsLC
|
---|
855 | # using slope of -3.35 -> threshold 690 GeV
|
---|
856 | # details: https://www.fact-project.org/logbook/showthread.php?tid=6994&pid=28875#pid28875
|
---|
857 | crabfluxconv="0.57"
|
---|
858 | # Mrk 421
|
---|
859 | source=1
|
---|
860 | name="Mrk421_nightly_20141101_20160630_forMAGIC"
|
---|
861 | get_results
|
---|
862 |
|
---|
863 |
|
---|
864 |
|
---|
865 | exit
|
---|
866 |
|
---|
867 | # LCs for TeVPA poster
|
---|
868 | datapath=/home/dorner/FACT.analysis/tevpa2019
|
---|
869 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
870 | # nightly
|
---|
871 | bin=-1
|
---|
872 | nightmin=20111115
|
---|
873 | nightmax=20201231
|
---|
874 | # Mrk 421
|
---|
875 | source=1
|
---|
876 | name="Mrk421_nightly"
|
---|
877 | get_results
|
---|
878 | # Mrk 501
|
---|
879 | name="Mrk501_nightly"
|
---|
880 | source=2
|
---|
881 | get_results
|
---|
882 | # 1959
|
---|
883 | name="1959_nightly"
|
---|
884 | source=7
|
---|
885 | get_results
|
---|
886 | # 2344
|
---|
887 | name="2344_nightly"
|
---|
888 | source=3
|
---|
889 | get_results
|
---|
890 | name="2344_monthly"
|
---|
891 | bin=0
|
---|
892 | get_results
|
---|
893 | name="2344_7d"
|
---|
894 | bin=7
|
---|
895 | get_results
|
---|
896 | usedch="no"
|
---|
897 | name="2344_nightly_nodch"
|
---|
898 | source=3
|
---|
899 | get_results
|
---|
900 | name="2344_monthly_nodch"
|
---|
901 | bin=0
|
---|
902 | get_results
|
---|
903 | name="2344_7d_nodch"
|
---|
904 | bin=7
|
---|
905 | get_results
|
---|
906 | usedch="yes"
|
---|
907 | # 1959
|
---|
908 | name="1959_mixed"
|
---|
909 | source=7
|
---|
910 | bin=0
|
---|
911 | nightmin=20111115
|
---|
912 | nightmax=20160331
|
---|
913 | get_results
|
---|
914 | overwrite="no"
|
---|
915 | nightmin=20160401
|
---|
916 | nightmax=20160815
|
---|
917 | bin=-1
|
---|
918 | get_results
|
---|
919 | bin=0
|
---|
920 | nightmin=20160816
|
---|
921 | nightmax=20201231
|
---|
922 | get_results
|
---|
923 | overwrite="yes"
|
---|
924 |
|
---|
925 | exit
|
---|
926 |
|
---|
927 |
|
---|
928 | datapath=/home/dorner/FACT.analysis/corrected.lcs.for.collaborators/lcs
|
---|
929 |
|
---|
930 | # put your data request here, examples below
|
---|
931 |
|
---|
932 | # LCs for 2344 XMM proposal
|
---|
933 | table="AnalysisResultsRunCutsLC"
|
---|
934 | # 2344
|
---|
935 | source=3
|
---|
936 | # monthly
|
---|
937 | bin=0
|
---|
938 | nightmin=20111115
|
---|
939 | nightmax=20191231
|
---|
940 | name="2344_period_XMM-proposal-2019"
|
---|
941 | get_results
|
---|
942 |
|
---|
943 | exit
|
---|
944 |
|
---|
945 | # LCs for 421 campaign with Astrosat Jan 2019 - crosscheck
|
---|
946 | table="AnalysisResultsRunLP"
|
---|
947 | # Mrk 421
|
---|
948 | source=1
|
---|
949 | # nightly
|
---|
950 | bin=-1
|
---|
951 | nightmin=20190109
|
---|
952 | nightmax=20190113
|
---|
953 | name="QLA_Mrk421_nightly_Astrosat-Jan-2019"
|
---|
954 | get_results
|
---|
955 | # 20min
|
---|
956 | bin=20
|
---|
957 | name="QLA_Mrk421_20min_Astrosat-Jan-2019"
|
---|
958 | get_results
|
---|
959 | # 30min
|
---|
960 | bin=30
|
---|
961 | name="QLA_Mrk421_30min_Astrosat-Jan-2019"
|
---|
962 | get_results
|
---|
963 | # 40min
|
---|
964 | bin=40
|
---|
965 | name="QLA_Mrk421_40min_Astrosat-Jan-2019"
|
---|
966 | get_results
|
---|
967 | # 60min
|
---|
968 | bin=60
|
---|
969 | name="QLA_Mrk421_60min_Astrosat-Jan-2019"
|
---|
970 | get_results
|
---|
971 | # 80min
|
---|
972 | bin=80
|
---|
973 | name="QLA_Mrk421_80min_Astrosat-Jan-2019"
|
---|
974 | get_results
|
---|
975 | # 90min
|
---|
976 | bin=90
|
---|
977 | name="QLA_Mrk421_90min_Astrosat-Jan-2019"
|
---|
978 | get_results
|
---|
979 |
|
---|
980 |
|
---|
981 |
|
---|
982 |
|
---|
983 | # LCs for SED project 2013
|
---|
984 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
985 | # Mrk 421
|
---|
986 | source=1
|
---|
987 | # nightly
|
---|
988 | bin=-1
|
---|
989 | nightmin=20120901
|
---|
990 | nightmax=20130516
|
---|
991 | name="Mrk421_nightly_SED-project-2013"
|
---|
992 | get_results
|
---|
993 |
|
---|
994 |
|
---|
995 |
|
---|
996 | # LCs for XMM proposal
|
---|
997 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
998 | # Mrk 421
|
---|
999 | source=1
|
---|
1000 | # nightly
|
---|
1001 | bin=-1
|
---|
1002 | nightmin=20111115
|
---|
1003 | nightmax=20201231
|
---|
1004 | name="Mrk421_nightly_XMM-proposal-2019"
|
---|
1005 | get_results
|
---|
1006 | # Mrk 501
|
---|
1007 | source=2
|
---|
1008 | name="Mrk501_nightly_XMM-proposal-2019"
|
---|
1009 | get_results
|
---|
1010 | # 1959
|
---|
1011 | source=7
|
---|
1012 | name="1959_nightly_XMM-proposal-2019"
|
---|
1013 | get_results
|
---|
1014 |
|
---|
1015 |
|
---|
1016 |
|
---|
1017 | # LCs for 421 campaign with Astrosat Jan 2019
|
---|
1018 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1019 | # Mrk 421
|
---|
1020 | source=1
|
---|
1021 | # nightly
|
---|
1022 | bin=-1
|
---|
1023 | nightmin=20190109
|
---|
1024 | nightmax=20190113
|
---|
1025 | name="Mrk421_nightly_Astrosat-Jan-2019"
|
---|
1026 | get_results
|
---|
1027 | # 20min
|
---|
1028 | bin=20
|
---|
1029 | name="Mrk421_20min_Astrosat-Jan-2019"
|
---|
1030 | get_results
|
---|
1031 | # 30min
|
---|
1032 | bin=30
|
---|
1033 | name="Mrk421_30min_Astrosat-Jan-2019"
|
---|
1034 | get_results
|
---|
1035 | # 40min
|
---|
1036 | bin=40
|
---|
1037 | name="Mrk421_40min_Astrosat-Jan-2019"
|
---|
1038 | get_results
|
---|
1039 | # 60min
|
---|
1040 | bin=60
|
---|
1041 | name="Mrk421_60min_Astrosat-Jan-2019"
|
---|
1042 | get_results
|
---|
1043 | # 80min
|
---|
1044 | bin=80
|
---|
1045 | name="Mrk421_80min_Astrosat-Jan-2019"
|
---|
1046 | get_results
|
---|
1047 | # 90min
|
---|
1048 | bin=90
|
---|
1049 | name="Mrk421_90min_Astrosat-Jan-2019"
|
---|
1050 | get_results
|
---|
1051 |
|
---|
1052 |
|
---|
1053 |
|
---|
1054 | # LCs for flaring pattern project
|
---|
1055 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1056 | # Mrk 421
|
---|
1057 | source=1
|
---|
1058 | # nightly
|
---|
1059 | bin=-1
|
---|
1060 | nightmin=20111115
|
---|
1061 | nightmax=20201231
|
---|
1062 | name="Mrk421_nightly_Flaring-pattern-project"
|
---|
1063 | get_results
|
---|
1064 | # 2d
|
---|
1065 | bin=-2
|
---|
1066 | nightmin=20111115
|
---|
1067 | nightmax=20201231
|
---|
1068 | name="Mrk421_2day_Flaring-pattern-project"
|
---|
1069 | get_results
|
---|
1070 |
|
---|
1071 |
|
---|
1072 |
|
---|
1073 | # LCs for ToO-Trigger project
|
---|
1074 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1075 | # Mrk 421
|
---|
1076 | source=1
|
---|
1077 | # nightly for 2019
|
---|
1078 | bin=-1
|
---|
1079 | nightmin=20190101
|
---|
1080 | nightmax=20190630
|
---|
1081 | name="Mrk421_nightly_20190101-20190630_ToO-project-2019"
|
---|
1082 | get_results
|
---|
1083 | # 20 min around flare
|
---|
1084 | bin=20
|
---|
1085 | nightmin=20190609
|
---|
1086 | nightmax=20190612
|
---|
1087 | name="Mrk421_20min_20190609-20190612_ToO-project-2019"
|
---|
1088 | get_results
|
---|
1089 |
|
---|
1090 | exit
|
---|
1091 |
|
---|
1092 | table="AnalysisResultsRunLP" # QLA
|
---|
1093 | # Mrk 421
|
---|
1094 | source=1
|
---|
1095 | # nightly for 2019
|
---|
1096 | bin=-1
|
---|
1097 | nightmin=20190101
|
---|
1098 | nightmax=20190630
|
---|
1099 | name="QLA_Mrk421_nightly_20190101-20190630_ToO-project-2019"
|
---|
1100 | get_results
|
---|
1101 | # 20 min around flare
|
---|
1102 | bin=20
|
---|
1103 | nightmin=20190609
|
---|
1104 | nightmax=20190612
|
---|
1105 | name="QLA_Mrk421_20min_20190609-20190612_ToO-project-2019"
|
---|
1106 | get_results
|
---|
1107 |
|
---|
1108 |
|
---|
1109 | table="AnalysisResultsRunISDC" # ISDC
|
---|
1110 | # Mrk 421
|
---|
1111 | source=1
|
---|
1112 | # nightly for 2019
|
---|
1113 | bin=-1
|
---|
1114 | nightmin=20190101
|
---|
1115 | nightmax=20190630
|
---|
1116 | name="ISDC_Mrk421_nightly_20190101-20190630_ToO-project-2019"
|
---|
1117 | get_results
|
---|
1118 | # 20 min around flare
|
---|
1119 | bin=20
|
---|
1120 | nightmin=20190609
|
---|
1121 | nightmax=20190612
|
---|
1122 | name="ISDC_Mrk421_20min_20190609-20190612_ToO-project-2019"
|
---|
1123 | get_results
|
---|
1124 |
|
---|
1125 |
|
---|
1126 | exit
|
---|
1127 |
|
---|
1128 | # LC for ICRC
|
---|
1129 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1130 | bin=-1
|
---|
1131 | # Mrk 421
|
---|
1132 | source=1
|
---|
1133 | name="Mrk421_all_nightly"
|
---|
1134 | get_results
|
---|
1135 | # Mrk 501
|
---|
1136 | source=2
|
---|
1137 | name="Mrk501_all_nightly"
|
---|
1138 | get_results
|
---|
1139 | # 1959
|
---|
1140 | source=7
|
---|
1141 | name="1959_all_nightly"
|
---|
1142 | get_results
|
---|
1143 |
|
---|
1144 | # 2344
|
---|
1145 | source=3
|
---|
1146 | name="2344_all_nightly"
|
---|
1147 | get_results
|
---|
1148 |
|
---|
1149 | # Crab
|
---|
1150 | source=5
|
---|
1151 | name="Crab_all_nightly"
|
---|
1152 | get_results
|
---|
1153 |
|
---|
1154 |
|
---|
1155 | exit
|
---|
1156 |
|
---|
1157 | # Mrk 501
|
---|
1158 | source=2
|
---|
1159 | zdmax=90
|
---|
1160 | thmax=1500
|
---|
1161 | # new analysis
|
---|
1162 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1163 | nightmin=20140520
|
---|
1164 | nightmax=20140930
|
---|
1165 | name="Mrk501_nightly_newAnalysis_forHESS"
|
---|
1166 | bin=-1
|
---|
1167 | get_results
|
---|
1168 | name="Mrk501_7d_newAnalysis_forHESS"
|
---|
1169 | bin=-7
|
---|
1170 | get_results
|
---|
1171 | nightmin=20140623
|
---|
1172 | nightmax=20140623
|
---|
1173 | name="Mrk501_5min_FlareNight_newAnalysis_forHESS"
|
---|
1174 | bin=5
|
---|
1175 | get_results
|
---|
1176 | nightmin=20140622
|
---|
1177 | nightmax=20140624
|
---|
1178 | name="Mrk501_5min_Flare_newAnalysis_forHESS"
|
---|
1179 | bin=5
|
---|
1180 | get_results
|
---|
1181 |
|
---|
1182 | exit
|
---|
1183 |
|
---|
1184 | # LC for INTEGRAL Proposal
|
---|
1185 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1186 | bin=-1
|
---|
1187 | # Mrk 421
|
---|
1188 | source=1
|
---|
1189 | name="Mrk421_all_nightly"
|
---|
1190 | get_results
|
---|
1191 | # Mrk 501
|
---|
1192 | source=2
|
---|
1193 | name="Mrk501_all_nightly"
|
---|
1194 | get_results
|
---|
1195 | # 1959
|
---|
1196 | source=7
|
---|
1197 | name="1959_all_nightly"
|
---|
1198 | get_results
|
---|
1199 | # for other INTEGRAL proposal
|
---|
1200 | # Mrk 421
|
---|
1201 | bin=0
|
---|
1202 | source=1
|
---|
1203 | name="Mrk421_all_period"
|
---|
1204 | get_results
|
---|
1205 |
|
---|
1206 | exit
|
---|
1207 |
|
---|
1208 |
|
---|
1209 | # Crab
|
---|
1210 | source=5
|
---|
1211 | nightmin=20121214
|
---|
1212 | nightmax=20180418
|
---|
1213 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1214 | bin=-1
|
---|
1215 | zdmax=30
|
---|
1216 | thmax=330
|
---|
1217 | name="testCrabnightlycheck"
|
---|
1218 | get_results
|
---|
1219 |
|
---|
1220 | exit
|
---|
1221 |
|
---|
1222 | # Crab
|
---|
1223 | source=5
|
---|
1224 | nightmin=20121214
|
---|
1225 | nightmax=20180418
|
---|
1226 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1227 | bin=20
|
---|
1228 | name="testCrab20min"
|
---|
1229 | get_results
|
---|
1230 |
|
---|
1231 | exit
|
---|
1232 |
|
---|
1233 | # Crab
|
---|
1234 | source=5
|
---|
1235 | nightmin=20121214
|
---|
1236 | nightmax=20180418
|
---|
1237 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1238 | bin=-1
|
---|
1239 | name="testCrabnightly"
|
---|
1240 | get_results
|
---|
1241 |
|
---|
1242 | exit
|
---|
1243 |
|
---|
1244 | # Crab
|
---|
1245 | source=5
|
---|
1246 | #nightmin=20121214
|
---|
1247 | #nightmax=20180418
|
---|
1248 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1249 | bin=-1
|
---|
1250 | name="testCraball"
|
---|
1251 | get_results
|
---|
1252 |
|
---|
1253 | exit
|
---|
1254 |
|
---|
1255 |
|
---|
1256 | # Crab
|
---|
1257 | source=5
|
---|
1258 | nightmin=20121214
|
---|
1259 | nightmax=20180418
|
---|
1260 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1261 | bin=60
|
---|
1262 | name="testCrab"
|
---|
1263 | get_results
|
---|
1264 |
|
---|
1265 | exit
|
---|
1266 |
|
---|
1267 |
|
---|
1268 | # for 2344 paper with MAGIC
|
---|
1269 |
|
---|
1270 | source=3
|
---|
1271 | zdmax=90
|
---|
1272 | thmax=1500
|
---|
1273 |
|
---|
1274 | # new analysis
|
---|
1275 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1276 | nightmin=20160618
|
---|
1277 | nightmax=20160815
|
---|
1278 | name="2344_2016flare_newAnalysis"
|
---|
1279 | bin=-7
|
---|
1280 | get_results
|
---|
1281 | overwrite="no"
|
---|
1282 | bin=-28
|
---|
1283 | nightmin=20160816
|
---|
1284 | nightmax=20161031
|
---|
1285 | get_results
|
---|
1286 | overwrite="yes"
|
---|
1287 |
|
---|
1288 | # ISDC analysis
|
---|
1289 | table="AnalysisResultsRunISDC"
|
---|
1290 | nightmin=20160618
|
---|
1291 | nightmax=20160815
|
---|
1292 | name="2344_2016flare_stdAnalysis"
|
---|
1293 | bin=-7
|
---|
1294 | get_results
|
---|
1295 | overwrite="no"
|
---|
1296 | bin=-28
|
---|
1297 | nightmin=20160816
|
---|
1298 | nightmax=20161031
|
---|
1299 | get_results
|
---|
1300 | overwrite="yes"
|
---|
1301 |
|
---|
1302 |
|
---|
1303 | usedch="no"
|
---|
1304 | # new analysis
|
---|
1305 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1306 | nightmin=20160618
|
---|
1307 | nightmax=20160815
|
---|
1308 | name="2344_2016flare_newAnalysis_noDCh"
|
---|
1309 | bin=-7
|
---|
1310 | get_results
|
---|
1311 | overwrite="no"
|
---|
1312 | bin=-28
|
---|
1313 | nightmin=20160816
|
---|
1314 | nightmax=20161031
|
---|
1315 | get_results
|
---|
1316 | overwrite="yes"
|
---|
1317 |
|
---|
1318 | # ISDC analysis
|
---|
1319 | table="AnalysisResultsRunISDC"
|
---|
1320 | nightmin=20160618
|
---|
1321 | nightmax=20160815
|
---|
1322 | name="2344_2016flare_stdAnalysis_noDCh"
|
---|
1323 | bin=-7
|
---|
1324 | get_results
|
---|
1325 | overwrite="no"
|
---|
1326 | bin=-28
|
---|
1327 | nightmin=20160816
|
---|
1328 | nightmax=20161031
|
---|
1329 | get_results
|
---|
1330 | overwrite="yes"
|
---|
1331 |
|
---|
1332 | usedch="yes"
|
---|
1333 |
|
---|
1334 |
|
---|
1335 | exit
|
---|
1336 |
|
---|
1337 | # Mrk 501
|
---|
1338 | source=2
|
---|
1339 | zdmax=90
|
---|
1340 | thmax=1500
|
---|
1341 | # new analysis
|
---|
1342 | table="AnalysisResultsRunCutsLC" # CutsLC
|
---|
1343 | nightmin=20140520
|
---|
1344 | nightmax=20140930
|
---|
1345 | name="Mrk501_nightly_newAnalysis_forHESS"
|
---|
1346 | bin=-1
|
---|
1347 | get_results
|
---|
1348 | name="Mrk501_7d_newAnalysis_forHESS"
|
---|
1349 | bin=-7
|
---|
1350 | get_results
|
---|
1351 | nightmin=20140623
|
---|
1352 | nightmax=20140623
|
---|
1353 | name="Mrk501_5min_FlareNight_newAnalysis_forHESS"
|
---|
1354 | bin=5
|
---|
1355 | get_results
|
---|
1356 | # isdc analysis
|
---|
1357 | thmax=850
|
---|
1358 | table="AnalysisResultsRunISDC"
|
---|
1359 | nightmin=20140520
|
---|
1360 | nightmax=20140930
|
---|
1361 | name="Mrk501_nightly_stdAnalysis_forHESS"
|
---|
1362 | bin=-1
|
---|
1363 | get_results
|
---|
1364 | name="Mrk501_7d_stdAnalysis_forHESS"
|
---|
1365 | bin=-7
|
---|
1366 | get_results
|
---|
1367 | nightmin=20140623
|
---|
1368 | nightmax=20140623
|
---|
1369 | name="Mrk501_5min_FlareNight_stdAnalysis_forHESS"
|
---|
1370 | bin=5
|
---|
1371 | get_results
|
---|
1372 | # qla
|
---|
1373 | thmax=500
|
---|
1374 | table="AnalysisResultsRunLP"
|
---|
1375 | nightmin=20140520
|
---|
1376 | nightmax=20140930
|
---|
1377 | name="Mrk501_nightly_QLA_forHESS"
|
---|
1378 | bin=-1
|
---|
1379 | get_results
|
---|
1380 |
|
---|
1381 | exit
|
---|
1382 |
|
---|
1383 | # 501 MAGIC
|
---|
1384 | source=2
|
---|
1385 | name="Mrk501_2014_forMAGIC"
|
---|
1386 | bin=-1
|
---|
1387 | crabfluxconv="2.87" # using threshold of 830GeV
|
---|
1388 | crabfluxconv="3.01" # using threshold of 830GeV and MAGIC Crab spectrum
|
---|
1389 | nightmin=20140714
|
---|
1390 | nightmax=20140805
|
---|
1391 | get_results
|
---|
1392 |
|
---|
1393 | name="Mrk501_2014_forMAGIC_20min"
|
---|
1394 | bin=20
|
---|
1395 | get_results
|
---|
1396 |
|
---|
1397 |
|
---|
1398 | exit
|
---|
1399 |
|
---|
1400 | bin=30
|
---|
1401 | name="Mrk501_2014_forMAGIC30"
|
---|
1402 | get_results
|
---|
1403 |
|
---|
1404 | bin=0
|
---|
1405 | name="P"
|
---|
1406 | nightmin=20140501
|
---|
1407 | nightmax=20140930
|
---|
1408 | get_results
|
---|
1409 |
|
---|
1410 | bin=20
|
---|
1411 | nightmin=20140623
|
---|
1412 | nightmax=20140623
|
---|
1413 | name="Mrk501_test"
|
---|
1414 | get_results
|
---|
1415 |
|
---|
1416 |
|
---|
1417 | # end script here
|
---|
1418 | exit
|
---|
1419 |
|
---|
1420 |
|
---|
1421 |
|
---|
1422 | #
|
---|
1423 | # more examples
|
---|
1424 | #
|
---|
1425 |
|
---|
1426 | # Mrk 421
|
---|
1427 | source=1
|
---|
1428 | name="Mrk421_nightly"
|
---|
1429 | bin=-1
|
---|
1430 | get_results
|
---|
1431 | name="Mrk421_20min"
|
---|
1432 | bin=20
|
---|
1433 | get_results
|
---|
1434 | name="Mrk421_3d"
|
---|
1435 | bin=-3
|
---|
1436 | get_results
|
---|
1437 | name="Mrk421_10d"
|
---|
1438 | bin=-10
|
---|
1439 | get_results
|
---|
1440 | name="Mrk421_period"
|
---|
1441 | bin=0
|
---|
1442 | get_results
|
---|
1443 |
|
---|
1444 |
|
---|
1445 |
|
---|
1446 | # Mrk 501
|
---|
1447 | source=2
|
---|
1448 | name="Mrk501_nightly"
|
---|
1449 | bin=-1
|
---|
1450 | get_results
|
---|
1451 | name="Mrk501_20min"
|
---|
1452 | bin=20
|
---|
1453 | get_results
|
---|
1454 | name="Mrk501_3d"
|
---|
1455 | bin=-3
|
---|
1456 | get_results
|
---|
1457 | name="Mrk501_10d"
|
---|
1458 | bin=-10
|
---|
1459 | get_results
|
---|
1460 | name="Mrk501_period"
|
---|
1461 | bin=0
|
---|
1462 | get_results
|
---|
1463 |
|
---|
1464 |
|
---|
1465 |
|
---|
1466 | # 2344
|
---|
1467 | source=3
|
---|
1468 | name="2344_nightly"
|
---|
1469 | bin=-1
|
---|
1470 | get_results
|
---|
1471 | name="2344_20min"
|
---|
1472 | bin=20
|
---|
1473 | get_results
|
---|
1474 | name="2344_period"
|
---|
1475 | bin=0
|
---|
1476 | get_results
|
---|
1477 |
|
---|
1478 |
|
---|
1479 |
|
---|
1480 | # 1959
|
---|
1481 | source=7
|
---|
1482 | name="1959_nightly"
|
---|
1483 | bin=-1
|
---|
1484 | get_results
|
---|
1485 | name="1959_20min"
|
---|
1486 | bin=20
|
---|
1487 | get_results
|
---|
1488 | name="1959_period"
|
---|
1489 | bin=0
|
---|
1490 | get_results
|
---|
1491 |
|
---|
1492 |
|
---|
1493 |
|
---|
1494 | # 0323
|
---|
1495 | source=12
|
---|
1496 | name="0323_nightly"
|
---|
1497 | bin=-1
|
---|
1498 | get_results
|
---|
1499 | name="0323_20min"
|
---|
1500 | bin=20
|
---|
1501 | get_results
|
---|
1502 | name="0323_period"
|
---|
1503 | bin=0
|
---|
1504 | get_results
|
---|
1505 |
|
---|
1506 |
|
---|
1507 |
|
---|
1508 | # crab
|
---|
1509 | source=5
|
---|
1510 | name="Crab_nightly"
|
---|
1511 | bin=-1
|
---|
1512 | get_results
|
---|
1513 | name="Crab_20min"
|
---|
1514 | bin=20
|
---|
1515 | get_results
|
---|
1516 | name="Crab_period"
|
---|
1517 | bin=0
|
---|
1518 | get_results
|
---|
1519 | name="Crab_season"
|
---|
1520 | bin=-365
|
---|
1521 | nightmin=20110716
|
---|
1522 | nightmax=20180716
|
---|
1523 | get_results
|
---|
1524 |
|
---|
1525 |
|
---|
1526 |
|
---|
1527 | name="1959_2016"
|
---|
1528 | source=7
|
---|
1529 | bin=-1
|
---|
1530 | nightmin=20160201
|
---|
1531 | nightmax=20161105
|
---|
1532 | get_results
|
---|
1533 |
|
---|
1534 | name="1959_all_variable"
|
---|
1535 | overwrite="no"
|
---|
1536 | source=7
|
---|
1537 | bin=-365
|
---|
1538 | nightmin=20120201
|
---|
1539 | nightmax=20130131
|
---|
1540 | get_results
|
---|
1541 | nightmin=20130201
|
---|
1542 | nightmax=20140131
|
---|
1543 | get_results
|
---|
1544 | nightmin=20140201
|
---|
1545 | nightmax=20150131
|
---|
1546 | get_results
|
---|
1547 | bin=0
|
---|
1548 | nightmin=20150201
|
---|
1549 | nightmax=20160131
|
---|
1550 | get_results
|
---|
1551 | bin=-1
|
---|
1552 | nightmin=20160201
|
---|
1553 | nightmax=20170131
|
---|
1554 | get_results
|
---|
1555 | bin=0
|
---|
1556 | nightmin=20170201
|
---|
1557 | nightmax=20180131
|
---|
1558 | get_results
|
---|
1559 |
|
---|
1560 |
|
---|
1561 |
|
---|
1562 | overwrite="yes"
|
---|
1563 | name="1959_all_variable2"
|
---|
1564 | overwrite="no"
|
---|
1565 | source=7
|
---|
1566 | bin=-365
|
---|
1567 | nightmin=20120201
|
---|
1568 | nightmax=20130131
|
---|
1569 | get_results
|
---|
1570 | nightmin=20130201
|
---|
1571 | nightmax=20140131
|
---|
1572 | get_results
|
---|
1573 | nightmin=20140201
|
---|
1574 | nightmax=20150131
|
---|
1575 | get_results
|
---|
1576 | bin=0
|
---|
1577 | nightmin=20150201
|
---|
1578 | nightmax=20160131
|
---|
1579 | get_results
|
---|
1580 | bin=-1
|
---|
1581 | nightmin=20160201
|
---|
1582 | nightmax=20160817
|
---|
1583 | get_results
|
---|
1584 | bin=0
|
---|
1585 | nightmin=20160818
|
---|
1586 | nightmax=20180131
|
---|
1587 | get_results
|
---|
1588 |
|
---|
1589 |
|
---|
1590 |
|
---|
1591 | overwrite="yes"
|
---|
1592 | bin=0
|
---|
1593 | source=3
|
---|
1594 | name="2344period"
|
---|
1595 | get_results
|
---|
1596 |
|
---|
1597 |
|
---|
1598 |
|
---|
1599 | # flare night (HESS)
|
---|
1600 | name="Mrk501_10min_flarenight"
|
---|
1601 | source=2
|
---|
1602 | bin=10
|
---|
1603 | nightmin=20140623
|
---|
1604 | nightmax=20140623
|
---|
1605 | get_results
|
---|
1606 |
|
---|
1607 |
|
---|
1608 |
|
---|
1609 | # flare night (HESS)
|
---|
1610 | name="Mrk501_5min_flarenight"
|
---|
1611 | source=2
|
---|
1612 | bin=5
|
---|
1613 | nightmin=20140623
|
---|
1614 | nightmax=20140623
|
---|
1615 | get_results
|
---|
1616 |
|
---|
1617 |
|
---|
1618 |
|
---|
1619 |
|
---|
1620 | # full sample
|
---|
1621 | name="Mrk421_all_nightly"
|
---|
1622 | source=1
|
---|
1623 | get_results
|
---|
1624 |
|
---|
1625 | name="Mrk501_all_nightly"
|
---|
1626 | source=2
|
---|
1627 | get_results
|
---|
1628 |
|
---|
1629 | name="1959_all_nightly"
|
---|
1630 | source=7
|
---|
1631 | get_results
|
---|
1632 |
|
---|
1633 | name="2344_all_nightly"
|
---|
1634 | source=3
|
---|
1635 | get_results
|
---|
1636 |
|
---|
1637 |
|
---|
1638 |
|
---|
1639 | name="HESE20160427"
|
---|
1640 | source=19
|
---|
1641 | nightmin=20160425
|
---|
1642 | bin=-10
|
---|
1643 | get_results
|
---|
1644 |
|
---|
1645 | name="AMON20160731"
|
---|
1646 | source=21
|
---|
1647 | nightmin=20160730
|
---|
1648 | bin=-10
|
---|
1649 | get_results
|
---|
1650 |
|
---|
1651 |
|
---|
1652 |
|
---|