Changeset 14883 for trunk/FACT++


Ignore:
Timestamp:
02/07/13 13:37:13 (12 years ago)
Author:
tbretz
Message:
Fixed a mistake in the new formula.
File:
1 edited

Legend:

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

    r14882 r14883  
    312312            const double calt = sin(hrzm.alt*M_PI/180);
    313313
    314             const double lc = calt>0 ? cang*sqrt(calt)*pow(disk, 3) : -1;
    315             const double cur = lc>0 ? 8+104.5*lc : 8;
     314            const double lc = cang==0 ? -1 : calt*pow(disk, 3)/sqrt(cang);
     315            const double cur = lc>0 ? 8.1+94.6*lc : 8.1;
    316316
    317317            // Relative  energy threshold prediction
     
    337337
    338338            if (no_limits || (cur<max_current && 90-hrz.alt<max_zd))
    339                 g3.SetPoint(g3.GetN(), axis, ratio*cur/8);
     339                g3.SetPoint(g3.GetN(), axis, ratio*cur/8.1);
    340340
    341341            if (no_limits || (cur<max_current && 90-hrz.alt<max_zd))
Note: See TracChangeset for help on using the changeset viewer.