Changeset 19961 for trunk/DataCheck/Tools
- Timestamp:
- 05/18/20 17:15:54 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Tools/get_data.sh
r19943 r19961 466 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 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'" 468 querybase=$querybase$where 469 queryend=" ORDER BY fRunStart) o GROUP BY block HAVING ontime>0.75*"$bin" ORDER BY 'time'" 469 470 470 471 # internal … … 479 480 queryint=$queryint" MIN(o.zdmin) AS zdmin, MAX(o.zdmax) AS zdmax, MIN(o.th) AS thmin, MAX(o.th) AS thmax, " 480 481 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 482 if [ "$factorcut" == "" ] 483 then 484 queryint=$queryint" "$querybase" "$querydch" "$queryend 485 else 486 queryint=$queryint" "$querybase" "$querydch" AND ("$zdfactor" * "$thfactor") > "$factorcut" "$queryend 487 fi 483 488 # for collaborators 484 489 querycol=$querystart … … 487 492 querycol=$querycol" "$excrateerr2", "$correxcrateerr2", "$cuerr2", "$fluxcorerr2", " 488 493 querycol=$querycol" "$significance2 489 querycol=$querycol" "$querybase 494 if [ "$factorcut" == "" ] 495 then 496 querycol=$querycol" "$querybase" "$querydch" "$queryend 497 else 498 querycol=$querycol" "$querybase" "$querydch" AND ("$zdfactor" * "$thfactor") > "$factorcut" "$queryend 499 fi 490 500 491 501 # external 492 queryext=$querystart" "$excrate2", "$deltat2", "$ontime2", "$excrateerr2" "$querybase 502 # no datacheck applied for external files 503 queryext=$querystart" "$excrate2", "$deltat2", "$ontime2", "$excrateerr2" "$querybase" "$queryend 493 504 494 505 fi … … 726 737 727 738 739 740 # LC for periodicity studies 741 datapath=/home/dorner/analysis.FACT/flux.states.2020 742 table="AnalysisResultsRunCutsLC" # CutsLC 743 # nightly 744 bin=-1 745 nightmin=20111115 746 nightmax=20201231 747 # 0323 748 name="0323_nightly" 749 source=12 750 get_results 751 752 exit 753 754 755 # LC for Mrk 421 paper with MAGIC - check IDV 756 # from David: MJD 57030 - 57540 (i.e. 8.1.2015 - 1.6.2016) 757 datapath=/home/dorner/analysis.FACT/421.IDV 758 # include lidar data 759 dch=" AND fR750Cor/fR750Ref > 0.93 " 760 table="AnalysisResultsRunCutsLC" # CutsLC 761 # conversion factor to fluxes for CutsLC 762 # using slope of -3.35 -> threshold ~685 GeV 763 # details: https://www.fact-project.org/logbook/showthread.php?tid=6994&pid=28902#pid28902 764 crabfluxconv="3.64" 765 # Mrk 421 766 source=1 767 # 20 min 768 bin=20 769 # time range of MAGIC paper 770 nightmin=20141101 771 nightmax=20160630 772 name="Mrk421_20141101_20160630_20min_forMAGIC_DChLim" 773 get_results 774 # 30 min binning 775 bin=30 776 name="Mrk421_20141101_20160630_30min_forMAGIC_DChLim" 777 get_results 778 # 40 min binning 779 bin=40 780 name="Mrk421_20141101_20160630_40min_forMAGIC_DChLim" 781 get_results 782 # 60 min binning 783 bin=60 784 name="Mrk421_20141101_20160630_60min_forMAGIC_DChLim" 785 get_results 786 # 80 min binning 787 bin=80 788 name="Mrk421_20141101_20160630_80min_forMAGIC_DChLim" 789 get_results 790 # 90 min binning 791 bin=90 792 name="Mrk421_20141101_20160630_90min_forMAGIC_DChLim" 793 get_results 794 # 100 min binning 795 bin=100 796 name="Mrk421_20141101_20160630_100min_forMAGIC_DChLim" 797 get_results 798 # 120 min binning 799 bin=120 800 name="Mrk421_20141101_20160630_120min_forMAGIC_DChLim" 801 get_results 802 # all data 803 nightmin=20111115 804 nightmax=20201231 805 bin=20 806 name="Mrk421_all_20min_DChLim" 807 get_results 808 bin=30 809 name="Mrk421_all_30min_DChLim" 810 get_results 811 bin=40 812 name="Mrk421_all_40min_DChLim" 813 get_results 814 bin=60 815 name="Mrk421_all_60min_DChLim" 816 get_results 817 bin=80 818 name="Mrk421_all_80min_DChLim" 819 get_results 820 bin=90 821 name="Mrk421_all_90min_DChLim" 822 get_results 823 bin=100 824 name="Mrk421_all_100min_DChLim" 825 get_results 826 bin=120 827 name="Mrk421_all_120min_DChLim" 828 get_results 829 830 831 832 exit 833 834 835 # IDV LCs for Mrk 421 with MAGIC 836 # Biswajit: MJD 56970-57560 837 # = 2014-11-09 - 2016-06-21 838 # is covered in check (below) 839 # IDV in MAGIC: 2015-01-26 840 # IDV in FACT: 2015-03-11 841 # details: https://www.fact-project.org/logbook/showthread.php?tid=7297 842 datapath=/home/dorner/analysis.FACT/corrected.lcs.for.collaborators/lcs 843 table="AnalysisResultsRunCutsLC" # CutsLC 844 # Mrk 421 845 source=1 846 # conversion factor to fluxes for CutsLC 847 # using slope of -3.35 -> threshold ~685 GeV 848 # details: https://www.fact-project.org/logbook/showthread.php?tid=6994&pid=28902#pid28902 849 crabfluxconv="3.64" 850 # 20 min 851 bin=20 852 nightmin=20150126 853 nightmax=20150126 854 name="Mrk421_20150126_20min_forMAGIC" 855 get_results 856 nightmin=20150311 857 nightmax=20150311 858 name="Mrk421_20150311_20min_forMAGIC" 859 get_results 860 861 862 863 864 # LC for Mrk 421 paper with MAGIC - check IDV 865 # from David: MJD 57030 - 57540 (i.e. 8.1.2015 - 1.6.2016) 866 datapath=/home/dorner/analysis.FACT/421.IDV 867 table="AnalysisResultsRunCutsLC" # CutsLC 868 # conversion factor to fluxes for CutsLC 869 # using slope of -3.35 -> threshold ~685 GeV 870 # details: https://www.fact-project.org/logbook/showthread.php?tid=6994&pid=28902#pid28902 871 crabfluxconv="3.64" 872 # Mrk 421 873 source=1 874 # 20 min 875 bin=20 876 # time range of MAGIC paper 877 nightmin=20141101 878 nightmax=20160630 879 name="Mrk421_20141101_20160630_20min_forMAGIC" 880 get_results 881 # 30 min binning 882 bin=30 883 name="Mrk421_20141101_20160630_30min_forMAGIC" 884 get_results 885 # 40 min binning 886 bin=40 887 name="Mrk421_20141101_20160630_40min_forMAGIC" 888 get_results 889 # 60 min binning 890 bin=60 891 name="Mrk421_20141101_20160630_60min_forMAGIC" 892 get_results 893 # 80 min binning 894 bin=80 895 name="Mrk421_20141101_20160630_80min_forMAGIC" 896 get_results 897 # 90 min binning 898 bin=90 899 name="Mrk421_20141101_20160630_90min_forMAGIC" 900 get_results 901 # 100 min binning 902 bin=100 903 name="Mrk421_20141101_20160630_100min_forMAGIC" 904 get_results 905 # 120 min binning 906 bin=120 907 name="Mrk421_20141101_20160630_120min_forMAGIC" 908 get_results 909 # all data 910 nightmin=20111115 911 nightmax=20201231 912 bin=20 913 name="Mrk421_all_20min" 914 get_results 915 bin=30 916 name="Mrk421_all_30min" 917 get_results 918 bin=40 919 name="Mrk421_all_40min" 920 get_results 921 bin=60 922 name="Mrk421_all_60min" 923 get_results 924 bin=80 925 name="Mrk421_all_80min" 926 get_results 927 bin=90 928 name="Mrk421_all_90min" 929 get_results 930 bin=100 931 name="Mrk421_all_100min" 932 get_results 933 bin=120 934 name="Mrk421_all_120min" 935 get_results 936 937 938 939 exit 940 728 941 # LC for periodicity studies 729 942 datapath=/home/dorner/analysis.FACT/corrected.lcs.for.collaborators/lcs/
Note:
See TracChangeset
for help on using the changeset viewer.