Skip to main content

gondola_core/
geometry.rs

1//! GAPS detector geometry, read from the GDML file
2//! (resources/geometry/geometry.vXX.YY.gdml in crane)
3//!
4//! The parser supports the subset of GDML which is used
5//! by the GAPS geometry:
6//!
7//! * define    : position, rotation
8//! * materials : material (only the density is kept)
9//! * solids    : tessellated, box, tube, intersection, subtraction, union
10//! * structure : volume, physvol
11//! * setup     : world
12//!
13//! Anything else in define, solids or structure is an error,
14//! so that a geometry which is not understood does not
15//! silently produce wrong results.
16//!
17//! Since the GDML file is large (~500 MB) the parsed geometry
18//! can be written to and read from a binary cache
19//! (see Geometry::load).
20// This file is part of gaps-online-software and published
21// under the GPLv3 license
22
23pub mod model;
24pub use model::*;
25
26pub mod gdml;
27pub use gdml::{
28  parse_gdml_file,
29  parse_gdml_str,
30};
31
32pub mod bvh;
33pub use bvh::Aabb;
34
35pub mod raycast;
36pub use raycast::{
37  Intervals,
38  SolidRaycaster,
39};
40
41pub mod column_density;
42pub use column_density::{
43  Crossing,
44  Raycaster,
45  TrackPath,
46};