mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
Wip, doc
This commit is contained in:
@ -483,13 +483,15 @@ class Detector {
|
||||
|
||||
Result<defs::scanParameters> getScan(Positions pos = {}) const;
|
||||
|
||||
/** enables/ disables scans for dac, trimbits [Eiger/ Mythen3]
|
||||
* TRIMBIT_SCAN. Enabling scan sets number of frames to number of steps in
|
||||
* receiver. Disabling scan sets number of frames to 1 */
|
||||
/** enables/ disables scans for dac and trimbits \n
|
||||
* Enabling scan sets number of frames to number of steps in
|
||||
* receiver. \n To cancel scan configuration, set dac to '0', which also
|
||||
* sets number of frames to 1 \n [Eiger/ Mythen3] Trimbits using
|
||||
* TRIMBIT_SCAN*/
|
||||
void setScan(const defs::scanParameters t);
|
||||
|
||||
/** gets scan error message in case of error during scan in case of non
|
||||
* blocking acquisition (startDetector, not acquire) */
|
||||
/** Gets Scan error message if scan ended in error for non blocking
|
||||
* acquisitions.*/
|
||||
Result<std::string> getScanErrorMessage(Positions pos = {}) const;
|
||||
///@{
|
||||
|
||||
@ -517,7 +519,7 @@ class Detector {
|
||||
Result<int> getSelectedUDPInterface(Positions pos = {}) const;
|
||||
|
||||
/**
|
||||
* [Jungfrau:
|
||||
* [Jungfrau]
|
||||
* Effective only when number of interfaces is 1.
|
||||
* Options: 0 (outer, default), 1(inner)] //TODO: enum?
|
||||
*/
|
||||
@ -728,6 +730,9 @@ class Detector {
|
||||
/** Client IP Address that last communicated with the receiver */
|
||||
Result<sls::IpAddr> getRxLastClientIP(Positions pos = {}) const;
|
||||
|
||||
/** Get thread ids from the receiver in order of [parent, tcp, listener 0,
|
||||
* processor 0, streamer 0, listener 1, processor 1, streamer 1]. If no
|
||||
* streamer yet or there is no second interface, it gives 0 in its place. */
|
||||
Result<std::array<pid_t, NUM_RX_THREAD_IDS>>
|
||||
getRxThreadIds(Positions pos = {}) const;
|
||||
///@{
|
||||
@ -1408,7 +1413,8 @@ class Detector {
|
||||
* (instead of executing line by line)*/
|
||||
void setPattern(const std::string &fname, Positions pos = {});
|
||||
|
||||
/** [CTB][Moench][Mythen3] */
|
||||
/** [CTB][Moench][Mythen3] [Ctb][Moench][Mythen3] Saves pattern to file
|
||||
* (ascii). \n [Ctb][Moench] Also executes pattern.*/
|
||||
void savePattern(const std::string &fname);
|
||||
|
||||
/** [CTB][Moench] */
|
||||
@ -1487,8 +1493,10 @@ class Detector {
|
||||
Result<std::map<std::string, std::string>>
|
||||
getAdditionalJsonHeader(Positions pos = {}) const;
|
||||
|
||||
/** [Moench] If empty, reset additional json header. Max 20 characters for
|
||||
* each key/value */
|
||||
/** [Moench] If empty, reset additional json header. Default is empty. Max
|
||||
* 20 characters for each key/value. Empty value deletes header. Use only if
|
||||
* to be processed by an intermediate user process listening to receiver zmq
|
||||
* packets such as in Moench */
|
||||
void setAdditionalJsonHeader(
|
||||
const std::map<std::string, std::string> &jsonHeader,
|
||||
Positions pos = {});
|
||||
@ -1498,9 +1506,9 @@ class Detector {
|
||||
Positions pos = {}) const;
|
||||
/**
|
||||
* [Moench]
|
||||
* Sets the value for additional json header parameters if found,
|
||||
* else appends the parameter key and value
|
||||
* If empty, deletes parameter. Max 20 characters for each key/value
|
||||
* Sets the value for additional json header parameters. If not found,
|
||||
* the pair is appended. Empty value deletes parameter. Max 20 characters
|
||||
* for each key/value.
|
||||
*/
|
||||
void setAdditionalJsonParameter(const std::string &key,
|
||||
const std::string &value,
|
||||
@ -1630,7 +1638,7 @@ class Detector {
|
||||
/** lock detector to one client IP. default is unlocked */
|
||||
void setDetectorLock(bool lock, Positions pos = {});
|
||||
|
||||
/** Get last client IP saved on detector server */
|
||||
/** Client IP Address that last communicated with the detector */
|
||||
Result<sls::IpAddr> getLastClientIP(Positions pos = {}) const;
|
||||
|
||||
/** Execute a command on the detector server console */
|
||||
|
@ -1037,14 +1037,12 @@ std::string CmdProxy::Scan(int action) {
|
||||
os << cmd << ' ';
|
||||
if (action == defs::HELP_ACTION) {
|
||||
os << "[dac_name|0|trimbit_scan] [start_val] [stop_val] "
|
||||
"[step_size] [dac settling time ns|us|ms|s]\n\tConfigures to "
|
||||
"scan dac and sets number of frames to number of steps. Must "
|
||||
"acquire after this. \n\tTo cancel the scan configuration "
|
||||
"set dac to '0' without further arguments, which also sets "
|
||||
"number "
|
||||
"of frames back to 1."
|
||||
"\n\t[Eiger][Mythen3] Use trimbit_scan as dac name for a trimbit "
|
||||
"scan."
|
||||
"[step_size] [dac settling time ns|us|ms|s]\n\tEnables/ disables "
|
||||
"scans for dac and trimbits \n\tEnabling scan sets number of "
|
||||
"frames to number of steps in receiver. \n\tTo cancel scan "
|
||||
"configuration, set dac to '0', which also sets number of frames "
|
||||
"to 1. \n\t[Eiger][Mythen3] Use trimbit_scan as dac name for a "
|
||||
"trimbit scan."
|
||||
<< '\n';
|
||||
} else if (action == defs::GET_ACTION) {
|
||||
if (args.size() != 0) {
|
||||
@ -1990,7 +1988,7 @@ std::string CmdProxy::SlowAdc(int action) {
|
||||
os << cmd << ' ';
|
||||
if (action == defs::HELP_ACTION) {
|
||||
os << "[n_channel (0-7 for channel]\n\t[Ctb] Slow "
|
||||
"ADC channel in mV"
|
||||
"ADC channel in uV"
|
||||
<< '\n';
|
||||
} else if (action == defs::GET_ACTION) {
|
||||
if (args.size() != 1) {
|
||||
@ -2355,9 +2353,8 @@ std::string CmdProxy::AdditionalJsonHeader(int action) {
|
||||
if (action == defs::HELP_ACTION) {
|
||||
os << "[key1] [value1] [key2] [value2]...[keyn] [valuen]"
|
||||
"\n\tAdditional json header to be streamed out from receiver via "
|
||||
"zmq. "
|
||||
"Default is empty. Use only if to be processed by an "
|
||||
"intermediate user process "
|
||||
"zmq. Default is empty. Max 20 characters for each key/value. "
|
||||
"Use only if to be processed by an intermediate user process "
|
||||
"listening to receiver zmq packets. Empty value deletes header. "
|
||||
<< '\n';
|
||||
} else if (action == defs::GET_ACTION) {
|
||||
@ -2391,8 +2388,8 @@ std::string CmdProxy::JsonParameter(int action) {
|
||||
if (action == defs::HELP_ACTION) {
|
||||
os << "[key1] [value1]\n\tAdditional json header parameter streamed "
|
||||
"out from receiver. If not found in header, the pair is "
|
||||
"appended. "
|
||||
"An empty values deletes parameter."
|
||||
"appended. An empty values deletes parameter. Max 20 characters "
|
||||
"for each key/value."
|
||||
<< '\n';
|
||||
} else if (action == defs::GET_ACTION) {
|
||||
if (args.size() != 1) {
|
||||
|
@ -1877,7 +1877,7 @@ class CmdProxy {
|
||||
INTEGER_COMMAND_VEC_ID(
|
||||
rx_lock, getRxLock, setRxLock, StringTo<int>,
|
||||
"[0, 1]\n\tLock receiver to one client IP, 1 locks, 0 "
|
||||
"unlocks. Default is unlocked. 1: locks");
|
||||
"unlocks. Default is unlocked.");
|
||||
|
||||
GET_COMMAND(
|
||||
rx_lastclient, getRxLastClientIP,
|
||||
@ -2282,8 +2282,8 @@ class CmdProxy {
|
||||
|
||||
EXECUTE_SET_COMMAND_NOID_1ARG(
|
||||
savepattern, savePattern,
|
||||
"[fname]\n\t[Ctb][Moench][Mythen3] Saves pattern to file (ascii). Also "
|
||||
"executes pattern.");
|
||||
"[fname]\n\t[Ctb][Moench][Mythen3] Saves pattern to file (ascii). "
|
||||
"\n\t[Ctb][Moench] Also executes pattern.");
|
||||
|
||||
INTEGER_COMMAND_HEX_WIDTH16(patioctrl, getPatternIOControl,
|
||||
setPatternIOControl, StringTo<uint64_t>,
|
||||
|
Reference in New Issue
Block a user