STIR 6.4.0
Radionuclide.h
Go to the documentation of this file.
1
10/*
11 Copyright (C) 2021 National Physical Laboratory
12 Copyright (C) 2021 University College London
13 This file is part of STIR.
14
15 SPDX-License-Identifier: Apache-2.0
16
17 See STIR/LICENSE.txt for details
18*/
19#ifndef __stir_Radionuclide_H__
20#define __stir_Radionuclide_H__
21
23#include "stir/info.h"
24
25START_NAMESPACE_STIR
32
34{
35public:
37
39
41 Radionuclide(const std::string& name, float energy, float branching_ratio, float half_life, ImagingModality modality);
42
44 std::string get_name() const;
46
47 float get_energy(bool check = true) const;
49
50 float get_branching_ratio(bool check = true) const;
52
53 float get_half_life(bool check = true) const;
55
56 ImagingModality get_modality(bool check = true) const;
58
59 std::string parameter_info() const;
60
62 bool operator==(const Radionuclide& r) const;
63
64private:
65 std::string name;
66 float energy;
67 float branching_ratio;
68 float half_life;
69 ImagingModality modality;
70};
71
72END_NAMESPACE_STIR
73#endif //__stir_Radionuclide_H__
Declaration of class stir::ImagingModality.
Class for encoding the modality.
Definition ImagingModality.h:35
std::string parameter_info() const
Return a string with info on parameters.
Definition Radionuclide.cxx:28
bool operator==(const Radionuclide &r) const
comparison operators
Definition Radionuclide.cxx:97
Radionuclide()
default constructor
Definition Radionuclide.cxx:39
float get_branching_ratio(bool check=true) const
get branching_ratio
Definition Radionuclide.cxx:73
float get_energy(bool check=true) const
get energy (in keV)
Definition Radionuclide.cxx:65
std::string get_name() const
get name (normally in DICOM format)
Definition Radionuclide.cxx:57
float get_half_life(bool check=true) const
get half_life (in seconds)
Definition Radionuclide.cxx:81
ImagingModality get_modality(bool check=true) const
get modality
Definition Radionuclide.cxx:89
Declaration of stir::info()