tof.Detector#
- class tof.Detector(distance, name)[source]#
A detector component does not block any neutrons, it sees all neutrons passing through it.
- Parameters:
Methods
__init__(distance, name)apply(neutrons, time_limit)Apply the detector to the given neutrons.
as_dict()Return the detector as a dictionary.
as_json()Return the detector as a JSON-serializable dictionary.
as_readonly(neutrons)from_json(name, params)Create a detector from a JSON-serializable dictionary.
Attributes
kind- apply(neutrons, time_limit)[source]#
Apply the detector to the given neutrons. A detector does not modify the neutrons, it simply records them without blocking any.
- Parameters:
- Return type: