Changeset 12050 for trunk/FACT++/src/feedback.cc
- Timestamp:
- 09/08/11 22:25:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/feedback.cc
r12047 r12050 592 592 } 593 593 594 int EvalOptions(Configuration &) 595 { 596 //SetEndpoint(conf.Get<string>("addr")); 597 598 //fFSC.SetVerbose(!conf.Get<bool>("quiet")); 599 600 if (!fMap.Read("FACTmapV5a.txt")) 601 { 602 Error("Reading mapping table from FACTmapV5a.txt failed."); 594 int EvalOptions(Configuration &conf) 595 { 596 if (!fMap.Read(conf.Get<string>("pixel-map-file"))) 597 { 598 Error("Reading mapping table from "+conf.Get<string>("pixel-map-file")+" failed."); 603 599 return 1; 604 600 } 605 606 /*607 if (!fBias.SetNewGapdVoltage(map.Vgapd()))608 {609 T::Error("Setting reference voltages failed.");610 return 6;611 }*/612 601 613 602 return -1; … … 623 612 { 624 613 return Main::execute<T, StateMachineFeedback>(conf); 614 } 615 616 void SetupConfiguration(Configuration &conf) 617 { 618 po::options_description control("BIAS control options"); 619 control.add_options() 620 ("pixel-map-file", var<string>("FACTmapV5a.txt"), "Pixel mapping file. Used here to get the default reference voltage.") 621 ; 622 623 conf.AddOptions(control); 625 624 } 626 625 … … 674 673 conf.SetPrintUsage(PrintUsage); 675 674 Main::SetupConfiguration(conf); 675 SetupConfiguration(conf); 676 676 677 677 if (!conf.DoParse(argc, argv, PrintHelp))
Note:
See TracChangeset
for help on using the changeset viewer.