STIR 6.5.0
CListRecord.h
Go to the documentation of this file.
1//
2//
15/*
16 Copyright (C) 2003- 2011, Hammersmith Imanet Ltd
17 Copyright (C) 2016, University of Hull
18 Copyright (C) 2019, National Physical Laboratory
19 Copyright (C) 2019, University College of London
20 This file is part of STIR.
21
22 SPDX-License-Identifier: Apache-2.0
23
24 See STIR/LICENSE.txt for details
25*/
26
27#ifndef __stir_listmode_CListRecord_H__
28#define __stir_listmode_CListRecord_H__
29
31
32START_NAMESPACE_STIR
33class Bin;
34class ProjDataInfo;
35class Succeeded;
36class ListAccumulatedSingles;
37template <typename coordT>
38class CartesianCoordinate3D;
39template <typename coordT>
40class LORAs2Points;
41
43
53class CListEvent : public ListEvent
54{
55public:
57
58 virtual Succeeded set_prompt(const bool prompt = true);
59
60}; /*-coincidence event*/
61
63
67class CListRecord : public ListRecord
68{
69public:
70 virtual bool is_accumulated_singles() const { return false; }
71 virtual ListAccumulatedSingles& accumulated_singles()
72 {
73 error("accumulated_singles() not supported");
74 return *static_cast<ListAccumulatedSingles*>(nullptr);
75 }
76 virtual const ListAccumulatedSingles& accumulated_singles() const
77 {
78 error("accumulated_singles() not supported");
79 return *static_cast<ListAccumulatedSingles*>(nullptr);
80 }
81};
82
83class CListRecordWithGatingInput : public CListRecord
84{
85};
86
87END_NAMESPACE_STIR
88
89#endif
Declarations of classes stir::ListRecord which is used for list mode data.
Class for storing and using a coincidence event from a list mode file.
Definition CListRecord.h:54
virtual Succeeded set_prompt(const bool prompt=true)
Changes the event from prompt to delayed or vice versa.
Definition CListEvent.cxx:29
Class for records in a PET list mode file.
Definition CListRecord.h:68
Class for an accumulated singles record in a listmode file.
Definition ListAccumulatedSingles.h:33
Class for storing and using gamma events from a list mode file.
Definition ListEvent.h:46
A class for a general element of a list mode file.
Definition ListRecord.h:45
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition Succeeded.h:44
void error(const char *const s,...)
Print error with format string a la printf and throw exception.
Definition error.cxx:42