FlatDetector¶
- class marxs.optics.FlatDetector(pixsize=1, ignore_pixel_warning=False, **kwargs)[source] [edit on github]¶
Bases:
FlatOpticalElement
Flat detector with square pixels
Processing the a photon with this detector adds four columns to the photon properties:
det_x
,det_y
: Event position on the detector in mmdetpix_x
,detpix_y
: Event position in detector coordinates, where (0, 0) is on the corner of the chip.
The (x,y) coordinate system on the chip is such that it falls on the (y,z) plane of the global x,y,z coordinate system (it would be more logical to call the chip system (y,z), but traditionally that is not how chip coordinates are named). The pixel in the corner has coordinates (0, 0) in the pixel center.
- Parameters:
- pixsizefloat
size of pixels in mm
- ignore_pixel_warningbool
ignore warning if derived pixel number is not close to an integer
- kwargs
see
args for optical elements
Define a new MARXS element.
Attributes Summary
name for output columns that contain this pixel number.
Dictionary for display specifications, e.g. color.
name for output columns that contain the interaction point in local coordinates.
Methods Summary
specific_process_photons
(photons, intersect, ...)Attributes Documentation
- detpix_name = ['detpix_x', 'detpix_y']¶
name for output columns that contain this pixel number.
- display = {'box-half': '+x', 'color': (1.0, 1.0, 0.0), 'shape': 'box'}¶
Dictionary for display specifications, e.g. color
- loc_coos_name = ['det_x', 'det_y']¶
name for output columns that contain the interaction point in local coordinates.
Methods Documentation
- specific_process_photons(photons, intersect, interpos, intercoos)[source] [edit on github]¶