tof.Detector# class tof.Detector(distance, name)[source]# A detector component does not block any neutrons, it sees all neutrons passing through it. Parameters: distance (Variable) – The distance from the source to the detector. name (str) – The name of the detector. __init__(distance, name)[source]# Methods __init__(distance, name) as_dict() Return the detector as a dictionary. as_json() Return the detector as a JSON-serializable dictionary. as_dict()[source]# Return the detector as a dictionary. Return type: dict as_json()[source]# Return the detector as a JSON-serializable dictionary. Return type: dict