This commit is contained in:
froejdh_e
2025-04-10 16:50:04 +02:00
parent 53a90e197e
commit 113f34cc98
6 changed files with 144 additions and 5 deletions

View File

@ -236,7 +236,7 @@ ClusterFile<ClusterType, Enable>::read_clusters_without_cut(size_t n_clusters) {
uint32_t nph = m_num_left; // number of clusters in frame needs to be 4
// auto buf = reinterpret_cast<Cluster3x3 *>(clusters.data());
auto buf = clusters.data();
auto buf = reinterpret_cast<char*>(clusters.data());
// if there are photons left from previous frame read them first
if (nph) {
if (nph > n_clusters) {

View File

@ -299,7 +299,7 @@ class ClusterVector<Cluster<T, ClusterSizeX, ClusterSizeY, CoordType>> {
*/
ClusterVector(size_t capacity = 1024, uint64_t frame_number = 0)
: m_frame_number(frame_number) {
m_data.reserve(capacity);
m_data.resize(capacity);
}
// Move constructor