Geant4  10.03
G4PVReplica Class Reference

#include <G4PVReplica.hh>

+ Inheritance diagram for G4PVReplica:
+ Collaboration diagram for G4PVReplica:

Public Member Functions

 G4PVReplica (const G4String &pName, G4LogicalVolume *pLogical, G4LogicalVolume *pMother, const EAxis pAxis, const G4int nReplicas, const G4double width, const G4double offset=0)
 
 G4PVReplica (const G4String &pName, G4LogicalVolume *pLogical, G4VPhysicalVolume *pMother, const EAxis pAxis, const G4int nReplicas, const G4double width, const G4double offset=0)
 
 G4PVReplica (__void__ &)
 
virtual ~G4PVReplica ()
 
G4bool IsMany () const
 
G4bool IsReplicated () const
 
virtual G4int GetCopyNo () const
 
virtual void SetCopyNo (G4int CopyNo)
 
virtual G4bool IsParameterised () const
 
virtual G4VPVParameterisationGetParameterisation () const
 
virtual G4int GetMultiplicity () const
 
virtual void GetReplicationData (EAxis &axis, G4int &nReplicas, G4double &width, G4double &offset, G4bool &consuming) const
 
virtual void SetRegularStructureId (G4int Code)
 
G4bool IsRegularStructure () const
 
G4int GetRegularStructureId () const
 
G4int GetInstanceID () const
 
void InitialiseWorker (G4PVReplica *pMasterObject)
 
void TerminateWorker (G4PVReplica *pMasterObject)
 
- Public Member Functions inherited from G4VPhysicalVolume
 G4VPhysicalVolume (G4RotationMatrix *pRot, const G4ThreeVector &tlate, const G4String &pName, G4LogicalVolume *pLogical, G4VPhysicalVolume *pMother)
 
virtual ~G4VPhysicalVolume ()
 
G4bool operator== (const G4VPhysicalVolume &p) const
 
G4RotationMatrixGetObjectRotation () const
 
G4RotationMatrix GetObjectRotationValue () const
 
G4ThreeVector GetObjectTranslation () const
 
const G4RotationMatrixGetFrameRotation () const
 
G4ThreeVector GetFrameTranslation () const
 
const G4ThreeVectorGetTranslation () const
 
const G4RotationMatrixGetRotation () const
 
void SetTranslation (const G4ThreeVector &v)
 
G4RotationMatrixGetRotation ()
 
void SetRotation (G4RotationMatrix *)
 
G4LogicalVolumeGetLogicalVolume () const
 
void SetLogicalVolume (G4LogicalVolume *pLogical)
 
G4LogicalVolumeGetMotherLogical () const
 
void SetMotherLogical (G4LogicalVolume *pMother)
 
const G4StringGetName () const
 
void SetName (const G4String &pName)
 
EVolume VolumeType () const
 
virtual G4bool CheckOverlaps (G4int res=1000, G4double tol=0., G4bool verbose=true, G4int errMax=1)
 
 G4VPhysicalVolume (__void__ &)
 
G4int GetInstanceID () const
 

Static Public Member Functions

static const G4PVRManagerGetSubInstanceManager ()
 
- Static Public Member Functions inherited from G4VPhysicalVolume
static const G4PVManagerGetSubInstanceManager ()
 

Protected Attributes

EAxis faxis
 
G4int fnReplicas
 
G4double fwidth
 
G4double foffset
 
- Protected Attributes inherited from G4VPhysicalVolume
G4int instanceID
 

Private Member Functions

void CheckAndSetParameters (const EAxis pAxis, const G4int nReplicas, const G4double width, const G4double offset)
 
 G4PVReplica (const G4PVReplica &)
 
G4PVReplicaoperator= (const G4PVReplica &)
 

Private Attributes

G4int fRegularStructureCode
 
G4int fRegularVolsId
 
G4int instanceID
 

Static Private Attributes

static G4GEOM_DLL G4PVRManager subInstanceManager
 

Additional Inherited Members

