DiffractionExperiment: Fix error in pedestal G1/G2 count time
This commit is contained in:
@@ -467,6 +467,18 @@ TEST_CASE("DiffractionExperiment_FrameCountTime_JUNGFRAU","[DiffractionExperimen
|
||||
REQUIRE_NOTHROW(x.FrameTime(10000us, 10us));
|
||||
}
|
||||
|
||||
TEST_CASE("DiffractionExperiment_FrameCountTime_JUNGFRAU_PedestalG1G2","[DiffractionExperiment]") {
|
||||
DetectorSetup setup(DetectorGeometry(1), DetectorType::JUNGFRAU);
|
||||
setup.ReadOutTime(50us);
|
||||
DiffractionExperiment x(setup);
|
||||
REQUIRE_NOTHROW(x.FrameTime(1000us));
|
||||
REQUIRE(x.GetFrameTime() == 1000us);
|
||||
REQUIRE(x.GetFrameCountTime() == 1000us - 50us);
|
||||
x.Mode(DetectorMode::PedestalG1);
|
||||
REQUIRE(x.GetFrameTime().count() == FRAME_TIME_PEDE_G1G2_IN_US);
|
||||
REQUIRE(x.GetFrameCountTime() == 1000us - 50us);
|
||||
}
|
||||
|
||||
TEST_CASE("DiffractionExperiment_InternalPacketGenerator", "[DiffractionExperiment]") {
|
||||
DiffractionExperiment x;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user