290 def __str__(self):
291 base_str = super().__str__()
292 subdet = detdataformats.DetID.subdetector_to_string(detdataformats.DetID.Subdetector(self.det_id))
293 additional_fields = [f"n_obj={self.n_obj}",
294 f"first_timestamp={self.timestamp_first_dts}",
295 f"det_id={self.det_id} ('{subdet}')",
296 f"(crate_id,slot_id,stream_id)=({self.crate_id},{self.slot_id},{self.stream_id})",
297 f"daq_header_version={self.daq_header_version}",
298 f"det_data_version={self.det_data_version}"]
299 return f"{base_str}: [{', '.join(additional_fields)}]"
300
301@dataclass(order=True)