|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Settings of a DRP process, filled mostly from command-line options (drp.cc and the other DRP executables) and from the connect information. More...
#include <drp.hh>
Public Member Functions | |
| Parameters () | |
| Set partition to -1u (unset), nworkers to 10, nCubeWorkers to 0, detSegment to 0, laneMask to 0x1, loopbackPort to 0 and verbose to 0. | |
Public Attributes | |
| unsigned | partition |
| Partition number (-p option in drp.cc; -1u means unset). DrpBase.cc also treats bit (1 << partition) of the readout groups as the common readout group. | |
| unsigned | nworkers |
| Number of workers (-W option in drp.cc; default 10). | |
| unsigned | nCubeWorkers |
| Number of cube workers (-Q option in drp.cc; default 0). | |
| unsigned | batchSize |
| Batch size; drp.cc sets it to 32 (its comment says it must be a power of 2). | |
| unsigned | detSegment |
| Detector segment number; drp.cc parses it from the _N suffix of alias. | |
| uint8_t | laneMask |
| Bit mask of the PGP lanes in use (-l option in drp.cc, hexadecimal; default 0x1). | |
| std::string | alias |
| Unique name of the form detName_N (-u option in drp.cc). | |
| std::string | detName |
| Detector name; drp.cc takes it from alias without the _N suffix. | |
| std::string | device |
| Device file to open, for example by MemPoolCpu (-d option in drp.cc). | |
| std::string | outputDir |
| Output directory (-o option in drp.cc). | |
| std::string | instrument |
| Instrument name with any :station suffix removed (-P option in drp.cc). | |
| std::string | detType |
| Detector type string (-D option in drp.cc); drp.cc uses it to decide which kwargs are accepted. | |
| std::string | serNo |
| Serial number string (-S option in drp.cc). | |
| std::string | collectionHost |
| Host of the collection server (-C option in drp.cc). | |
| std::string | prometheusDir |
| Prometheus configuration directory (-M option in drp.cc). | |
| std::map< std::string, std::string > | kwargs |
| Keyword arguments parsed from the -k options. | |
| uint32_t | rogMask |
| Readout group mask built by DrpBase.cc from the connect information (0x00ff0000 plus one bit per readout group in use); SlowUpdates missing any of these groups are dropped. | |
| int | loopbackPort |
| Loopback data port used by UdpEncoder when non-zero (default 0). | |
| unsigned | verbose |
| Verbosity level (each -v in drp.cc adds one; default 0). | |
| size_t | maxTrSize |
| Maximum transition datagram size in bytes; drp.cc sets 8 MiB and several other executables 256 KiB. | |
| bool | cubeKeepRaw |
| True when the -Q value in drp.cc is followed by a plus sign. | |
Settings of a DRP process, filled mostly from command-line options (drp.cc and the other DRP executables) and from the connect information.
|
inline |
Set partition to -1u (unset), nworkers to 10, nCubeWorkers to 0, detSegment to 0, laneMask to 0x1, loopbackPort to 0 and verbose to 0.
batchSize, rogMask, maxTrSize and cubeKeepRaw are not initialized here.
| std::string Drp::Parameters::alias |
Unique name of the form detName_N (-u option in drp.cc).
| unsigned Drp::Parameters::batchSize |
Batch size; drp.cc sets it to 32 (its comment says it must be a power of 2).
| std::string Drp::Parameters::collectionHost |
Host of the collection server (-C option in drp.cc).
| bool Drp::Parameters::cubeKeepRaw |
True when the -Q value in drp.cc is followed by a plus sign.
| std::string Drp::Parameters::detName |
Detector name; drp.cc takes it from alias without the _N suffix.
| unsigned Drp::Parameters::detSegment |
Detector segment number; drp.cc parses it from the _N suffix of alias.
| std::string Drp::Parameters::detType |
Detector type string (-D option in drp.cc); drp.cc uses it to decide which kwargs are accepted.
| std::string Drp::Parameters::device |
Device file to open, for example by MemPoolCpu (-d option in drp.cc).
| std::string Drp::Parameters::instrument |
Instrument name with any :station suffix removed (-P option in drp.cc).
| std::map<std::string,std::string> Drp::Parameters::kwargs |
Keyword arguments parsed from the -k options.
| uint8_t Drp::Parameters::laneMask |
Bit mask of the PGP lanes in use (-l option in drp.cc, hexadecimal; default 0x1).
| int Drp::Parameters::loopbackPort |
Loopback data port used by UdpEncoder when non-zero (default 0).
| size_t Drp::Parameters::maxTrSize |
Maximum transition datagram size in bytes; drp.cc sets 8 MiB and several other executables 256 KiB.
| unsigned Drp::Parameters::nCubeWorkers |
Number of cube workers (-Q option in drp.cc; default 0).
| unsigned Drp::Parameters::nworkers |
Number of workers (-W option in drp.cc; default 10).
| std::string Drp::Parameters::outputDir |
Output directory (-o option in drp.cc).
| unsigned Drp::Parameters::partition |
Partition number (-p option in drp.cc; -1u means unset). DrpBase.cc also treats bit (1 << partition) of the readout groups as the common readout group.
| std::string Drp::Parameters::prometheusDir |
Prometheus configuration directory (-M option in drp.cc).
| uint32_t Drp::Parameters::rogMask |
Readout group mask built by DrpBase.cc from the connect information (0x00ff0000 plus one bit per readout group in use); SlowUpdates missing any of these groups are dropped.
| std::string Drp::Parameters::serNo |
Serial number string (-S option in drp.cc).
| unsigned Drp::Parameters::verbose |
Verbosity level (each -v in drp.cc adds one; default 0).