Changeset 17366


Ignore:
Timestamp:
11/23/13 17:58:41 (11 years ago)
Author:
tbretz
Message:
Updated prediction with something which takes the distance to the moon into account; updated database access
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/makedata.cc

    r17034 r17366  
    112112
    113113    const mysqlpp::StoreQueryResult res =
    114         Database(fDatabase).query("SELECT fRightAscension, fDeclination FROM source WHERE fSourceName='"+source_name+"'").store();
     114        Database(fDatabase).query("SELECT fRightAscension, fDeclination FROM Source WHERE fSourceName='"+source_name+"'").store();
    115115
    116116    // ------------- Create canvases and frames ---------------------
     
    151151        const double calt = sin(hrzm.alt*M_PI/180);
    152152
    153         const double lc = cang==0 ? -1 : calt*pow(disk, 2.2)*pow(dist, -2);
    154         const double cur = lc>0 ? 4+103*lc : 4;
     153        //const double lc = cang==0 ? -1 : calt*pow(disk, 2.2)*pow(dist, -2);
     154        //const double cur = lc>0 ? 4+103*lc : 4;
     155
     156        const double lc  = sqrt(calt)*pow(disk, 2.3)*pow(cang+1, 1)*pow(dist, -2);
     157        const double cur = lc>0 ? 7.2 + 69*lc : 7.2;
    155158
    156159        // Relative  energy threshold prediction
  • trunk/FACT++/src/makeplots.cc

    r16996 r17366  
    140140
    141141    const mysqlpp::StoreQueryResult res =
    142         Database(fDatabase).query("SELECT fSourceName, fRightAscension, fDeclination FROM source").store();
     142        Database(fDatabase).query("SELECT fSourceName, fRightAscension, fDeclination FROM Source").store();
    143143
    144144    // ------------- Create canvases and frames ---------------------
     
    284284            const double calt = sin(hrzm.alt*M_PI/180);
    285285
    286             const double lc = cang==0 ? -1 : calt*pow(disk, 2.2)*pow(dist, -2);
    287             const double cur = lc>0 ? 4+103*lc : 4;
     286            //const double lc = cang==0 ? -1 : calt*pow(disk, 2.2)*pow(dist, -2);
     287            //const double cur = lc>0 ? 4+103*lc : 4;
     288
     289            const double lc  = sqrt(calt)*pow(disk, 2.3)*pow(cang+1, 1)*pow(dist, -2);
     290            const double cur = lc>0 ? 7.2 + 69*lc : 7.2;
    288291
    289292            // Relative  energy threshold prediction
Note: See TracChangeset for help on using the changeset viewer.