npac_detector.material
Classes
Describes the characteristics of a material |
|
Describes a slab of a given material |
Module Contents
- class npac_detector.material.Material(name: str, a: float, z: float, density: float, radiation_length: float)
Describes the characteristics of a material
- name
Name of the material
- Type:
str
- z
Atomic number
- Type:
int
- a
Mass number
- Type:
float
- density
Density in g.cm-3
- Type:
float
- radiation_length
Radiation length in mm
- Type:
float
- name
- a
- z
- density
- radiation_length
- class npac_detector.material.MaterialSlab(thickness: float, material_type: Material)
Describes a slab of a given material
- thickness
Thickness of the slab in mm
- Type:
float
- thickness
- material_type
- 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
- Parameters:
free_length – Distance travelled by the particle before entering the slab, in mm
x_direction – x composant of the particle’s unitary momentum vector
y_direction – y composant of the particle’s unitary momentum vector
- Returns:
Crossing length in mm