npac_detector.material ====================== .. py:module:: npac_detector.material Classes ------- .. autoapisummary:: npac_detector.material.Material npac_detector.material.MaterialSlab Module Contents --------------- .. py:class:: Material(name: str, a: float, z: float, density: float, radiation_length: float) Describes the characteristics of a material .. attribute:: name Name of the material :type: str .. attribute:: z Atomic number :type: int .. attribute:: a Mass number :type: float .. attribute:: density Density in g.cm-3 :type: float .. attribute:: radiation_length Radiation length in mm :type: float .. py:attribute:: name .. py:attribute:: a .. py:attribute:: z .. py:attribute:: density .. py:attribute:: radiation_length .. py:class:: MaterialSlab(thickness: float, material_type: Material) Describes a slab of a given material .. attribute:: thickness Thickness of the slab in mm :type: float .. attribute:: material_type Material of which the slab is made :type: Material .. py:attribute:: thickness .. py:attribute:: material_type .. py:method:: crossing_length(free_length: float, x_direction: float, y_direction: float) -> float Computes the crossing length of a particle in the slab and return it :param free_length: Distance travelled by the particle before entering the slab, in mm :param x_direction: x composant of the particle's unitary momentum vector :param y_direction: y composant of the particle's unitary momentum vector :return: Crossing length in mm