49 const G4int nReplicas,
61 std::ostringstream message;
62 message <<
"NULL pointer specified as mother volume." <<
G4endl
63 <<
"The world volume cannot be sliced or parameterised !";
64 G4Exception(
"G4PVReplica::G4PVReplica()",
"GeomVol0002",
69 if (pLogical == motherLogical)
71 G4Exception(
"G4PVReplica::G4PVReplica()",
"GeomVol0002",
79 std::ostringstream message;
80 message <<
"Replica or parameterised volume must be the only daughter !"
82 <<
" Mother physical volume: " << pMother->
GetName() <<
G4endl
83 <<
" Replicated volume: " << pName;
84 G4Exception(
"G4PVReplica::G4PVReplica()",
"GeomVol0002",
95 const G4int nReplicas,
106 std::ostringstream message;
107 message <<
"NULL pointer specified as mother volume for "
109 G4Exception(
"G4PVReplica::G4PVReplica()",
"GeomVol0002",
113 if (pLogical == pMotherLogical)
115 G4Exception(
"G4PVReplica::G4PVReplica()",
"GeomVol0002",
123 std::ostringstream message;
124 message <<
"Replica or parameterised volume must be the only daughter !"
126 <<
" Mother logical volume: " << pMotherLogical->
GetName()
128 <<
" Replicated volume: " << pName;
129 G4Exception(
"G4PVReplica::G4PVReplica()",
"GeomVol0002",
137 const G4int nReplicas,
143 G4Exception(
"G4PVReplica::CheckAndSetParameters()",
"GeomVol0002",
149 G4Exception(
"G4PVReplica::CheckAndSetParameters()",
"GeomVol0002",
165 G4Exception(
"G4PVReplica::CheckAndSetParameters()",
"GeomVol0003",
177 G4Exception(
"G4PVReplica::CheckAndSetParameters()",
"GeomVol0002",
185 foffset(0.), fRegularStructureCode(0), fRegularVolsId(0)
void TerminateWorker(G4PVReplica *pMasterObject)
G4PVReplica(const G4String &pName, G4LogicalVolume *pLogical, G4LogicalVolume *pMother, const EAxis pAxis, const G4int nReplicas, const G4double width, const G4double offset=0)
CLHEP::Hep3Vector G4ThreeVector
CLHEP::HepRotation G4RotationMatrix
virtual void GetReplicationData(EAxis &axis, G4int &nReplicas, G4double &width, G4double &offset, G4bool &consuming) const
virtual void SetRegularStructureId(G4int Code)
G4bool IsRegularStructure() const
static G4GEOM_DLL G4PVRManager subInstanceManager
G4int CreateSubInstance()
virtual G4int GetCopyNo() const
G4bool IsReplicated() const
void SetRotation(G4RotationMatrix *)
static const G4PVRManager & GetSubInstanceManager()
virtual G4bool IsParameterised() const
void InitialiseWorker(G4VPhysicalVolume *pMasterObject, G4RotationMatrix *pRot, const G4ThreeVector &tlate)
const G4String & GetName() const
void InitialiseWorker(G4PVReplica *pMasterObject)
virtual G4VPVParameterisation * GetParameterisation() const
void SlaveCopySubInstanceArray()
G4int GetNoDaughters() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4LogicalVolume * GetLogicalVolume() const
void CheckAndSetParameters(const EAxis pAxis, const G4int nReplicas, const G4double width, const G4double offset)
virtual G4int GetMultiplicity() const
const G4RotationMatrix * GetRotation() const
virtual void SetCopyNo(G4int CopyNo)
void SetMotherLogical(G4LogicalVolume *pMother)
void AddDaughter(G4VPhysicalVolume *p)
G4int GetRegularStructureId() const