FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 917 of file ratecontrol.cc.

References Configuration::AddOptions(), and po_bool().

Referenced by main().

918 {
919  po::options_description control("Rate control options");
920  control.add_options()
921  ("quiet,q", po_bool(), "Disable printing more informations during rate control.")
922  ("pixel-map-file", var<string>()->required(), "Pixel mapping file. Used here to get the default reference voltage.")
923  //("max-wait", var<uint16_t>(150), "The maximum number of seconds to wait to get the anticipated resolution for a point.")
924  // ("resolution", var<double>(0.05) , "The minimum resolution required for a single data point.")
925  ;
926 
927  conf.AddOptions(control);
928 
929  po::options_description runtype("Run type configuration");
930  runtype.add_options()
931  ("run-type", vars<string>(), "Name of run-types (replace the * in the following configuration by the case-sensitive names defined here)")
932  ("calibration-type.*", var<uint16_t>(), "Calibration type (0: none, 1: by rate, 2: by current)")
933  ("target-rate.*", var<uint16_t>(), "Target rate for calibration by rate")
934  ("min-threshold.*", var<uint16_t>(), "Minimum threshold which can be applied in a calibration")
935  ("average-time.*", var<uint16_t>(), "Time in seconds to average the currents for a calibration by current.")
936  ("required-events.*", var<uint16_t>(), "Number of required current events to start a calibration by current.");
937  ;
938 
939  conf.AddOptions(runtype);
940 }
void AddOptions(const po::options_description &opt, bool visible=true)
Definition: Configuration.h:92
po::typed_value< bool > * po_bool(bool def=false)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: