Ignore:
Timestamp:
10/23/11 14:47:52 (13 years ago)
Author:
tbretz
Message:
Added configuration options and more help output.
File:
1 edited

Legend:

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

    r12238 r12239  
    388388        AddEvent("STOP", kStateInProgress)
    389389            (bind(&StateMachineRateScan::StopRateScan, this))
    390             ("");
     390            ("Staop a ratescan in progress");
    391391
    392392        AddEvent("SET_REFERENCE_CAMERA", kStateDimNetworkNA, kStateDisconnected, kStateConnected)
    393393            (bind(&StateMachineRateScan::SetReferenceCamera, this))
    394             ("");
     394            ("Use the camera trigger rate as reference for the reolution");
    395395        AddEvent("SET_REFERENCE_BOARD", "I:1", kStateDimNetworkNA, kStateDisconnected, kStateConnected)
    396396            (bind(&StateMachineRateScan::SetReferenceBoard, this, placeholders::_1))
    397             ("");
     397            ("Use the given board trigger-rate as reference for the reolution"
     398             "|board[idx]:Index of the board (4*crate+board)");
    398399        AddEvent("SET_REFERENCE_PATCH", "I:1", kStateDimNetworkNA, kStateDisconnected, kStateConnected)
    399400            (bind(&StateMachineRateScan::SetReferenceBoard, this, placeholders::_1))
    400             ("");
     401            ("Use the given patch trigger-rate as reference for the reolution"
     402             "|patch[idx]:Index of the patch (360*crate+36*board+patch)"            );
    401403
    402404/*
     
    450452    int EvalOptions(Configuration &conf)
    451453    {
    452         /*
    453         if (!fMap.Read(conf.Get<string>("pixel-map-file")))
    454         {
    455             Error("Reading mapping table from "+conf.Get<string>("pixel-map-file")+" failed.");
    456             return 1;
    457         }*/
    458 
    459         fSecondsMax    = 150;
    460         fResolution    = 0.05;
     454        fSecondsMax = conf.Get<uint16_t>("max-wait");
     455        fResolution = conf.Get<double>("resolution");
    461456
    462457        return -1;
     
    476471void SetupConfiguration(Configuration &conf)
    477472{
    478     /*
    479473    po::options_description control("Rate scan options");
    480474    control.add_options()
    481         ("pixel-map-file",  var<string>("FACTmapV5a.txt"), "Pixel mapping file. Used here to get the default reference voltage.")
     475        ("max-wait",   var<uint16_t>(150), "The maximum number of seconds to wait to get the anticipated resolution for a point.")
     476        ("resolution", var<double>(0.05),  "The minimum resolution required for a single data point.")
    482477        ;
    483478
    484479    conf.AddOptions(control);
    485     */
    486480}
    487481
     
    498492{
    499493    cout <<
    500         /*
    501         "The feedback control the BIAS voltages based on the calibration signal.\n"
     494        "The ratescan program is a tool for automation of rate scans.\n"
    502495        "\n"
    503         "The default is that the program is started without user intercation. "
    504         "All actions are supposed to arrive as DimCommands. Using the -c "
    505         "option, a local shell can be initialized. With h or help a short "
    506         "help message about the usuage can be brought to the screen.\n"
    507         "\n"*/
    508496        "Usage: ratescan [-c type] [OPTIONS]\n"
    509497        "  or:  ratescan [OPTIONS]\n";
Note: See TracChangeset for help on using the changeset viewer.