Changeset 12239
- Timestamp:
- 10/23/11 14:47:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ratescan.cc
r12238 r12239 388 388 AddEvent("STOP", kStateInProgress) 389 389 (bind(&StateMachineRateScan::StopRateScan, this)) 390 (" ");390 ("Staop a ratescan in progress"); 391 391 392 392 AddEvent("SET_REFERENCE_CAMERA", kStateDimNetworkNA, kStateDisconnected, kStateConnected) 393 393 (bind(&StateMachineRateScan::SetReferenceCamera, this)) 394 (" ");394 ("Use the camera trigger rate as reference for the reolution"); 395 395 AddEvent("SET_REFERENCE_BOARD", "I:1", kStateDimNetworkNA, kStateDisconnected, kStateConnected) 396 396 (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)"); 398 399 AddEvent("SET_REFERENCE_PATCH", "I:1", kStateDimNetworkNA, kStateDisconnected, kStateConnected) 399 400 (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)" ); 401 403 402 404 /* … … 450 452 int EvalOptions(Configuration &conf) 451 453 { 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"); 461 456 462 457 return -1; … … 476 471 void SetupConfiguration(Configuration &conf) 477 472 { 478 /*479 473 po::options_description control("Rate scan options"); 480 474 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.") 482 477 ; 483 478 484 479 conf.AddOptions(control); 485 */486 480 } 487 481 … … 498 492 { 499 493 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" 502 495 "\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"*/508 496 "Usage: ratescan [-c type] [OPTIONS]\n" 509 497 " or: ratescan [OPTIONS]\n";
Note:
See TracChangeset
for help on using the changeset viewer.