Changes between Version 6 and Version 7 of DatabaseBasedAnalysis


Ignore:
Timestamp:
08/03/18 17:24:26 (6 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBasedAnalysis

    v6 v7  
    8585   COUNT(*),
    8686   SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn/3600) AS EffOnTime,
    87    MIN(fZenithDistanceMin) AS ZdMin,
    88    MAX(fZenithDistanceMax) AS ZdMax
     87   MIN(fZenithDistanceMin) AS MinZd,
     88   MAX(fZenithDistanceMax) AS MaxZd,
     89   MIN(fR750Cor/fR750Ref)  AS MinQ,
     90   MAX(fR750Cor/fR750Ref)  AS MaxQ
    8991FROM
    9092   RunInfo
     
    99101The result (in mysql) is
    100102{{{
    101 +----------+-------------+-------+-------+
    102 | COUNT(*) | EffOnTime   | ZdMin | ZdMax |
    103 +----------+-------------+-------+-------+
    104 |      435 | 32.53992354 |  6.36 | 67.89 |
    105 +----------+-------------+-------+-------+
     103+----------+-------------+-------+-------+---------+---------+
     104| COUNT(*) | EffOnTime   | MinZd | MaxZd | MinQ    | MaxQ    |
     105+----------+-------------+-------+-------+---------+---------+
     106|      435 | 32.53992354 |  6.36 | 67.89 | 0.01477 | 1.10584 |
     107+----------+-------------+-------+-------+---------+---------+
    1061081 row in set (0.01 sec)
    107109}}}
    108110
    109 So we have 435 data runs from Crab with a total effective observation time of 32.5 hrs in a zenith angle range between 6° and 68°.
     111So we have 435 data runs from Crab with a total effective observation time of 32.5 hours in a zenith angle range between 6° and 68° and a bad weather factor between 0.01 (really bad) to 1.1 (extremely good).
     112
     113Taking only good data by adding {{{AND fR750Cor/fR750Ref>0.9}}} to the WHERE-clause gives us
     114{{{
     115+----------+-------------+-------+-------+---------+---------+
     116| COUNT(*) | EffOnTime   | ZdMin | ZdMax | MinQ    | MaxQ    |
     117+----------+-------------+-------+-------+---------+---------+
     118|      328 | 24.58955887 |  6.36 | 67.86 | 0.90084 | 1.10584 |
     119+----------+-------------+-------+-------+---------+---------+
     1201 row in set (0.00 sec)
     121}}}
     122
     123But we also want to restrict ourselves to "good" zenith angles (zenith angles at which there is no significnat efficiency loss). So we add {{{AND fZenithDistanceMax<35}} to the WHERE-clause which yields
     124{{{
     125+----------+-------------+-------+-------+---------+---------+
     126| COUNT(*) | EffOnTime   | ZdMin | ZdMax | MinQ    | MaxQ    |
     127+----------+-------------+-------+-------+---------+---------+
     128|      244 | 19.06608557 |  6.36 | 34.90 | 0.90084 | 1.10584 |
     129+----------+-------------+-------+-------+---------+---------+
     1301 row in set (0.00 sec)
     131}}}
    110132
    111133