Changeset 19583


Ignore:
Timestamp:
09/01/19 11:21:50 (5 years ago)
Author:
tbretz
Message:
Added some comments in the code and minor changes to the output.
File:
1 edited

Legend:

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

    r19555 r19583  
    751751        }
    752752
     753        // `Reschedule`:  Start time before            end time of ToO (type==data)
     754        // `Following`:   Start time after             end time of ToO (type==any)
     755        // `Delete`:      Start time between start and end time of ToO (type==data)
     756
    753757        vector<string> list;
    754758
    755         int32_t firstdata  = -1;
    756         int32_t reschedule = -1;
    757         int32_t following  = -1;
    758         int32_t last_resch = -1;
     759        int32_t firstdata  = -1;  // First observation with type==data
     760        int32_t reschedule = -1;  // Last  observation with: Start time before end time of ToO (type==data)
     761        int32_t following  = -1;  // First observation with: Start time after  end time of ToO (type==any)
     762        int32_t last_resch = -1;  // Last  observation with: Start time before end time of ToO (type=data) and start time not between start and end time of ToO (type==any)
    759763        for (size_t i=0; i<resS.num_rows(); i++)
    760764        {
     
    11031107        const CheckVisibility check(conditions, grb.ra, grb.dec);
    11041108
    1105         Info("Sun altitude:  "+Tools::Form("%5.1f\u00b0 ", check.solarobj.fSunHrz.alt)+(check.valid_sun?"OK    ":"failed")+Tools::Form(" [alt < %5.1f\u00b0]", conditions[kSunMax]));
     1109        Info("Sun altitude:  "+Tools::Form("%5.1f\u00b0   ", check.solarobj.fSunHrz.alt)+(check.valid_sun?"OK    ":"failed")+Tools::Form(" [alt < %5.1f\u00b0]", conditions[kSunMax]));
    11061110        if (check.valid_sun)
    11071111        {
    1108             Info("Moon distance: "+Tools::Form("%5.1f\u00b0 ", check.moon_dist)  +(check.valid_moon   ?"OK    ":"failed")+Tools::Form(" [%5.1f\u00b0 < d < %5.1f\u00b0]", conditions[kMoonMin], conditions[kMoonMax]));
    1109             Info("Zenith angle:  "+Tools::Form("%5.1f\u00b0 ", check.position.zd)+(check.valid_zd     ?"OK    ":"failed")+Tools::Form(" [zd < %5.1f\u00b0]", conditions[kZenithMax]));
    1110             Info("Current:       "+Tools::Form("%5.1f\u00b5A", check.current)    +(check.valid_current?"OK    ":"failed")+Tools::Form(" [I < %5.1f\u00b5A]", conditions[kCurrentMax]));
     1112            Info("Moon distance: "+Tools::Form("%5.1f\u00b0   ", check.moon_dist)  +(check.valid_moon   ?"OK    ":"failed")+Tools::Form(" [%5.1f\u00b0 < d < %5.1f\u00b0]", conditions[kMoonMin], conditions[kMoonMax]));
     1113            Info("Zenith angle:  "+Tools::Form("%5.1f\u00b0   ", check.position.zd)+(check.valid_zd     ?"OK    ":"failed")+Tools::Form(" [zd < %5.1f\u00b0]", conditions[kZenithMax]));
     1114            Info("Current:       "+Tools::Form("%5.1f\u00b5A  ", check.current)    +(check.valid_current?"OK    ":"failed")+Tools::Form(" [I < %5.1f\u00b5A]", conditions[kCurrentMax]));
    11111115            //Info(string("Rel. threshold: ")+(check.valid_threshold?"OK    ":"failed")+" ["+Tools::Form("%5.1f", check.threshold)+"]");
    11121116        }
Note: See TracChangeset for help on using the changeset viewer.