pymchelper.shieldhit.detector.geometry module

class pymchelper.shieldhit.detector.geometry.Axis(name='', start=None, stop=None, nbins=None, number=None)[source]

Bases: object

Represents named sequence of nbins numbers, with known start and end position. Can be used as container to describe scoring geometry along one of the axis.

set(start=None, stop=None, nbins=None, number=None)[source]
class pymchelper.shieldhit.detector.geometry.CarthesianMesh[source]

Bases: pymchelper.shieldhit.detector.geometry.Geometry

Carthesian mesh along X,Y and Z axis

static allowed_estimators()[source]
Returns:List of compatible estimators for this scoring geometry.
class pymchelper.shieldhit.detector.geometry.CylindricalMesh[source]

Bases: pymchelper.shieldhit.detector.geometry.Geometry

Cylindrical mesh along R, PHI and Z axis

static allowed_estimators()[source]
Returns:List of compatible estimators for this scoring geometry.
class pymchelper.shieldhit.detector.geometry.Geometry[source]

Bases: object

Base class for all types of scoring geometries. Holds information about three axes. Three axis are used to allow scoring up to 3 dimensions. Lower number of dimensions (i.e. scoring on square) are achieved by setting nbins=1 in the axis.

static allowed_estimators()[source]
Returns:List of compatible estimators for this scoring geometry.
set_axis(axis_no, start=None, stop=None, nbins=None)[source]

Fill axis data :param axis_no: integer number, from 0 to 2, specifies axis number :param start: start position :param stop: stop position :param nbins: number of elements :return: None

class pymchelper.shieldhit.detector.geometry.Plane[source]

Bases: object

Plane scoring geometry

static allowed_estimators()[source]
set_normal(x=None, y=None, z=None)[source]
set_point(x=None, y=None, z=None)[source]
class pymchelper.shieldhit.detector.geometry.Zone[source]

Bases: object

Zone scoring geometry - start and stop

static allowed_estimators()[source]