CircularDetector

class marxs.optics.CircularDetector(pixsize=1, **kwargs)[source] [edit on github]

Bases: OpticalElement

A detector shaped like a ring or tube.

This detector is shaped like a tube. The form is a circle in the xy plane and and flat along the z-direction. While most CCDs are flat in practice, the CircularDetector simulates a setup that can follow the Rowland circle geometry exactly which is useful, e.g. to study the resolution of a spectrograph without worrying about the details of the detector geometry.

Parameters:
position, orientation, zoom, pos4dsee description of pos4d

The radius of the tube is given by the zoom keyword, see pos4d. Use zoom[0] == zoom[1] to make a circular tube. zoom[0] != zoom[1] gives an elliptical profile. zoom[2] sets the extension in the z direction.

pixsizefloat size of pixels in mm

Define a new MARXS element.

Attributes Summary

centerpix

detpix_name

name for output columns that contain this pixel number.

display

Dictionary for display specifications, e.g. color.

loc_coos_name

Methods Summary

specific_process_photons(photons, intersect, ...)

Attributes Documentation

centerpix = [0, 0]
detpix_name = ['detpix_x', 'detpix_y']

name for output columns that contain this pixel number.

display = {'color': (1.0, 1.0, 0.0), 'opacity': 0.7}

Dictionary for display specifications, e.g. color

loc_coos_name = ['det_phi', 'det_y']

Methods Documentation

specific_process_photons(photons, intersect, interpos, intercoos)[source] [edit on github]