Skip to content

Commit 7eea917

Browse files
committedJun 1, 2024·
fix Interfile writing of TOF data with 1 TOF bin
We need to preserve the TOF character, such that coincidence window etc is taken into account.
1 parent 9520af8 commit 7eea917

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎src/IO/interfile.cxx

+5-2
Original file line numberDiff line numberDiff line change
@@ -1225,12 +1225,16 @@ write_basic_interfile_PDFS_header(const string& header_file_name, const string&
12251225
*/
12261226
{
12271227
case ProjDataFromStream::Segment_View_AxialPos_TangPos: {
1228+
if (is_TOF) // TOF data with 1 timing position
1229+
order_of_timing_poss = 5;
12281230
order_of_segment = 4;
12291231
order_of_view = 3;
12301232
order_of_z = 2;
12311233
break;
12321234
}
12331235
case ProjDataFromStream::Segment_AxialPos_View_TangPos: {
1236+
if (is_TOF) // TOF data with 1 timing position
1237+
order_of_timing_poss = 5;
12341238
order_of_segment = 4;
12351239
order_of_view = 2;
12361240
order_of_z = 3;
@@ -1252,8 +1256,7 @@ write_basic_interfile_PDFS_header(const string& header_file_name, const string&
12521256
if (order_of_timing_poss > 0)
12531257
{
12541258
output_header << "matrix axis label [" << order_of_timing_poss << "] := timing positions\n";
1255-
output_header << "!matrix size [" << order_of_timing_poss << "] := " << pdfs.get_timing_poss_sequence_in_stream().size()
1256-
<< "\n";
1259+
output_header << "!matrix size [" << order_of_timing_poss << "] := " << pdfs.get_num_tof_poss() << "\n";
12571260
}
12581261

12591262
output_header << "matrix axis label [" << order_of_segment << "] := segment\n";

0 commit comments

Comments
 (0)
Please sign in to comment.