44 const G4int nReplicas,
57 std::ostringstream message;
58 message <<
"NULL pointer specified as mother volume." <<
G4endl
59 <<
"The world volume cannot be sliced or parameterised !";
60 G4Exception(
"G4PVReplica::G4PVReplica()",
"GeomVol0002",
65 if (pLogical == motherLogical)
67 G4Exception(
"G4PVReplica::G4PVReplica()",
"GeomVol0002",
75 std::ostringstream message;
76 message <<
"Replica or parameterised volume must be the only daughter !"
78 <<
" Mother physical volume: " << pMother->
GetName() <<
G4endl
79 <<
" Replicated volume: " << pName;
80 G4Exception(
"G4PVReplica::G4PVReplica()",
"GeomVol0002",
84 CheckAndSetParameters (pAxis, nReplicas, width, offset);
91 const G4int nReplicas,
102 std::ostringstream message;
103 message <<
"NULL pointer specified as mother volume for "
105 G4Exception(
"G4PVReplica::G4PVReplica()",
"GeomVol0002",
109 if (pLogical == pMotherLogical)
111 G4Exception(
"G4PVReplica::G4PVReplica()",
"GeomVol0002",
119 std::ostringstream message;
120 message <<
"Replica or parameterised volume must be the only daughter !"
122 <<
" Mother logical volume: " << pMotherLogical->
GetName()
124 <<
" Replicated volume: " << pName;
125 G4Exception(
"G4PVReplica::G4PVReplica()",
"GeomVol0002",
129 CheckAndSetParameters (pAxis, nReplicas, width, offset);
132 void G4PVReplica::CheckAndSetParameters(
const EAxis pAxis,
133 const G4int nReplicas,
139 G4Exception(
"G4PVReplica::CheckAndSetParameters()",
"GeomVol0002",
145 G4Exception(
"G4PVReplica::CheckAndSetParameters()",
"GeomVol0002",
161 G4Exception(
"G4PVReplica::CheckAndSetParameters()",
"GeomVol0003",
173 G4Exception(
"G4PVReplica::CheckAndSetParameters()",
"GeomVol0002",
181 foffset(0.), fRegularStructureCode(0), fRegularVolsId(0)
245 return (fRegularVolsId!=0);
250 return fRegularVolsId;
255 fRegularVolsId=
Code;
262 return subInstanceManager;
294 G4Exception(
"G4PVReplica::InitialiseWorker(...)",
"GeomVol0003",
306 G4Exception(
"G4PVReplica::InitialiseWorker(...)",
"GeomVol0002",
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)
std::vector< ExP01TrackerHit * > a
G4bool IsRegularStructure() const
const G4RotationMatrix * GetRotation() const
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
virtual G4int GetMultiplicity() const
virtual void SetCopyNo(G4int CopyNo)
void SetMotherLogical(G4LogicalVolume *pMother)
const G4String & GetName() const
void AddDaughter(G4VPhysicalVolume *p)
G4int GetRegularStructureId() const