* Enhancements for XFEL
* Enhancements for EIGER * Writer is more flexible and capable of handling DECTRIS data
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
#include "../common/DetectorSetup.h"
|
||||
|
||||
TEST_CASE("DetectorSetup_MismatchInSize") {
|
||||
REQUIRE_THROWS(DetectorSetup(DetectorGeometry(8), "JF", {"mx1","mx2","mx3","mx4"}));
|
||||
REQUIRE_THROWS(DetectorSetup(DetectorGeometry(2), "JF", {"mx1","mx2","mx3","mx4"}));
|
||||
REQUIRE_NOTHROW(DetectorSetup(DetectorGeometry(4), "JF", {"mx1","mx2","mx3","mx4"}));
|
||||
REQUIRE_THROWS(DetectorSetup(DetectorGeometry(8), DetectorType::JUNGFRAU, "JF", {"mx1","mx2","mx3","mx4"}));
|
||||
REQUIRE_THROWS(DetectorSetup(DetectorGeometry(2), DetectorType::JUNGFRAU, "JF", {"mx1","mx2","mx3","mx4"}));
|
||||
REQUIRE_NOTHROW(DetectorSetup(DetectorGeometry(4), DetectorType::JUNGFRAU, "JF", {"mx1","mx2","mx3","mx4"}));
|
||||
}
|
||||
|
||||
TEST_CASE("DetectorSetup_ProtoBuf") {
|
||||
DetectorSetup setup(DetectorGeometry(4), "JF", {"mx1","mx2","mx3","mx4"});
|
||||
DetectorSetup setup(DetectorGeometry(4), DetectorType::JUNGFRAU, "JF", {"mx1","mx2","mx3","mx4"});
|
||||
|
||||
REQUIRE(setup.GetDescription() == "JF");
|
||||
REQUIRE(setup.GetDetectorModuleHostname().size() == 4);
|
||||
@@ -21,7 +21,7 @@ TEST_CASE("DetectorSetup_ProtoBuf") {
|
||||
}
|
||||
|
||||
TEST_CASE("DetectorSetup_ProtoBuf_FullSpeed") {
|
||||
DetectorSetup setup(DetectorGeometry(4), "JF", {"mx1","mx2","mx3","mx4"});
|
||||
DetectorSetup setup(DetectorGeometry(4), DetectorType::JUNGFRAU, "JF", {"mx1","mx2","mx3","mx4"});
|
||||
|
||||
REQUIRE(setup.GetUDPInterfaceCount() == 2);
|
||||
REQUIRE_NOTHROW(setup.UDPInterfaceCount(1));
|
||||
@@ -33,7 +33,7 @@ TEST_CASE("DetectorSetup_ProtoBuf_FullSpeed") {
|
||||
}
|
||||
|
||||
TEST_CASE("DetectorSetup_LoadGainFile") {
|
||||
DetectorSetup setup(DetectorGeometry(4), "JF", {"mx1","mx2","mx3","mx4"});
|
||||
DetectorSetup setup(DetectorGeometry(4), DetectorType::JUNGFRAU, "JF", {"mx1","mx2","mx3","mx4"});
|
||||
REQUIRE_THROWS(setup.LoadGain({}));
|
||||
|
||||
REQUIRE(setup.GetGainCalibration().empty());
|
||||
|
||||
Reference in New Issue
Block a user