This commit is contained in:
maliakal_d 2020-09-23 15:07:03 +02:00
parent 0b02fabaf8
commit 750adffe6a
3 changed files with 10 additions and 13 deletions

View File

@ -922,8 +922,7 @@ class Detector(CppDetectorApi):
Also restarts client zmq streaming if enabled. \n Also restarts client zmq streaming if enabled. \n
Default connects to receiver zmq streaming out port (30001). \n Default connects to receiver zmq streaming out port (30001). \n
Must be different for every detector (and udp port). \n Must be different for every detector (and udp port). \n
Multi command will automatically increment for individual modules, use setClientZmqPort. \n Multi command will automatically increment for individual modules, use setClientZmqPort.
Example Example
-------- --------
>>> d.zmqport >>> d.zmqport
@ -1504,14 +1503,13 @@ class Detector(CppDetectorApi):
@property @property
def virtual(self): def virtual(self):
""" """
Setup with n virtual servers running on localhost Setup with n virtual servers running on localhost starting with control port p
starting with port p Note
----
Every virtual server will have a stop port (control port + 1)
Example Example
--------- ---------
>>> d.virtual = n, p >>> d.virtual = n, p
""" """
raise NotImplementedError('Virtual is set only') raise NotImplementedError('Virtual is set only')
@ -2223,12 +2221,9 @@ class Detector(CppDetectorApi):
def vetoref(self): def vetoref(self):
""" """
[Gotthard2] Set veto reference for all 128 channels for all chips. [Gotthard2] Set veto reference for all 128 channels for all chips.
Example Example
---------- ----------
>>> d.vetoref = chip, value >>> d.vetoref = chip, value
""" """
raise NotImplementedError('vetoref is set only') raise NotImplementedError('vetoref is set only')

View File

@ -61,7 +61,8 @@ class Detector {
/**Frees shared memory, adds detectors to the list. */ /**Frees shared memory, adds detectors to the list. */
void setHostname(const std::vector<std::string> &hostname); void setHostname(const std::vector<std::string> &hostname);
/** connects to n servers at local host starting at specific control port */ /** connects to n servers at local host starting at specific control port.
* Every virtual server will have a stop port (control port + 1) */
void setVirtualDetectorServers(int numServers, int startingPort); void setVirtualDetectorServers(int numServers, int startingPort);
/** Gets shared memory ID */ /** Gets shared memory ID */
@ -1157,7 +1158,7 @@ class Detector {
const int energy, const std::string &fname, const int energy, const std::string &fname,
Positions pos = {}); Positions pos = {});
/** [Gotthard2] */ /** [Gotthard2] for all chips */
void setVetoReference(const int gainIndex, const int value, void setVetoReference(const int gainIndex, const int value,
Positions pos = {}); Positions pos = {});

View File

@ -161,7 +161,8 @@ std::string CmdProxy::VirtualServer(int action) {
os << cmd << ' '; os << cmd << ' ';
if (action == defs::HELP_ACTION) { if (action == defs::HELP_ACTION) {
os << "[n_servers] [starting_port_number]\n\tConnecs to n virtual " os << "[n_servers] [starting_port_number]\n\tConnecs to n virtual "
"server at local host starting at specific control port." "server at local host starting at specific control port. Every "
"virtual server will have a stop port (control port + 1)"
<< '\n'; << '\n';
} else if (action == defs::GET_ACTION) { } else if (action == defs::GET_ACTION) {
throw sls::RuntimeError("cannot get"); throw sls::RuntimeError("cannot get");