Geometry definition#
Geometry Model#
Mulder geometries rely on a common model, inherited from Pumas [Nie22]. A Mulder geometry is defined as a set of propagation media, \(M = \{ m_i \,|\, i \in \left[\!\left[ 0, n - 1 \right]\!\right]\}\), where the media, \(m_i\), differ by their physical properties. The geometry media delimit volumes in the 3d-space, as described below.
Note
The spatial structure of a geometry instance is expected to be immutable. However, the physical properties of the constitutive media may be freely modified.
Space structure#
The space structure of the geometry is defined by a Location function, \(L\), mapping a space position, \(\vec{r}\), to a medium index, \(i\), as
where the special index \(n = \left|M\right|\) indicates that \(\vec{r}\) lies outside of \(M\).
Simulating the geometry traversal of a muon is a ray-tracing problem. While the location function, \(L\), is sufficient for this purpose, it is not efficient. Therefore, the geometry model is complemented with a Tracing function, \(T\). Let us parametrise a ray as
where \(r\) is the ray origin and \(\vec{u} \in \mathbb{U}_3\) a unit vector of \(\mathbb{R}^3\). Then, the Tracing function is defined as
where the returned \(\lambda^*\) value is the distance to the first (closest from \(\vec{r}\)) intersected medium boundary, and \(j\) the index of the next medium, i.e. on the opposite side of the boundary w.r.t. the ray origin, \(\vec{r}\).
Physical properties#
The physical properties of a medium are defined by,