Index: trunk/DataCheck/Tools/get_data.sh
===================================================================
--- trunk/DataCheck/Tools/get_data.sh	(revision 19939)
+++ trunk/DataCheck/Tools/get_data.sh	(revision 19943)
@@ -168,4 +168,11 @@
    # PL.SetParameter(0, 3.45e-11);
    case "$table" in 
+   "AnalysisResultsRunLP")
+      zdfactor="(pow(cos(fZenithDistanceMean*PI()/180),3)+14.8/21.9*pow(sin(2*fZenithDistanceMean*PI()/180),5))" 
+      #zdfactor="(1/(pow(cos(fZenithDistanceMean*PI()/180),3)+14.8/21.9*pow(sin(2*fZenithDistanceMean*PI()/180),5)))" 
+      thfactor="(1-0.00124/1.21*(IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)-500)*(IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)>=500))"
+      # ETh: 1100 GeV 
+      crabflux="1.81"
+      ;;
    "AnalysisResultsRunISDC")
       zdfactor="pow(cos(fZenithDistanceMean*PI()/180)*exp(1-cos(fZenithDistanceMean*PI()/180)),4.2)" 
@@ -179,11 +186,4 @@
       # ETh: 785 GeV
       crabflux="3.14"
-      ;;
-   "AnalysisResultsRunLP")
-      zdfactor="(pow(cos(fZenithDistanceMean*PI()/180),3)+14.8/21.9*pow(sin(2*fZenithDistanceMean*PI()/180),5))" 
-      #zdfactor="(1/(pow(cos(fZenithDistanceMean*PI()/180),3)+14.8/21.9*pow(sin(2*fZenithDistanceMean*PI()/180),5)))" 
-      thfactor="(1-0.00124/1.21*(IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)-500)*(IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)>=500))"
-      # ETh: 1100 GeV 
-      crabflux="1.81"
       ;;
    "*")
@@ -685,4 +685,6 @@
 overwrite="yes"
 # optional: require minimal ontime per bin (default 20 min)
+#  values given in seconds
+#  option only valid for binnings >= 1 day
 #ontimelimit=1800 # 30 min
 ontimelimit= # default 20 min
@@ -724,4 +726,100 @@
 
 
+# LC for periodicity studies
+datapath=/home/dorner/analysis.FACT/corrected.lcs.for.collaborators/lcs/
+table="AnalysisResultsRunCutsLC" # CutsLC
+# nightly 
+bin=-1
+nightmin=20111115
+nightmax=20201231
+# Mrk 421
+name="Mrk421_nightly_forPeriodicity"
+source=1
+get_results
+# 1959
+name="1ES1959_nightly_forPeriodicity"
+source=7
+get_results
+# Crab
+name="Crab_nightly_forPeriodicity"
+source=5
+get_results
+
+exit
+
+
+# check of Vitalii's BB
+datapath=/home/dorner/SW/bb/
+table="AnalysisResultsRunCutsLC" # CutsLC
+# nightly 
+bin=-1
+nightmin=20111115
+nightmax=20201231
+# Mrk 421
+source=1
+name="Mrk421_nightly_forBB"
+get_results
+
+exit
+
+
+# LC for Fermi collaboration meeting
+datapath=/home/dorner/analysis.FACT/LC.incl.alerts
+table="AnalysisResultsRunCutsLC" # CutsLC
+# nightly 
+bin=-1
+nightmin=20111115
+nightmax=20201231
+# Mrk 421
+source=1
+name="Mrk421_nightly_forFermiCM"
+get_results
+# Mrk 501
+name="Mrk501_nightly_forFermiCM"
+source=2
+get_results
+# 1959
+name="1959_nightly_forFermiCM"
+source=7
+get_results
+
+
+exit
+
+# LC for Mrk 421 paper with MAGIC 
+# from David: MJD 57030 - 57540 (i.e. 8.1.2015 - 1.6.2016)
+datapath=/home/dorner/FACT.analysis/corrected.lcs.for.collaborators/lcs/
+table="AnalysisResultsRunCutsLC" # CutsLC
+# nightly 
+bin=-1
+nightmin=20141101
+nightmax=20160630
+# conversion factor to fluxes for CutsLC 
+#  using slope of -3.35 -> threshold ~685 GeV
+#  details: https://www.fact-project.org/logbook/showthread.php?tid=6994&pid=28902#pid28902
+crabfluxconv="3.64" 
+# Mrk 421
+source=1
+name="Mrk421_nightly_20141101_20160630_forMAGIC"
+get_results
+
+
+
+exit
+# LC for Gopal for periodicity study
+datapath=/home/dorner/FACT.analysis/corrected.lcs.for.collaborators/lcs/
+table="AnalysisResultsRunCutsLC" # CutsLC
+# nightly 
+bin=-1
+nightmin=20111115
+nightmax=20201231
+# Mrk 501
+name="Mrk501_nightly"
+source=2
+get_results
+
+exit
+
+
 # LC for Mrk 421 for crosscheck of BB 
 datapath=/home/dorner/SW/bb/
