Changeset 19502 for trunk/www


Ignore:
Timestamp:
05/05/19 22:32:57 (6 years ago)
Author:
Daniela Dorner
Message:
fixed overwriting of table
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/dch/db_explorer.php

    r19501 r19502  
    8989    // ETh: 764 GeV
    9090    $crabflux="3.3";
     91    break;
    9192case "CutsLC":
    9293    $zdfactor="pow(cos(fZenithDistanceMean*PI()/180)*exp(1-cos(fZenithDistanceMean*PI()/180)),4.5)";
     
    9495    // ETh: 543 GeV
    9596    $crabflux="5.7";
     97    break;
    9698default:
    9799    $zdfactor="0";
     
    405407    $selecterr="EXCERR(SUM(fNumSigEvts), SUM(fNumBgEvts))/SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn)*3600*SUM(fNumExcEvts/".$zdfactor."/".$thfactor.")/SUM(fNumExcEvts)";
    406408    $isnull="AND NOT ISNULL(fNumExcEvts) AND NOT ISNULL(fEffectiveOn) AND NOT ISNULL(fZenithDistanceMean) AND NOT (ISNULL(fThresholdMinSet) AND ISNULL(fThresholdMedian)) ";
    407     $sqlhaving=" AND e < 1000 ";
     409    $sqlhaving=" AND abs(e) < 1000 ";
    408410    $titley="Corrected excess rate";
    409411    $unity="[1/h]";
     
    414416    $selecterr="EXCERR(SUM(fNumSigEvts), SUM(fNumBgEvts))/SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn)*3600*SUM(fNumExcEvts/".$zdfactor."/".$thfactor."/fCU)/SUM(fNumExcEvts)";
    415417    $isnull="AND NOT ISNULL(fNumExcEvts) AND NOT ISNULL(fEffectiveOn) AND NOT ISNULL(fZenithDistanceMean) AND NOT (ISNULL(fThresholdMinSet) AND ISNULL(fThresholdMedian)) ";
    416     $sqlhaving=" AND e < 1000 ";
     418    $sqlhaving=" AND abs(e) < 1000 ";
    417419    $titley="Flux";
    418420    $unity="[CU]";
     
    423425    $selecterr=$crabflux." * EXCERR(SUM(fNumSigEvts), SUM(fNumBgEvts))/SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn)*3600*SUM(fNumExcEvts/".$zdfactor."/".$thfactor."/fCU)/SUM(fNumExcEvts)";
    424426    $isnull="AND NOT ISNULL(fNumExcEvts) AND NOT ISNULL(fEffectiveOn) AND NOT ISNULL(fZenithDistanceMean) AND NOT (ISNULL(fThresholdMinSet) AND ISNULL(fThresholdMedian)) ";
    425     $sqlhaving=" AND e < 1000 ";
     427    $sqlhaving=" AND abs(e) < 1000 ";
    426428    $titley="Flux";
    427429    $unity="[10^-11/cm2/s]";
     
    768770
    769771$hiddenInput ="";
    770 if (isset($_GET["t"]))
    771   $hiddenInput .= "<input type='hidden' name='t' value='".$_GET["t"]."'>\n";
     772//if (isset($_GET["t"]))
     773//  $hiddenInput .= "<input type='hidden' name='t' value='".$_GET["t"]."'>\n";
    772774if (isset($_GET["db"]))
    773775  $hiddenInput .= "<input type='hidden' name='db' value='".$_GET["db"]."'>\n";
Note: See TracChangeset for help on using the changeset viewer.