Detector types

This tutorial explains the various types of detectors, detector resolution functions and masking abilities/features implemented in BornAgain.

Every GISAS simulation in BornAgain carries a detector object representing the real x-ray/neutron detector. The detector object has to be properly initialized before the simulation can start. Each detector is characterized by its size, the number of pixels and their shapes and finally by the detector's position/rotation with respect to the sample coordinate system.

Additionally, the following detector features are available

  • a detector resolution function can be defined
  • various masks can be applied to the detector to exclude certain areas from the analysis

There are two major types of detectors in BornAgain.

The SphericalDetector object represents a portion of a sphere, whose center is located at the origin of the sample coordinate system. The spherical detector has a simple interface and serves as a good approximation of real detectors for the majority of small angle experimental setups.

The RectangularDetector object, as follows from its name, strives to represent a real rectangular 2D detector. Particularly, it allows to define an arbitrary position/orientation with respect to the sample and/or the beam.

Both detector types are explained in detail in the following sections of the tutorial.