parse_detectorsMod Module

routine to parse the detector table from the input Toml file.


Uses


Subroutines

private subroutine handle_annulus_dect(child, dects, counts, context, error)

Read in Annulus_detector settings and initalise variable

Arguments

Type IntentOptional Attributes Name
type(toml_table), intent(in), pointer :: child

Detector Table

type(annulus_dect), intent(inout) :: dects(:)

Array of annulus_dects

integer, intent(inout) :: counts

Number of anulluar dects to create

type(toml_context), intent(in) :: context

Context handle for error reporting.

type(toml_error), intent(out), allocatable :: error

Error message

private subroutine handle_camera(child, dects, counts, context, error)

Read in Camera settings and initalise variable

Arguments

Type IntentOptional Attributes Name
type(toml_table), intent(in), pointer :: child

Detector table

type(camera), intent(inout) :: dects(:)

Array of cameras

integer, intent(inout) :: counts

Number of cameras to create

type(toml_context), intent(in) :: context

Context handle for error reporting.

type(toml_error), intent(out), allocatable :: error

Error message

private subroutine handle_circle_dect(child, dects, counts, context, error)

Read in Circle_detector settings and initalise variable

Arguments

Type IntentOptional Attributes Name
type(toml_table), intent(in), pointer :: child

Detector table

type(circle_dect), intent(inout) :: dects(:)

Array ofcircle_dects

integer, intent(inout) :: counts

Number of circle_dects to create

type(toml_context), intent(in) :: context

Context handle for error reporting.

type(toml_error), intent(out), allocatable :: error

Error message

public subroutine parse_detectors(table, dects, context, error)

parse the detectors

Arguments

Type IntentOptional Attributes Name
type(toml_table), intent(inout) :: table

Input Toml table

type(dect_array), intent(out), allocatable :: dects(:)

Detector array to be filled.

type(toml_context), intent(in) :: context

Context handle for error reporting.

type(toml_error), intent(out), allocatable :: error

Error message