FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 2360 of file RawEventsViewer.cc.

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

Referenced by main().

2361 {
2362  po::options_description configs("Raw Events Viewer Options");
2363  configs.add_options()
2364  ("color.range", vars<double>(), "Range of the display colours")
2365  ("color.red", vars<double>(), "Range of red values")
2366  ("color.green", vars<double>(), "Range of green values")
2367  ("color.blue", vars<double>(), "Range of blue values")
2368  ("file,f", var<string>(), "File to be loaded")
2369  ("drs,d", var<string>(), "DRS calibration file to be loaded")
2370  ("mappingFile", var<string>(), "Which pixels mapping file to use")
2371  ;
2372  conf.AddOptions(configs);
2373 
2374  po::positional_options_description p;
2375  p.add("file", 1); // The first positional options
2376  p.add("drs", 2); // The first positional options
2377  conf.SetArgumentPositions(p);
2378 
2379 }
void SetArgumentPositions(const po::positional_options_description &desc)
void AddOptions(const po::options_description &opt, bool visible=true)
Definition: Configuration.h:92

+ Here is the call graph for this function:

+ Here is the caller graph for this function: