PlasmaMLPALLAS
|
Definition of the Geometry class for the PALLAS project. More...
#include <Geometry.hh>
Public Member Functions | |
Geometry () | |
Constructor for Geometry class. | |
~Geometry () | |
Destructor for Geometry class. | |
G4LogicalVolume * | GetGDMLVolume (const char *fileName, const char *volumeName, G4Material *material) |
Load and retrieve a GDML-defined volume. | |
G4LogicalVolume * | GetQuadrupoleVolume (G4String name, G4double dx, G4double dy, G4double sz) |
Create a quadrupole magnet volume. | |
G4LogicalVolume * | GetFakeDiagsChamber () |
Create a diagnostic chamber volume (simplified). | |
void | Cleanup () |
Cleanup allocated geometry components. | |
Definition of the Geometry class for the PALLAS project.
Provides methods to create, retrieve, and manage geometry volumes.
This class provides methods to construct and retrieve different detector and beamline components (volumes, chambers, quadrupoles) used in the Geant4 simulation of the PALLAS experiment.
The Geometry class is responsible for constructing and managing Geant4 geometrical objects such as quadrupoles, diagnostic chambers, and GDML-defined volumes. It also provides cleanup functions for memory management.
Geometry::Geometry | ( | ) |
Constructor for Geometry class.
Default constructor.
Initializes internal pointers and sets up the geometry environment.
Geometry::~Geometry | ( | ) |
Destructor for Geometry class.
Destructor.
Cleans up allocated resources.
Cleans up any allocated resources associated with the geometry.
void Geometry::Cleanup | ( | ) |
Cleanup allocated geometry components.
Frees memory for logical volumes and solid shapes.
G4LogicalVolume * Geometry::GetFakeDiagsChamber | ( | ) |
Create a diagnostic chamber volume (simplified).
Create a simplified diagnostic chamber volume.
This method constructs a cylindrical chamber by subtracting two tubular volumes, representing the diagnostic chamber. The material used is aluminum.
G4LogicalVolume * Geometry::GetGDMLVolume | ( | const char * | path, |
const char * | VName, | ||
G4Material * | material | ||
) |
Load and retrieve a GDML-defined volume.
fileName | Path to the GDML file. |
volumeName | Name of the volume to retrieve. |
material | Material to assign to the volume. |
This method uses a GDML parser to read a geometry description from a GDML file, retrieve the specified volume, and assign it the provided material.
path | Path to the GDML file. |
VName | Name of the volume inside the GDML file. |
material | Material to assign to the retrieved logical volume. |
G4LogicalVolume * Geometry::GetQuadrupoleVolume | ( | G4String | name, |
G4double | dx, | ||
G4double | dy, | ||
G4double | dz | ||
) |
Create a quadrupole magnet volume.
name | Name of the quadrupole volume. |
dx | dx length. |
dy | dy length. |
dz | dz length. |
Constructs a simple box volume with the given dimensions and assigns it a vacuum material.
name | Name of the quadrupole logical volume. |
dx | Size of the box along the X-axis [mm]. |
dy | Size of the box along the Y-axis [mm]. |
dz | Size of the box along the Z-axis [mm]. |