Skip to content

Commit

Permalink
compatibility with STIR 6.0.0 (#1229)
Browse files Browse the repository at this point in the history
fix for estimate_randoms
  • Loading branch information
KrisThielemans authored Jan 15, 2024
1 parent e650e29 commit 51f649f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xSTIR/cSTIR/stir_x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,14 @@ ListmodeToSinograms::estimate_randoms()
SinglesRatesFromGEHDF5 singles;
singles.read_from_file(input_filename);
GEHDF5Wrapper input_file(input_filename);
#if STIR_VERSION < 060000
float coincidence_time_window = input_file.get_coincidence_time_window();
ProjData& proj_data = *randoms_sptr->data();
randoms_from_singles(proj_data, singles, coincidence_time_window);
return 0;
#else
randoms_from_singles(*randoms_sptr->data(), singles);
#endif
return 0;
}
}
catch (...) {
Expand Down

0 comments on commit 51f649f

Please sign in to comment.