Changeset 19566 for trunk/www/dch


Ignore:
Timestamp:
07/23/19 23:04:58 (5 years ago)
Author:
Daniela Dorner
Message:
fixed conversion factors to fluxes
File:
1 edited

Legend:

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

    r19502 r19566  
    8282    $thfactor="(1-0.00124/1.21*(fThresholdMinSet-500)*(fThresholdMinSet>=500))";
    8383    // ETh: 715 GeV
    84     $crabflux="3.6";
     84    $crabflux="1.81";
    8585    break;
    8686case "ISDC":
     
    8888    $thfactor="(1.18-IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)*0.00062)";
    8989    // ETh: 764 GeV
    90     $crabflux="3.3";
     90    $crabflux="1.89";
    9191    break;
    9292case "CutsLC":
     
    9494    $thfactor="(1.37-IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)*0.00118)";
    9595    // ETh: 543 GeV
    96     $crabflux="5.7";
     96    $crabflux="3.14";
    9797    break;
    9898default:
     
    407407    $selecterr="EXCERR(SUM(fNumSigEvts), SUM(fNumBgEvts))/SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn)*3600*SUM(fNumExcEvts/".$zdfactor."/".$thfactor.")/SUM(fNumExcEvts)";
    408408    $isnull="AND NOT ISNULL(fNumExcEvts) AND NOT ISNULL(fEffectiveOn) AND NOT ISNULL(fZenithDistanceMean) AND NOT (ISNULL(fThresholdMinSet) AND ISNULL(fThresholdMedian)) ";
    409     $sqlhaving=" AND abs(e) < 1000 ";
     409    $sqlhaving.=" AND abs(e) < 1000 ";
    410410    $titley="Corrected excess rate";
    411411    $unity="[1/h]";
     
    416416    $selecterr="EXCERR(SUM(fNumSigEvts), SUM(fNumBgEvts))/SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn)*3600*SUM(fNumExcEvts/".$zdfactor."/".$thfactor."/fCU)/SUM(fNumExcEvts)";
    417417    $isnull="AND NOT ISNULL(fNumExcEvts) AND NOT ISNULL(fEffectiveOn) AND NOT ISNULL(fZenithDistanceMean) AND NOT (ISNULL(fThresholdMinSet) AND ISNULL(fThresholdMedian)) ";
    418     $sqlhaving=" AND abs(e) < 1000 ";
     418    $sqlhaving.=" AND abs(e) < 10 ";
    419419    $titley="Flux";
    420420    $unity="[CU]";
     
    425425    $selecterr=$crabflux." * EXCERR(SUM(fNumSigEvts), SUM(fNumBgEvts))/SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn)*3600*SUM(fNumExcEvts/".$zdfactor."/".$thfactor."/fCU)/SUM(fNumExcEvts)";
    426426    $isnull="AND NOT ISNULL(fNumExcEvts) AND NOT ISNULL(fEffectiveOn) AND NOT ISNULL(fZenithDistanceMean) AND NOT (ISNULL(fThresholdMinSet) AND ISNULL(fThresholdMedian)) ";
    427     $sqlhaving=" AND abs(e) < 1000 ";
     427    $sqlhaving.=" AND abs(e) < 1000 ";
    428428    $titley="Flux";
    429429    $unity="[10^-11/cm2/s]";
Note: See TracChangeset for help on using the changeset viewer.