Belle II Software development
|
Class to group some Geant4 volumes and place them all at once with a given transformation matrix. More...
#include <GeoVXDAssembly.h>
Public Types | |
typedef std::pair< G4LogicalVolume *, G4Transform3D > | Placement |
Placement of a logical volume consists of the Volume and ins transformation. | |
Public Member Functions | |
void | place (G4LogicalVolume *mother, const G4Transform3D &transform) |
Place all the volumes already added to the assembly in the given mother. | |
void | add (G4LogicalVolume *volume, const G4Transform3D &transform=G4Transform3D()) |
Add a volume to the assembly. | |
void | add (const GeoVXDAssembly &assembly, const G4Transform3D &transform=G4Transform3D()) |
Add a assembly to the assembly. | |
Private Attributes | |
std::vector< Placement > | m_volumes |
Array of all volumes and their placements in the assembly. | |
Class to group some Geant4 volumes and place them all at once with a given transformation matrix.
This is similar to the G4VolumeAssembly but is much simpler and with less options
Definition at line 29 of file GeoVXDAssembly.h.
typedef std::pair<G4LogicalVolume*, G4Transform3D> Placement |
Placement of a logical volume consists of the Volume and ins transformation.
Definition at line 32 of file GeoVXDAssembly.h.
|
inline |
Add a assembly to the assembly.
assembly | assembly to be added |
transform | Transformation to be applied to the volume |
Definition at line 53 of file GeoVXDAssembly.h.
|
inline |
Add a volume to the assembly.
volume | Volume to be added |
transform | Transformation to be applied to the volume |
Definition at line 44 of file GeoVXDAssembly.h.
void place | ( | G4LogicalVolume * | mother, |
const G4Transform3D & | transform | ||
) |
Place all the volumes already added to the assembly in the given mother.
mother | Pointer to the volume everything should be placed in |
transform | Transformation to apply to all volumes when placing them |
Definition at line 20 of file GeoVXDAssembly.cc.
|
private |
Array of all volumes and their placements in the assembly.
Definition at line 62 of file GeoVXDAssembly.h.