pyg4ometry.geant4.ReplicaVolume¶
Classes¶
ReplicaVolume: G4PVReplica |
Module Contents¶
- class pyg4ometry.geant4.ReplicaVolume.ReplicaVolume(name, logicalVolume, motherVolume, axis, nreplicas, width, offset=0, registry=None, addRegistry=True, wunit='mm', ounit='mm')¶
Bases:
pyg4ometry.geant4.PhysicalVolume.PhysicalVolumeReplicaVolume: G4PVReplica
- Parameters:
name – of physical volume
logical – volume to be placed
mother – logical volume,
axis – kXAxis,kYAxis,kZAxis,kRho,kPhi
ncopies – number of replicas
width – spacing between replicas along axis
offset – of grid
- type = 'replica'¶
- name¶
- logicalVolume¶
- motherVolume¶
- axis¶
- nreplicas¶
- width¶
- offset¶
- wunit¶
- ounit¶
- visOptions¶
- registry¶
- GetAxisName()¶
- _checkInternalOverlaps(debugIO=False, nOverlapsDetected=[0])¶
Check if there are overlaps with the nominal mother volume. ie it possible to provide an incorrect mother volume / logical volume and parameterisation.
- createReplicaMeshes()¶
- getPhysicalVolumes()¶
return a list of temporary (ie not added to the relevant registry) PhysicalVolume instances with appropriate transforms including any daughter ReplicaVolumes.
The exception is for kRho axis where new unique solids and logical volumes are required. Therefore, these are added to the registry and inadvertently to the mother LV as PVS.
- __repr__()¶
- extent(includeBoundingSolid=True)¶