G4AssemblyTriplet is a helper class for placing logical or assembly volumes inside a generic container together with information about its rotation, placement and eventually reflection. How to interpret the rotation and translation depends on the class which uses a container of these triplets. The first class using G4AssemblyTriplet is G4AssemblyVolume. The pointer to the logical or assembly volume is copied so this class does not take its ownership and does not delete the object behind.
More...
#include <G4AssemblyTriplet.hh>
G4AssemblyTriplet is a helper class for placing logical or assembly volumes inside a generic container together with information about its rotation, placement and eventually reflection. How to interpret the rotation and translation depends on the class which uses a container of these triplets. The first class using G4AssemblyTriplet is G4AssemblyVolume. The pointer to the logical or assembly volume is copied so this class does not take its ownership and does not delete the object behind.
Definition at line 61 of file G4AssemblyTriplet.hh.
◆ G4AssemblyTriplet() [1/4]
| G4AssemblyTriplet::G4AssemblyTriplet |
( |
| ) |
|
◆ G4AssemblyTriplet() [2/4]
An explicit constructor for a logical volume.
- Parameters
-
| [in] | pVolume | Pointer to the logical volume. |
| [in] | translation | Translation vector. |
| [in] | pRotation | Pointer to the rotation matrix. |
| [in] | isReflection | Flag to specify if volume is reflected. |
◆ G4AssemblyTriplet() [3/4]
An explicit constructor for an assembly volume.
- Parameters
-
| [in] | pAssembly | Pointer to the assembly volume. |
| [in] | translation | Translation vector. |
| [in] | pRotation | Pointer to the rotation matrix. |
| [in] | isReflection | Flag to specify if volume is reflected. |
◆ G4AssemblyTriplet() [4/4]
◆ ~G4AssemblyTriplet()
| G4AssemblyTriplet::~G4AssemblyTriplet |
( |
| ) |
|
◆ GetAssembly()
Retrieves the assembly volume reference.
◆ GetRotation()
Retrieves the logical volume rotation.
◆ GetTranslation()
Retrieves the logical volume translation.
◆ GetVolume()
Retrieves the logical volume reference.
◆ IsReflection()
| G4bool G4AssemblyTriplet::IsReflection |
( |
| ) |
const |
|
inline |
Returns true if the logical or assembly volume has reflection.
◆ operator=()
◆ SetAssembly()
Updates the assembly volume reference.
◆ SetRotation()
Updates the logical volume rotation.
◆ SetTranslation()
| void G4AssemblyTriplet::SetTranslation |
( |
G4ThreeVector & | pVolume | ) |
|
|
inline |
Updates the logical volume translation.
◆ SetVolume()
Updates the logical volume reference.
The documentation for this class was generated from the following file: