DiffractionExperiment: Move internal variables to a C++ structure
This commit is contained in:
@@ -55,15 +55,6 @@ const std::vector<JFModuleGainCalibration> &DetectorSetup::GetGainCalibration()
|
||||
return gain_calibration;
|
||||
}
|
||||
|
||||
DetectorSetup::operator JFJochProtoBuf::Detector() const {
|
||||
JFJochProtoBuf::Detector ret;
|
||||
ret.set_nmodules(GetModulesNum());
|
||||
ret.set_description(GetDescription());
|
||||
ret.set_pixel_size_mm(GetPixelSize_mm());
|
||||
ret.set_udp_interface_count(udp_interface_count);
|
||||
for (const auto& iter: det_modules_hostname)
|
||||
ret.add_module_hostname(iter);
|
||||
|
||||
*ret.mutable_geometry() = geometry;
|
||||
return ret;
|
||||
int64_t DetectorSetup::GetUDPInterfaceCount() const {
|
||||
return udp_interface_count;
|
||||
}
|
||||
Reference in New Issue
Block a user