- Protected Member Functions inherited from G4VPhysicalVolume
void InitialiseWorker (G4VPhysicalVolume *pMasterObject, G4RotationMatrix *pRot, const G4ThreeVector &tlate)
 
void TerminateWorker (G4VPhysicalVolume *pMasterObject)
 
- Static Protected Attributes inherited from G4VPhysicalVolume
static G4GEOM_DLL G4PVManager subInstanceManager
 

Detailed Description

Definition at line 119 of file G4PVReplica.hh.

Constructor & Destructor Documentation

G4PVReplica::G4PVReplica ( const G4String pName,
G4LogicalVolume pLogical,
G4LogicalVolume pMother,
const EAxis  pAxis,
const G4int  nReplicas,
const G4double  width,
const G4double  offset = 0 
)

Definition at line 87 of file G4PVReplica.cc.

References G4LogicalVolume::AddDaughter(), CheckAndSetParameters(), G4GeomSplitter< T >::CreateSubInstance(), FatalException, G4endl, G4Exception(), G4MT_copyNo, G4LogicalVolume::GetName(), G4LogicalVolume::GetNoDaughters(), instanceID, G4VPhysicalVolume::SetMotherLogical(), and subInstanceManager.

+ Here is the call graph for this function:

G4PVReplica::G4PVReplica ( const G4String pName,
G4LogicalVolume pLogical,
G4VPhysicalVolume pMother,
const EAxis  pAxis,
const G4int  nReplicas,
const G4double  width,
const G4double  offset = 0 
)

Definition at line 40 of file G4PVReplica.cc.

References G4LogicalVolume::AddDaughter(), CheckAndSetParameters(), G4GeomSplitter< T >::CreateSubInstance(), FatalException, G4endl, G4Exception(), G4MT_copyNo, G4VPhysicalVolume::GetLogicalVolume(), G4VPhysicalVolume::GetName(), G4LogicalVolume::GetNoDaughters(), instanceID, G4VPhysicalVolume::SetMotherLogical(), and subInstanceManager.

+ Here is the call graph for this function:

G4PVReplica::G4PVReplica ( __void__ &  a)

Definition at line 179 of file G4PVReplica.cc.

References G4GeomSplitter< T >::CreateSubInstance(), G4MT_copyNo, instanceID, and subInstanceManager.

+ Here is the call graph for this function:

G4PVReplica::~G4PVReplica ( )
virtual

Definition at line 187 of file G4PVReplica.cc.

References faxis, G4VPhysicalVolume::GetRotation(), and kPhi.

+ Here is the call graph for this function:

G4PVReplica::G4PVReplica ( const G4PVReplica )
private

Member Function Documentation

void G4PVReplica::CheckAndSetParameters ( const EAxis  pAxis,
const G4int  nReplicas,
const G4double  width,
const G4double  offset 
)
private

Definition at line 132 of file G4PVReplica.cc.

References FatalException, faxis, fnReplicas, foffset, fwidth, G4Exception(), kPhi, kRho, kUndefined, kXAxis, kYAxis, kZAxis, G4VPhysicalVolume::SetRotation(), and width.

Referenced by G4PVReplica().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4PVReplica::GetCopyNo ( ) const
virtual

Implements G4VPhysicalVolume.

Definition at line 200 of file G4PVReplica.cc.

References G4MT_copyNo.

G4int G4PVReplica::GetInstanceID ( ) const
inline

Definition at line 176 of file G4PVReplica.hh.

References instanceID.

G4int G4PVReplica::GetMultiplicity ( ) const
virtual

Reimplemented from G4VPhysicalVolume.

Definition at line 225 of file G4PVReplica.cc.

References fnReplicas.

Referenced by G4PVParameterised::CheckOverlaps(), GB06ParallelWorldForSlices::ConstructSD(), and export_G4PVReplica().

+ Here is the caller graph for this function:

G4VPVParameterisation * G4PVReplica::GetParameterisation ( ) const
virtual

Implements G4VPhysicalVolume.

Reimplemented in G4PVParameterised.

