npac_detector.particle_hypothesis ================================= .. py:module:: npac_detector.particle_hypothesis Classes ------- .. autoapisummary:: npac_detector.particle_hypothesis.Particle_hypothesis Module Contents --------------- .. py:class:: Particle_hypothesis(momentum: float, velocity: float, charge: float, mass: float) Describes the features of the incoming particle .. attribute:: momentum Momentum in MeV :type: float .. attribute:: velocity Velocity in units of c (beta) :type: float .. attribute:: charge Electric charge in units of the elementary charge :type: float .. attribute:: mass Mass in MeV :type: float .. py:attribute:: momentum .. py:attribute:: velocity .. py:attribute:: charge .. py:attribute:: mass .. py:method:: angle(free_length, x_direction: numpy.array, y_direction: numpy.array, slab: npac_detector.material.MaterialSlab) -> float Computes the scattering angle of the particle as a function of the material slab hitted :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 :param slab: Material with a definite thickness and material. :return: scattering angle in rad