@@ -121,8 +121,10 @@ int main(int argc, char *argv[])
121121
122122 shared_ptr<ListModeData> lm_data_ptr (read_from_file<ListModeData>(argv[0 ]));
123123 auto proj_data_info_sptr = lm_data_ptr->get_proj_data_info_sptr ();
124+ auto scanner = lm_data_ptr->get_scanner ();
125+ const boollist_TOF_info = scanner.is_tof_ready ();
124126
125- cout << " Scanner: " << lm_data_ptr-> get_scanner () .get_name () << endl;
127+ cout << " Scanner: " << scanner .get_name () << endl;
126128
127129 unsigned long num_listed_events = 0 ;
128130 {
@@ -164,8 +166,12 @@ int main(int argc, char *argv[])
164166 if (record.is_event ())
165167 {
166168 recognised=true ;
169+ Bin bin;
170+ record.event ().get_bin (bin, *proj_data_info_sptr);
171+
167172 if (list_coincidence)
168173 {
174+
169175 if (auto event_ptr =
170176 dynamic_cast <CListEvent *>(&record.event ()))
171177 {
@@ -184,8 +190,8 @@ int main(int argc, char *argv[])
184190 << " ,r:" << det_pos.pos2 ().axial_coord ()
185191 << " ,l:" << det_pos.pos2 ().radial_coord ()
186192 << " )\t " ;
187- cout << " TOF-bin: " << det_pos. timing_pos ( )
188- << " delta time : " << event_ptr-> get_delta_time ();
193+ if (list_TOF_info )
194+ cout << " TOF-bin : " << det_pos. timing_pos ();
189195 listed = true ;
190196 }
191197 }
@@ -201,16 +207,16 @@ int main(int argc, char *argv[])
201207 << " ," << lor.p2 ().y ()
202208 << " ," << lor.p2 ().x ()
203209 << " )" ;
210+ if (list_TOF_info)
211+ cout << " k: " << proj_data_info_sptr->get_k (bin);
212+ listed = true ;
213+ }
214+ if (list_event_bin)
215+ {
216+ cout << " bin " << bin;
204217 listed = true ;
205218 }
206219 }
207- if (list_event_bin)
208- {
209- Bin bin;
210- record.event ().get_bin (bin, *proj_data_info_sptr);
211- cout << " bin " << bin;
212- listed = true ;
213- }
214220 if (!recognised && list_unknown)
215221 {
216222 cout << " Unknown type" ;
0 commit comments