Celeritas 0.6.0-129+develop.846910afa
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
celeritas::GeantPhysicalInstance Struct Reference

Unique placement/replica of a Geant4 physical volume. More...

#include <GeoParamsInterface.hh>

Public Types

using ReplicaId = OpaqueId< struct Replica_ >
 

Public Member Functions

constexpr operator bool () const
 False if no PV is associated.
 

Public Attributes

G4VPhysicalVolume constpv {nullptr}
 Geant4 physical volume pointer.
 
ReplicaId replica
 Replica/parameterisation instance.
 

Detailed Description

Unique placement/replica of a Geant4 physical volume.

This should correspond to a VolumeInstanceId and be a unique instantiation of a Geant4 physical volume (PV). Some Geant4 PVs are "parameterised" or "replica" types, which allows a single instance to be mutated at runtime to form a sort of array. If the pointed-to physical volume is not a replica/parameterised volume, replica is false. Otherwise, it corresponds to the PV's copy number, which can be used to reconstruct the placed volume instance.

Todo:
This will be replaced by a VolumeInstanceId when GeantGeoParams stores a mapping between the canonical geometry definition and its internal parametrised representation.

The documentation for this struct was generated from the following file: