HETG

class marxs.missions.chandra.HETG(**kwargs)[source] [edit on github]

Bases: Parallel

Define a new MARXS element.

Attributes Summary

id_col

String that names an id column for output.

Methods Summary

calculate_elempos()

Read position of facets from file.

Attributes Documentation

id_col = 'facet'

String that names an id column for output.

Set this to a string to add an automatic numbering to the output. This is especially useful if there are several identical optical components that are used in parallel, e.g. there are four identical CCDs. Setting id_col = "CCD_ID" and passing an id_num=1, 2, 3, 4 keyword respectively to each CCD will add a column CCD_ID with a value of 1,2,3, or 4 for each photon hitting one of those CCDs.

Currently, this will not work with all optical elements.

Methods Documentation

calculate_elempos()[source] [edit on github]

Read position of facets from file.

Based on the positions, other grating parameters are chosen that differ between HEG and MEG, e.g. grating constant.