Fixes after MAX IV experiment
This commit is contained in:
@@ -61,6 +61,7 @@ DiffractionExperiment::DiffractionExperiment(const DetectorSetup& det_setup) : d
|
||||
storage_cells = 1;
|
||||
storage_cell_start = 15;
|
||||
storage_cell_delay = std::chrono::nanoseconds(10*1000);
|
||||
detector_delay = std::chrono::nanoseconds(0);
|
||||
|
||||
pedestal_g0_frames = 0;
|
||||
pedestal_g1_frames = 0;
|
||||
@@ -71,6 +72,8 @@ DiffractionExperiment::DiffractionExperiment(const DetectorSetup& det_setup) : d
|
||||
|
||||
series_id = 0;
|
||||
|
||||
conversion_on_fpga = true;
|
||||
|
||||
Mode(DetectorMode::Conversion);
|
||||
}
|
||||
|
||||
@@ -1119,3 +1122,28 @@ DiffractionExperiment &DiffractionExperiment::ROISummation(const std::optional<R
|
||||
std::optional<ROIRectangle> DiffractionExperiment::GetROISummation() const {
|
||||
return dataset.roi_sum;
|
||||
}
|
||||
|
||||
DiffractionExperiment &DiffractionExperiment::ConversionOnFPGA(bool input) {
|
||||
conversion_on_fpga = input;
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool DiffractionExperiment::IsConversionOnFPGA() const {
|
||||
if (GetDetectorMode() == DetectorMode::Conversion)
|
||||
return conversion_on_fpga;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
DiffractionExperiment &DiffractionExperiment::DetectorDelay(std::chrono::nanoseconds input) {
|
||||
detector_delay = input;
|
||||
return *this;
|
||||
}
|
||||
|
||||
std::chrono::nanoseconds DiffractionExperiment::GetDetectorDelay() const {
|
||||
return detector_delay;
|
||||
}
|
||||
|
||||
const DetectorSetup &DiffractionExperiment::GetDetectorSetup() const {
|
||||
return detector;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user