moved sls_detector_module outside slsDetectorDefs class

This commit is contained in:
Erik Frojdh 2019-04-17 09:27:45 +02:00
parent cedde395a0
commit 91813a2c68
2 changed files with 31 additions and 31 deletions

View File

@ -368,11 +368,11 @@ void slsDetector::initializeDetectorStructure(detectorType type) {
}
}
slsDetectorDefs::sls_detector_module *slsDetector::createModule() {
sls_detector_module *slsDetector::createModule() {
return createModule(detector_shm()->myDetectorType);
}
slsDetectorDefs::sls_detector_module *
sls_detector_module *
slsDetector::createModule(detectorType type) {
// get the detector parameters based on type
detParameters parameters{type};
@ -3709,7 +3709,7 @@ int slsDetector::setModule(sls_detector_module module, int tb) {
return ret;
}
slsDetectorDefs::sls_detector_module *slsDetector::getModule() {
sls_detector_module *slsDetector::getModule() {
int fnum = F_GET_MODULE;
int ret = FAIL;
FILE_LOG(logDEBUG1) << "Getting module";
@ -4810,7 +4810,7 @@ int slsDetector::setDigitalIODelay(uint64_t pinMask, int delay) {
return ret;
}
slsDetectorDefs::sls_detector_module *
sls_detector_module *
slsDetector::interpolateTrim(sls_detector_module *a, sls_detector_module *b,
const int energy, const int e1, const int e2,
int tb) {
@ -4887,7 +4887,7 @@ slsDetector::interpolateTrim(sls_detector_module *a, sls_detector_module *b,
return myMod;
}
slsDetectorDefs::sls_detector_module *
sls_detector_module *
slsDetector::readSettingsFile(const std::string &fname,
sls_detector_module *myMod, int tb) {

View File

@ -62,7 +62,33 @@
#define DEFAULT_STREAMING_TIMER_IN_MS 200
/**
@short structure for a detector module
should not be used by unexperienced users
\see :: moduleRegisterBit ::chipRegisterBit :channelRegisterBit
@li reg is the module register (e.g. dynamic range? see moduleRegisterBit)
@li dacs is the pointer to the array of dac values (in V)
@li adcs is the pointer to the array of adc values (in V)
@li chipregs is the pointer to the array of chip registers
@li chanregs is the pointer to the array of channel registers
@li gain is the module gain
@li offset is the module offset
*/
typedef struct {
int serialnumber; /**< is the module serial number */
int nchan; /**< is the number of channels on the module*/
int nchip; /**< is the number of chips on the module */
int ndac; /**< is the number of dacs on the module */
int reg; /**< is the module register settings (gain level) */
int iodelay; /**< iodelay */
int tau; /**< tau */
int eV; /**< threshold energy */
int *dacs; /**< is the pointer to the array of the dac values (in V) */
int *chanregs; /**< is the pointer to the array of the channel registers */
} sls_detector_module;
typedef char mystring[MAX_STR_LENGTH];
@ -220,33 +246,7 @@ public:
int ymax; /**< is the roi ymax (in channel number)*/
} ROI ;
/**
@short structure for a detector module
should not be used by unexperienced users
\see :: moduleRegisterBit ::chipRegisterBit :channelRegisterBit
@li reg is the module register (e.g. dynamic range? see moduleRegisterBit)
@li dacs is the pointer to the array of dac values (in V)
@li adcs is the pointer to the array of adc values (in V)
@li chipregs is the pointer to the array of chip registers
@li chanregs is the pointer to the array of channel registers
@li gain is the module gain
@li offset is the module offset
*/
typedef struct {
int serialnumber; /**< is the module serial number */
int nchan; /**< is the number of channels on the module*/
int nchip; /**< is the number of chips on the module */
int ndac; /**< is the number of dacs on the module */
int reg; /**< is the module register settings (gain level) */
int iodelay; /**< iodelay */
int tau; /**< tau */
int eV; /**< threshold energy */
int *dacs; /**< is the pointer to the array of the dac values (in V) */
int *chanregs; /**< is the pointer to the array of the channel registers */
} sls_detector_module;
/**