mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-05-10 20:32:05 +02:00
65c8f2c7d8
Build on RHEL9 / build (push) Successful in 3m22s
Run Simulator Tests on local RHEL9 / build (push) Failing after 3m49s
Build on local RHEL9 / build (push) Successful in 1m26s
Build on RHEL8 / build (push) Successful in 5m13s
Run Simulator Tests on local RHEL8 / build (push) Failing after 5m30s
Build on local RHEL8 / build (push) Successful in 3m33s
* member filePath in Implementation is std::filesystem::path, some refactoring * PR Review * adapted function signature - compiled with hdf5 on
53 lines
2.2 KiB
C++
53 lines
2.2 KiB
C++
// SPDX-License-Identifier: LGPL-3.0-or-other
|
|
// Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
#pragma once
|
|
|
|
#include "MasterAttributes.h"
|
|
|
|
#include <filesystem>
|
|
#include <mutex>
|
|
|
|
namespace sls {
|
|
|
|
namespace masterFileUtility {
|
|
|
|
std::string CreateMasterBinaryFile(const std::filesystem::path &filePath,
|
|
const std::string &fileNamePrefix,
|
|
const uint64_t fileIndex,
|
|
const bool overWriteEnable,
|
|
const bool silentMode,
|
|
MasterAttributes *attr);
|
|
|
|
#ifdef HDF5C
|
|
void LinkHDF5FileInMaster(std::string &masterFileName,
|
|
std::string &dataFilename,
|
|
std::vector<std::string> parameterNames,
|
|
const bool silentMode, std::mutex *hdf5LibMutex,
|
|
size_t multiRoiSize);
|
|
|
|
std::string CreateMasterHDF5File(const std::filesystem::path &filePath,
|
|
const std::string &fileNamePrefix,
|
|
const uint64_t fileIndex,
|
|
const bool overWriteEnable,
|
|
const bool silentMode, MasterAttributes *attr,
|
|
std::mutex *hdf5LibMutex);
|
|
defs::ROI GetGlobalPortRoi(const int iPort, const defs::xy portSize,
|
|
const int numPortsY);
|
|
int GetNumPortsInRoi(const defs::ROI roi, const defs::xy portSize);
|
|
|
|
std::string CreateVirtualHDF5File(
|
|
const std::filesystem::path &filePath, const std::string &fileNamePrefix,
|
|
const uint64_t fileIndex, const bool overWriteEnable, const bool silentMode,
|
|
const int modulePos, const int numUnitsPerReadout,
|
|
const uint32_t maxFramesPerFile, const int nPixelsX, const int nPixelsY,
|
|
const uint32_t dynamicRange, const uint64_t numImagesCaught,
|
|
const int numModX, const int numModY, const H5::DataType dataType,
|
|
const std::vector<std::string> parameterNames,
|
|
const std::vector<H5::DataType> parameterDataTypes,
|
|
std::mutex *hdf5LibMutex, bool gotthard25um,
|
|
std::vector<defs::ROI> multiRoi);
|
|
#endif
|
|
} // namespace masterFileUtility
|
|
|
|
} // namespace sls
|