#include <StandaloneDataIO.h>
|
static ErrorState | read_cluster_info (const std::filesystem::path &file, CaloRecGPU::Helpers::CPU_object< CaloRecGPU::ClusterInfoArr > &clusters, const bool report=false) |
|
static ErrorState | read_cell_info (const std::filesystem::path &file, CaloRecGPU::Helpers::CPU_object< CaloRecGPU::CellInfoArr > &cell_info, const bool report=false) |
|
static ErrorState | read_cell_state (const std::filesystem::path &file, CaloRecGPU::Helpers::CPU_object< CaloRecGPU::CellStateArr > &cell_state, const bool report=false) |
|
static ErrorState | write_cluster_info (std::filesystem::path file, const CaloRecGPU::Helpers::CPU_object< CaloRecGPU::ClusterInfoArr > &clusters, const bool report=false) |
|
static ErrorState | write_cell_info (std::filesystem::path file, const CaloRecGPU::Helpers::CPU_object< CaloRecGPU::CellInfoArr > &cell_info, const bool report=false) |
|
static ErrorState | write_cell_state (std::filesystem::path file, const CaloRecGPU::Helpers::CPU_object< CaloRecGPU::CellStateArr > &cell_state, const bool report=false) |
|
Definition at line 110 of file StandaloneDataIO.h.
◆ read_cell_info()
Definition at line 149 of file StandaloneDataIO.h.
153 std::ifstream in(
file.native(), std::ios_base::binary);
154 cell_info.binary_input(in);
◆ read_cell_state()
Definition at line 164 of file StandaloneDataIO.h.
168 std::ifstream in(
file.native(), std::ios_base::binary);
169 cell_state.binary_input(in);
◆ read_cluster_info()
Definition at line 115 of file StandaloneDataIO.h.
121 std::ifstream in(
file.native(), std::ios_base::binary);
123 in.read((
char *) & (
clusters->number),
sizeof(
int));
131 in.read((
char *)
clusters->clusterEnergy,
sizeof(
float) *
clusters->number);
◆ write_cell_info()
Definition at line 202 of file StandaloneDataIO.h.
206 file.replace_extension(
".cellinfo");
207 std::ofstream
out(
file, std::ios_base::binary);
208 cell_info.binary_output(
out);
◆ write_cell_state()
Definition at line 218 of file StandaloneDataIO.h.
222 file.replace_extension(
".cellstate");
223 std::ofstream
out(
file, std::ios_base::binary);
224 cell_state.binary_output(
out);
◆ write_cluster_info()
◆ StandaloneDataIO
The documentation for this struct was generated from the following file: