Fix jf softwre trigger and tests with real jungfrau detector (#673)

* jungfrau: software triggers do not work, fixed

* eiger test: get highvoltage must be read twice to get the real voltage
This commit is contained in:
Dhanya Thattil
2023-02-20 15:22:46 +01:00
committed by GitHub
parent fe281bd1b1
commit b200a2efc1
10 changed files with 35 additions and 17 deletions

View File

@ -524,11 +524,20 @@ TEST_CASE("gappixels", "[.cmd]") {
Detector det;
CmdProxy proxy(&det);
auto det_type = det.getDetectorType().squash();
bool quad = det.getQuad().squash(false);
bool fullModule = (det.getModuleGeometry().y % 2 == 0);
if (det_type == defs::JUNGFRAU ||
(det_type == defs::EIGER && (quad || fullModule))) {
// test only for jungfrau and eiger(quad or full module only)
bool gapPixelTest = false;
if (det_type == defs::JUNGFRAU)
gapPixelTest = true;
else if (det_type == defs::EIGER) {
bool quad = det.getQuad().squash(false);
bool fullModule = (det.getModuleGeometry().y % 2 == 0);
if (quad || fullModule) {
gapPixelTest = true;
}
}
if (gapPixelTest) {
auto prev_val = det.getGapPixelsinCallback();
{
std::ostringstream oss;