moench: adding enums for zmq parameters, needs modification in naming

This commit is contained in:
2019-02-21 16:01:24 +01:00
parent 421dbdb9b5
commit f5244faa02
7 changed files with 273 additions and 20 deletions

View File

@ -769,24 +769,34 @@ public:
*/
int setReceiverFramesPerFile(int f = -1, int detPos = -1);
/**
* Sets the value for the additional json header parameter if found, else append it
* @param key additional json header parameter
* @param value additional json header parameter value (cannot be empty)
/**
* Sets the detector minimum/maximum energy threshold in processor (for Moench only)
* @param index 0 for emin, antyhing else for emax
* @param v value to set (-1 gets)
* @param detPos -1 for all detectors in list or specific detector position
* @returns the additional json header parameter value,
* empty if no parameter found in additional json header
*/
std::string setAdditionalJsonParameter(const std::string& key, const std::string& value, int detPos = -1);
* @returns detector minimum/maximum energy threshold
*/
int setDetectorMinMaxEnergyThreshold(const int index, int v, int detPos = -1);
/**
* Sets the frame mode in processor (Moench only)
* @param value frame mode value (-1 gets)
* Options (slsDetectorDefs::frameModeType)
* PEDESTAL, NEW_PEDESTAL, FLATFIELD, NEW_FLATFIELD
* @param detPos -1 for all detectors in list or specific detector position
* @returns frame mode (-1 for not found or error in computing json parameter value)
*/
int setFrameMode(int value, int detPos = -1);
/**
* Returns the additional json header parameter value
* @param key additional json header parameter
* Sets the detector mode in processor (Moench only)
* @param value detector mode value (-1 gets)
* Options (slsDetectorDefs::detectorModeType)
* COUNTING, INTERPOLATING, ANALOG
* @param detPos -1 for all detectors in list or specific detector position
* @returns the additional json header parameter value,
* empty if no parameter found in additional json header
* @returns detector mode (-1 for not found or error in computing json parameter value)
*/
std::string getAdditionalJsonParameter(const std::string& key, int detPos = -1);
int setDetectorMode(int value, int detPos = -1);
/************************************************************************