mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-03 01:18:38 +01:00
read write cluster file (#60)
* Read and write cluster files (save work) * add reading test * use define for examples env variable and fix ci * read and write cluster files (working) * fix cluster CI
This commit is contained in:
@@ -11,6 +11,20 @@
|
||||
|
||||
namespace aare {
|
||||
|
||||
struct Cluster {
|
||||
int16_t x;
|
||||
int16_t y;
|
||||
std::array<int32_t, 9> data;
|
||||
std::string to_string() const {
|
||||
std::string s = "x: " + std::to_string(x) + " y: " + std::to_string(y) + "\ndata: [";
|
||||
for (auto d : data) {
|
||||
s += std::to_string(d) + " ";
|
||||
}
|
||||
s += "]";
|
||||
return s;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief header contained in parts of frames
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user