PlasmaMLPALLAS
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Geometry Class Reference

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.
 

Detailed Description

Definition of the Geometry class for the PALLAS project.

Provides methods to create, retrieve, and manage geometry volumes.

Author
Arnaud HUBER huber.nosp@m.@lp2.nosp@m.ib.in.nosp@m.2p3..nosp@m.fr - Alexei SYTOV sytov.nosp@m.@inf.nosp@m.n.it
Date
2025

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.

Constructor & Destructor Documentation

◆ Geometry()

Geometry::Geometry ( )

Constructor for Geometry class.

Default constructor.

Initializes internal pointers and sets up the geometry environment.

◆ ~Geometry()

Geometry::~Geometry ( )

Destructor for Geometry class.

Destructor.

Cleans up allocated resources.

Cleans up any allocated resources associated with the geometry.

Member Function Documentation

◆ Cleanup()

void Geometry::Cleanup ( )

Cleanup allocated geometry components.

Frees memory for logical volumes and solid shapes.

◆ GetFakeDiagsChamber()

G4LogicalVolume * Geometry::GetFakeDiagsChamber ( )

Create a diagnostic chamber volume (simplified).

Create a simplified diagnostic chamber volume.

Returns
Pointer to the created G4LogicalVolume.

This method constructs a cylindrical chamber by subtracting two tubular volumes, representing the diagnostic chamber. The material used is aluminum.

Returns
Pointer to the created G4LogicalVolume.

◆ GetGDMLVolume()

G4LogicalVolume * Geometry::GetGDMLVolume ( const char *  path,
const char *  VName,
G4Material *  material 
)

Load and retrieve a GDML-defined volume.

Parameters
fileNamePath to the GDML file.
volumeNameName of the volume to retrieve.
materialMaterial to assign to the volume.
Returns
Pointer to the created G4LogicalVolume.

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.

Parameters
pathPath to the GDML file.
VNameName of the volume inside the GDML file.
materialMaterial to assign to the retrieved logical volume.
Returns
Pointer to the created G4LogicalVolume.

◆ GetQuadrupoleVolume()

G4LogicalVolume * Geometry::GetQuadrupoleVolume ( G4String  name,
G4double  dx,
G4double  dy,
G4double  dz 
)

Create a quadrupole magnet volume.

Parameters
nameName of the quadrupole volume.
dxdx length.
dydy length.
dzdz length.
Returns
Pointer to the created G4LogicalVolume.

Constructs a simple box volume with the given dimensions and assigns it a vacuum material.

Parameters
nameName of the quadrupole logical volume.
dxSize of the box along the X-axis [mm].
dySize of the box along the Y-axis [mm].
dzSize of the box along the Z-axis [mm].
Returns
Pointer to the created G4LogicalVolume.

The documentation for this class was generated from the following files: