mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-08 11:00:42 +02:00
Merge branch '3.0.1' of github.com:slsdetectorgroup/slsDetectorPackage into 3.0.1
This commit is contained in:
commit
1e479a5c77
@ -119,6 +119,11 @@ target_link_libraries(slsDetectorGui
|
|||||||
pthread
|
pthread
|
||||||
zmq
|
zmq
|
||||||
rt
|
rt
|
||||||
|
png
|
||||||
|
z
|
||||||
|
Qt4::QtOpenGL
|
||||||
|
Qt4::QtSvg
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(gui_client
|
add_executable(gui_client
|
||||||
|
@ -1206,6 +1206,8 @@ class multiSlsDetector : public slsDetectorUtils {
|
|||||||
|
|
||||||
|
|
||||||
slsDetector *getSlsDetector(int pos) {if (pos>=0 && pos< MAXDET) return detectors[pos]; return NULL;};
|
slsDetector *getSlsDetector(int pos) {if (pos>=0 && pos< MAXDET) return detectors[pos]; return NULL;};
|
||||||
|
//additional way of accessing
|
||||||
|
slsDetector *operator()(int pos) {if (pos>=0 && pos< MAXDET) return detectors[pos]; return NULL;};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -149,8 +149,8 @@ slsDetectorDefs::sls_detector_module* energyConversion::interpolateTrim(detector
|
|||||||
enum eiger_DacIndex{SVP,VTR,VRF,VRS,SVN,VTGSTV,VCMP_LL,VCMP_LR,CAL,VCMP_RL,RXB_RB,RXB_LB,VCMP_RR,VCP,VCN,VIS};
|
enum eiger_DacIndex{SVP,VTR,VRF,VRS,SVN,VTGSTV,VCMP_LL,VCMP_LR,CAL,VCMP_RL,RXB_RB,RXB_LB,VCMP_RR,VCP,VCN,VIS};
|
||||||
|
|
||||||
//Copy other dacs
|
//Copy other dacs
|
||||||
int num_dacs_to_copy = 10;
|
int num_dacs_to_copy = 9;
|
||||||
int dacs_to_copy[] = {SVP,VTR,VRS,SVN,VTGSTV,CAL,RXB_RB,RXB_LB,VCN,VIS};
|
int dacs_to_copy[] = {SVP,VTR,SVN,VTGSTV,CAL,RXB_RB,RXB_LB,VCN,VIS};
|
||||||
for (int i = 0; i < num_dacs_to_copy; ++i) {
|
for (int i = 0; i < num_dacs_to_copy; ++i) {
|
||||||
if(a->dacs[dacs_to_copy[i]] != b->dacs[dacs_to_copy[i]]) {
|
if(a->dacs[dacs_to_copy[i]] != b->dacs[dacs_to_copy[i]]) {
|
||||||
deleteModule(myMod);
|
deleteModule(myMod);
|
||||||
@ -160,8 +160,8 @@ slsDetectorDefs::sls_detector_module* energyConversion::interpolateTrim(detector
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Interpolate vrf, vcmp, vcp
|
//Interpolate vrf, vcmp, vcp
|
||||||
int num_dacs_to_interpolate = 6;
|
int num_dacs_to_interpolate = 7;
|
||||||
int dacs_to_interpolate[] = {VRF,VCMP_LL,VCMP_LR,VCMP_RL,VCMP_RR,VCP};
|
int dacs_to_interpolate[] = {VRF,VCMP_LL,VCMP_LR,VCMP_RL,VCMP_RR,VCP, VRS};
|
||||||
for (int i = 0; i < num_dacs_to_interpolate; ++i) {
|
for (int i = 0; i < num_dacs_to_interpolate; ++i) {
|
||||||
myMod->dacs[dacs_to_interpolate[i]] = linearInterpolation(energy, e1, e2,
|
myMod->dacs[dacs_to_interpolate[i]] = linearInterpolation(energy, e1, e2,
|
||||||
a->dacs[dacs_to_interpolate[i]], b->dacs[dacs_to_interpolate[i]]);
|
a->dacs[dacs_to_interpolate[i]], b->dacs[dacs_to_interpolate[i]]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user