File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -549,8 +549,6 @@ float
549549BinNormalisationFromECAT8::
550550get_uncalibrated_bin_efficiency (const Bin& bin) const {
551551
552- const float start_time=get_exam_info_sptr ()->get_time_frame_definitions ().get_start_time ();
553- const float end_time=get_exam_info_sptr ()->get_time_frame_definitions ().get_end_time ();
554552 // TODO disable when not HR+ or HR++
555553 /*
556554 Additional correction for HR+ and HR++
@@ -656,6 +654,11 @@ get_uncalibrated_bin_efficiency(const Bin& bin) const {
656654 }
657655 if (this ->use_dead_time ())
658656 {
657+ if (get_exam_info_sptr ()->get_time_frame_definitions ().get_num_time_frames () == 0 )
658+ error (" BinNormalisationFromECAT8: projection_data needs to have timing information to compute dead-time" );
659+ const float start_time=get_exam_info_sptr ()->get_time_frame_definitions ().get_start_time ();
660+ const float end_time=get_exam_info_sptr ()->get_time_frame_definitions ().get_end_time ();
661+
659662 lor_efficiency_this_pair *=
660663 get_dead_time_efficiency (pos1, start_time, end_time) *
661664 get_dead_time_efficiency (pos2, start_time, end_time);
You can’t perform that action at this time.
0 commit comments