DLG4::VolumeBuilders
A fluent interface for Geant4 geometry definition.
Loading...
Searching...
No Matches
ConstructWorld.inc
Go to the documentation of this file.
1//HpgeSim geometry include file. Template by D. Leonard, 2021
2//This file is included into parts of the HpgeSim class files
3//it is not in a standard header format
4
5#ifdef INCLUDE_SIM_GLOBALS
6//First declare the class functions, whithout class qualifier
7 void ConstructWorld();
8
9//Then declare other class globals defined in the .cc
10// possibly including materials, but only if defined in the .cc
11
12#endif
13
14#ifdef INCLUDE_SIM_GEOMETRIES
15//Here, define runtime geometries selections, see existing files for examples.
16//Multiple configurations associated with this file can be defined.
17 Geometries["World"] =[](object *c) -> void {
18// Geometries have dependancies and call each other if needed
19// Implicit dependancies are only set where absolutely required anyway.
20 c->DetGeometryType="demo";
21 c->ConstructMaterials();
22 c->ConstructWorld();
23 };
24
25#endif