Changeset 17654 for trunk


Ignore:
Timestamp:
04/04/14 11:34:12 (11 years ago)
Author:
tbretz
Message:
Removed the obsolete ra/dec arguments; output pdf as well
File:
1 edited

Legend:

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

    r17653 r17654  
    4545    po::options_description control("Smart FACT");
    4646    control.add_options()
    47         ("ra",        var<double>(), "Source right ascension")
    48         ("dec",       var<double>(), "Source declination")
     47        //("ra",        var<double>(), "Source right ascension")
     48        //("dec",       var<double>(), "Source declination")
    4949        ("date-time", var<string>(), "SQL time (UTC)")
    5050        ("source-database", var<string>(""), "Database link as in\n\tuser:password@server[:port]/database.")
    51         ("max-current", var<double>(75), "Maximum current to display in other plots.")
    52         ("max-zd", var<double>(75), "Maximum zenith distance to display in other plots")
     51        ("max-current", var<double>(100), "Maximum current to display in other plots.")
     52        ("max-zd", var<double>(50), "Maximum zenith distance to display in other plots")
    5353        ("no-limits", po_switch(), "Switch off limits in plots")
    5454        ;
     
    7575        "twilight which is 12deg below horizon.\n"
    7676        "\n"
    77         "Usage: makeplots sql-datetime [--ra={ra} --dec={dec}]\n";
     77        "Usage: makeplots sql-datetime\n";
     78//        "Usage: makeplots sql-datetime [--ra={ra} --dec={dec}]\n";
    7879    cout << endl;
    7980}
     
    9091        return 127;
    9192
    92     if (conf.Has("ra")^conf.Has("dec"))
    93     {
    94         cout << "ERROR - Either --ra or --dec missing." << endl;
    95         return 1;
    96     }
     93//    if (conf.Has("ra")^conf.Has("dec"))
     94//    {
     95//        cout << "ERROR - Either --ra or --dec missing." << endl;
     96//        return 1;
     97//    }
    9798
    9899    // ------------------ Eval config ---------------------
     
    359360    c4.SaveAs((t+"-MoonDist.root").c_str());
    360361
     362    c1.Print((t+".pdf(").c_str(), "pdf");
     363    c2.Print((t+".pdf" ).c_str(), "pdf");
     364    c3.Print((t+".pdf" ).c_str(), "pdf");
     365    c4.Print((t+".pdf" ).c_str(), "pdf");
     366    c5.Print((t+".pdf)").c_str(), "pdf");
     367
    361368    return 0;
    362369}
Note: See TracChangeset for help on using the changeset viewer.