From 09fa8a3ba585ae7e2a34729113c1a5cf53f78c98 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 31 Jul 2020 17:37:04 +0200 Subject: [PATCH] timing mode into receiver master file --- slsReceiverSoftware/src/MasterAttributes.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/slsReceiverSoftware/src/MasterAttributes.h b/slsReceiverSoftware/src/MasterAttributes.h index 0fc520e8d..4d5b7cc3f 100644 --- a/slsReceiverSoftware/src/MasterAttributes.h +++ b/slsReceiverSoftware/src/MasterAttributes.h @@ -21,6 +21,7 @@ using ns = std::chrono::nanoseconds; class MasterAttributes { public: slsDetectorDefs::detectorType detType{slsDetectorDefs::GENERIC}; + slsDetectorDefs::timingMode timingMode{slsDetectorDefs::AUTO_TIMING}; uint32_t imageSize{0}; slsDetectorDefs::xy nPixels{}; uint32_t maxFramesPerFile{0}; @@ -61,6 +62,8 @@ class MasterAttributes { << BINARY_WRITER_VERSION << '\n' << "TimeStamp : " << ctime(&t) << '\n' << "Detector Type : " << sls::ToString(detType) << '\n' + << "Timing Mode : " << sls::ToString(timingMode) + << '\n' << "Image Size : " << imageSize << " bytes" << '\n' << "Pixels : " << sls::ToString(nPixels) << '\n' << "Max Frames Per File : " << maxFramesPerFile << '\n' @@ -125,6 +128,14 @@ class MasterAttributes { group->createDataSet("detector type", strdatatype, dataspace); dataset.write(sls::ToString(detType), strdatatype); } + // timing mode + { + DataSpace dataspace = DataSpace(H5S_SCALAR); + StrType strdatatype(PredType::C_S1, 256); + DataSet dataset = + group->createDataSet("timing mode", strdatatype, dataspace); + dataset.write(sls::ToString(timingMode), strdatatype); + } // Image Size { DataSpace dataspace = DataSpace(H5S_SCALAR);