Definition at line 220 of file G4PVReplica.cc.

G4int G4PVReplica::GetRegularStructureId ( ) const
virtual

Implements G4VPhysicalVolume.

Definition at line 248 of file G4PVReplica.cc.

References fRegularVolsId.

void G4PVReplica::GetReplicationData ( EAxis axis,
G4int nReplicas,
G4double width,
G4double offset,
G4bool consuming 
) const
virtual

Implements G4VPhysicalVolume.

Reimplemented in G4PVParameterised.

Definition at line 230 of file G4PVReplica.cc.

References faxis, fnReplicas, foffset, and fwidth.

Referenced by G4tgbGeometryDumper::DumpPVReplica().

+ Here is the caller graph for this function:

const G4PVRManager & G4PVReplica::GetSubInstanceManager ( )
static

Definition at line 260 of file G4PVReplica.cc.

References subInstanceManager.

Referenced by G4GeometryWorkspace::G4GeometryWorkspace().

+ Here is the caller graph for this function:

void G4PVReplica::InitialiseWorker ( G4PVReplica pMasterObject)

Definition at line 271 of file G4PVReplica.cc.

References FatalException, faxis, G4Exception(), G4MT_copyNo, G4VPhysicalVolume::InitialiseWorker(), kPhi, kRho, kUndefined, kXAxis, kYAxis, kZAxis, G4VPhysicalVolume::SetRotation(), G4GeomSplitter< T >::SlaveCopySubInstanceArray(), and subInstanceManager.

Referenced by G4GeometryWorkspace::InitialisePhysicalVolumes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4PVReplica::IsMany ( ) const
virtual

Implements G4VPhysicalVolume.

Definition at line 195 of file G4PVReplica.cc.

G4bool G4PVReplica::IsParameterised ( ) const
virtual

Implements G4VPhysicalVolume.

Reimplemented in G4PVParameterised.

Definition at line 215 of file G4PVReplica.cc.

Referenced by G4GeometryWorkspace::InitialisePhysicalVolumes().

+ Here is the caller graph for this function:

G4bool G4PVReplica::IsRegularStructure ( ) const
virtual

Implements G4VPhysicalVolume.

Definition at line 243 of file G4PVReplica.cc.

References fRegularVolsId.

G4bool G4PVReplica::IsReplicated ( ) const
virtual

Implements G4VPhysicalVolume.

Definition at line 210 of file G4PVReplica.cc.

G4PVReplica& G4PVReplica::operator= ( const G4PVReplica )
private
void G4PVReplica::SetCopyNo ( G4int  CopyNo)
virtual

Implements G4VPhysicalVolume.

Definition at line 205 of file G4PVReplica.cc.

References G4MT_copyNo.

void G4PVReplica::SetRegularStructureId ( G4int  Code)
virtual

Reimplemented in G4PVParameterised.

Definition at line 253 of file G4PVReplica.cc.

References fRegularVolsId.

Referenced by G4PVParameterised::SetRegularStructureId().

+ Here is the caller graph for this function:

void G4PVReplica::TerminateWorker ( G4PVReplica pMasterObject)

Definition at line 316 of file G4PVReplica.cc.

References faxis, G4VPhysicalVolume::GetRotation(), and kPhi.

Referenced by G4GeometryWorkspace::DestroyWorkspace().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4int G4PVReplica::fnReplicas
protected
G4double G4PVReplica::foffset
protected
G4int G4PVReplica::fRegularStructureCode
private

Definition at line 205 of file G4PVReplica.hh.

G4int G4PVReplica::fRegularVolsId
private
G4double G4PVReplica::fwidth
protected
G4int G4PVReplica::instanceID
private

Definition at line 208 of file G4PVReplica.hh.

Referenced by G4PVReplica(), and GetInstanceID().

G4PVRManager G4PVReplica::subInstanceManager
staticprivate

Definition at line 210 of file G4PVReplica.hh.

Referenced by G4PVReplica(), GetSubInstanceManager(), and InitialiseWorker().


The documentation for this class was generated from the following files: