\(\renewcommand\AA{\unicode{x212B}}\)

RayTracerTester v1

Summary

Algorithm to test ray tracer by spraying evenly spaced rays around.

Properties

Name

Direction

Type

Default

Description

Filename

Input

string

Mandatory

The filename (including its full or relative path) of an instrument definition file. Allowed extensions: [‘.xml’]

NumAzimuth

Input

number

100

Steps in azimuthal angles

NumZenith

Input

number

50

Steps in zenith angles

OutputWorkspace

Output

MatrixWorkspace

Mandatory

An output workspace.

Description

Algorithm to test ray tracer by spraying evenly spaced rays around. Only for debugging / testing.

Usage

Example - MARI

import os
inst_dir = config["instrumentDefinition.directory"]
inst_file_path = os.path.join(inst_dir,"MARI_Definition.xml")

ws=RayTracerTester(inst_file_path)

Categories: AlgorithmIndex | Utility\Development

Source

C++ header: RayTracerTester.h

C++ source: RayTracerTester.cpp