Changeset 19234


Ignore:
Timestamp:
10/03/18 20:45:07 (6 years ago)
Author:
tbretz
Message:
Allow to skip ToO sources.
File:
1 edited

Legend:

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

    r19139 r19234  
    5252        ("max-zd", var<double>(50), "Maximum zenith distance to display in other plots")
    5353        ("no-limits", po_switch(), "Switch off limits in plots")
     54        ("no-ToO", po_switch(), "Skip all sources marked as target-of-opportunity (ToO)")
    5455        ;
    5556
     
    127128    // ------------- Get Sources from databasse ---------------------
    128129
     130    const string isToO = conf.Has("no-ToO") && conf.Get<bool>("no-ToO") ? " AND fIsToO=0" : "";
     131
    129132    const mysqlpp::StoreQueryResult res =
    130         Database(fDatabase).query("SELECT fSourceName, fRightAscension, fDeclination FROM Source WHERE fSourceTypeKEY=1").store();
     133        Database(fDatabase).query("SELECT fSourceName, fRightAscension, fDeclination FROM Source WHERE fSourceTypeKEY=1"+isToO).store();
    131134
    132135    // ------------- Create canvases and frames ---------------------
Note: See TracChangeset for help on using the changeset viewer.