Changeset 19938


Ignore:
Timestamp:
Feb 12, 2020, 3:53:03 PM (2 weeks ago)
Author:
dorner
Message:
fixed bug in query for QLA (th-factor could be NULL)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Tools/get_data.sh

    r19937 r19938  
    153153      if [ "$crabfluxconv" != "" ]
    154154      then
    155          echo "# You set a custom conversion to fluxes: "$crabfluxconv" [10^-11 erg/s/cm2]"
     155         echo "# You set a custom conversion to fluxes: "$crabfluxconv" [10^-11 ph/s/cm2]"
    156156      fi
    157157   fi
     
    183183      zdfactor="(pow(cos(fZenithDistanceMean*PI()/180),3)+14.8/21.9*pow(sin(2*fZenithDistanceMean*PI()/180),5))"
    184184      #zdfactor="(1/(pow(cos(fZenithDistanceMean*PI()/180),3)+14.8/21.9*pow(sin(2*fZenithDistanceMean*PI()/180),5)))"
    185       thfactor="(1-0.00124/1.21*(fThresholdMinSet-500)*(fThresholdMinSet>=500))"
     185      thfactor="(1-0.00124/1.21*(IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)-500)*(IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)>=500))"
    186186      # ETh: 1100 GeV
    187187      crabflux="1.81"
     
    685685overwrite="yes"
    686686# optional: require minimal ontime per bin (default 20 min)
    687 #ontimelimit=30 # 30 min
     687#ontimelimit=1800 # 30 min
    688688ontimelimit= # default 20 min
    689689# data quality selection
     
    704704# remove lines which contain NULL (e.g. zd-corrected flux when zd=NULL)
    705705rmemptyrows="yes"
     706rmemptyrow="no"
    706707# remove lines with zdfactor * thfactor > value
    707708factorcut=0.3
     
    723724
    724725
     726# LC for Mrk 421 for crosscheck of BB
     727datapath=/home/dorner/SW/bb/
     728table="AnalysisResultsRunLP"
     729# nightly
     730bin=-1
     731nightmin=20130111
     732nightmax=20180515
     733thmax=560
     734zdmax=60
     735ontimelimit=1800
     736factorcut=
     737rmemptyrows="yes"
     738dch=" AND fR750Cor/fR750Ref BETWEEN 0.93 AND 1.2 AND fHumidityMean<80 "
     739# Mrk 421
     740source=1
     741name="Mrk421_nightly_BBXcheck"
     742get_results
     743
     744
     745
     746exit
     747
     748# LC for Mrk 421 paper with MAGIC
     749# from David: MJD 57030 - 57540 (i.e. 8.1.2015 - 1.6.2016)
     750datapath=/home/dorner/FACT.analysis/corrected.lcs.for.collaborators/lcs/
     751table="AnalysisResultsRunCutsLC" # CutsLC
     752# nightly
     753bin=-1
     754nightmin=20141101
     755nightmax=20160630
     756# conversion factor to fluxes for CutsLC
     757#  using slope of -3.35 -> threshold 690 GeV
     758#  details: https://www.fact-project.org/logbook/showthread.php?tid=6994&pid=28875#pid28875
     759crabfluxconv="0.57"
     760# Mrk 421
     761source=1
     762name="Mrk421_nightly_20141101_20160630_forMAGIC"
     763get_results
     764
     765
     766
     767exit
     768
     769# LCs for TeVPA poster
     770datapath=/home/dorner/FACT.analysis/tevpa2019
     771table="AnalysisResultsRunCutsLC" # CutsLC
     772# nightly
     773bin=-1
     774nightmin=20111115
     775nightmax=20201231
     776# Mrk 421
     777source=1
     778name="Mrk421_nightly"
     779get_results
     780# Mrk 501
     781name="Mrk501_nightly"
     782source=2
     783get_results
     784# 1959
     785name="1959_nightly"
     786source=7
     787get_results
     788# 2344
     789name="2344_nightly"
     790source=3
     791get_results
     792name="2344_monthly"
     793bin=0
     794get_results
     795name="2344_7d"
     796bin=7
     797get_results
     798usedch="no"
     799name="2344_nightly_nodch"
     800source=3
     801get_results
     802name="2344_monthly_nodch"
     803bin=0
     804get_results
     805name="2344_7d_nodch"
     806bin=7
     807get_results
     808usedch="yes"
     809# 1959
     810name="1959_mixed"
     811source=7
     812bin=0
     813nightmin=20111115
     814nightmax=20160331
     815get_results
     816overwrite="no"
     817nightmin=20160401
     818nightmax=20160815
     819bin=-1
     820get_results
     821bin=0
     822nightmin=20160816
     823nightmax=20201231
     824get_results
     825overwrite="yes"
     826
     827exit
     828
     829
    725830datapath=/home/dorner/FACT.analysis/corrected.lcs.for.collaborators/lcs
    726831
    727832# put your data request here, examples below
    728833
    729 # LCs for 421 campaign with Astrosat Jan 2019
     834# LCs for 2344 XMM proposal
     835table="AnalysisResultsRunCutsLC"
     836# 2344
     837source=3
     838# monthly
     839bin=0
     840nightmin=20111115
     841nightmax=20191231
     842name="2344_period_XMM-proposal-2019"
     843get_results
     844
     845exit
     846
     847# LCs for 421 campaign with Astrosat Jan 2019 - crosscheck
    730848table="AnalysisResultsRunLP"
    731849# Mrk 421
     
    764882
    765883
    766 
    767 exit
    768884
    769885# LCs for SED project 2013
Note: See TracChangeset for help on using the changeset viewer.