G4ReplicatedSlice Class Reference

#include <G4ReplicatedSlice.hh>

Inheritance diagram for G4ReplicatedSlice:

G4VPhysicalVolume

Public Member Functions

 G4ReplicatedSlice (const G4String &pName, G4LogicalVolume *pLogical, G4LogicalVolume *pMotherLogical, const EAxis pAxis, const G4int nReplicas, const G4double width, const G4double half_gap, const G4double offset)
 G4ReplicatedSlice (const G4String &pName, G4LogicalVolume *pLogical, G4LogicalVolume *pMotherLogical, const EAxis pAxis, const G4int nReplicas, const G4double half_gap, const G4double offset)
 G4ReplicatedSlice (const G4String &pName, G4LogicalVolume *pLogical, G4LogicalVolume *pMotherLogical, const EAxis pAxis, const G4double width, const G4double half_gap, const G4double offset)
 G4ReplicatedSlice (const G4String &pName, G4LogicalVolume *pLogical, G4VPhysicalVolume *pMotherPhysical, const EAxis pAxis, const G4int nReplicas, const G4double width, const G4double half_gap, const G4double offset)
 G4ReplicatedSlice (const G4String &pName, G4LogicalVolume *pLogical, G4VPhysicalVolume *pMotherPhysical, const EAxis pAxis, const G4int nReplicas, const G4double half_gap, const G4double offset)
 G4ReplicatedSlice (const G4String &pName, G4LogicalVolume *pLogical, G4VPhysicalVolume *pMotherPhysical, const EAxis pAxis, const G4double width, const G4double half_gap, const G4double offset)
virtual ~G4ReplicatedSlice ()
virtual G4bool IsMany () const
virtual G4int GetCopyNo () const
virtual void SetCopyNo (G4int CopyNo)
virtual G4bool IsReplicated () const
virtual G4VPVParameterisationGetParameterisation () const
virtual void GetReplicationData (EAxis &axis, G4int &nReplicas, G4double &width, G4double &offset, G4bool &consuming) const
EAxis GetDivisionAxis () const
G4bool IsParameterised () const
G4bool IsRegularStructure () const
G4int GetRegularStructureId () const

Protected Attributes

EAxis faxis
EAxis fdivAxis
G4int fnReplicas
G4double fwidth
G4double foffset
G4int fcopyNo
G4VDivisionParameterisationfparam

Detailed Description

Definition at line 71 of file G4ReplicatedSlice.hh.


Constructor & Destructor Documentation

G4ReplicatedSlice::G4ReplicatedSlice ( const G4String pName,
G4LogicalVolume pLogical,
G4LogicalVolume pMotherLogical,
const EAxis  pAxis,
const G4int  nReplicas,
const G4double  width,
const G4double  half_gap,
const G4double  offset 
)

Definition at line 44 of file G4ReplicatedSlice.cc.

References DivNDIVandWIDTH.

00052   : G4VPhysicalVolume(0,G4ThreeVector(),pName,pLogical,0), fcopyNo(-1)
00053 {
00054   CheckAndSetParameters(pAxis, nDivs, width, half_gap, offset,
00055                         DivNDIVandWIDTH, pMotherLogical, pLogical);
00056 }

G4ReplicatedSlice::G4ReplicatedSlice ( const G4String pName,
G4LogicalVolume pLogical,
G4LogicalVolume pMotherLogical,
const EAxis  pAxis,
const G4int  nReplicas,
const G4double  half_gap,
const G4double  offset 
)

Definition at line 59 of file G4ReplicatedSlice.cc.

References DivNDIV.

00066   : G4VPhysicalVolume(0,G4ThreeVector(),pName,pLogical,0), fcopyNo(-1)
00067 {
00068   CheckAndSetParameters(pAxis, nDivs, 0., half_gap, offset,
00069                         DivNDIV, pMotherLogical, pLogical);
00070 }

G4ReplicatedSlice::G4ReplicatedSlice ( const G4String pName,
G4LogicalVolume pLogical,
G4LogicalVolume pMotherLogical,
const EAxis  pAxis,
const G4double  width,
const G4double  half_gap,
const G4double  offset 
)

Definition at line 73 of file G4ReplicatedSlice.cc.

References DivWIDTH.

00080   : G4VPhysicalVolume(0,G4ThreeVector(),pName,pLogical,0), fcopyNo(-1)
00081 {
00082   CheckAndSetParameters(pAxis, 0, width, half_gap, offset,
00083                         DivWIDTH, pMotherLogical, pLogical);
00084 }

G4ReplicatedSlice::G4ReplicatedSlice ( const G4String pName,
G4LogicalVolume pLogical,
G4VPhysicalVolume pMotherPhysical,
const EAxis  pAxis,
const G4int  nReplicas,
const G4double  width,
const G4double  half_gap,
const G4double  offset 
)

Definition at line 87 of file G4ReplicatedSlice.cc.

References DivNDIVandWIDTH, and G4VPhysicalVolume::GetLogicalVolume().

00095   : G4VPhysicalVolume(0,G4ThreeVector(),pName,pLogical,0), fcopyNo(-1)
00096 {
00097   CheckAndSetParameters(pAxis, nDivs, width, half_gap, offset,
00098       DivNDIVandWIDTH, pMotherPhysical->GetLogicalVolume(), pLogical);
00099 }

G4ReplicatedSlice::G4ReplicatedSlice ( const G4String pName,
G4LogicalVolume pLogical,
G4VPhysicalVolume pMotherPhysical,
const EAxis  pAxis,
const G4int  nReplicas,
const G4double  half_gap,
const G4double  offset 
)

Definition at line 102 of file G4ReplicatedSlice.cc.

References DivNDIV, and G4VPhysicalVolume::GetLogicalVolume().

00109   : G4VPhysicalVolume(0,G4ThreeVector(),pName,pLogical,0), fcopyNo(-1)
00110 {
00111   CheckAndSetParameters(pAxis, nDivs, 0., half_gap, offset,
00112       DivNDIV, pMotherPhysical->GetLogicalVolume(), pLogical);
00113 }

G4ReplicatedSlice::G4ReplicatedSlice ( const G4String pName,
G4LogicalVolume pLogical,
G4VPhysicalVolume pMotherPhysical,
const EAxis  pAxis,
const G4double  width,
const G4double  half_gap,
const G4double  offset 
)

Definition at line 116 of file G4ReplicatedSlice.cc.

References DivWIDTH, and G4VPhysicalVolume::GetLogicalVolume().

00123   : G4VPhysicalVolume(0,G4ThreeVector(),pName,pLogical,0), fcopyNo(-1)
00124 {
00125   CheckAndSetParameters(pAxis, 0, width, half_gap, offset,
00126       DivWIDTH, pMotherPhysical->GetLogicalVolume(), pLogical);
00127 }

G4ReplicatedSlice::~G4ReplicatedSlice (  )  [virtual]

Definition at line 249 of file G4ReplicatedSlice.cc.

References G4VPhysicalVolume::GetRotation().

00250 {
00251   delete GetRotation();
00252 }


Member Function Documentation

G4int G4ReplicatedSlice::GetCopyNo (  )  const [virtual]

Implements G4VPhysicalVolume.

Definition at line 273 of file G4ReplicatedSlice.cc.

References fcopyNo.

00274 {
00275   return fcopyNo;
00276 }

EAxis G4ReplicatedSlice::GetDivisionAxis (  )  const

Definition at line 255 of file G4ReplicatedSlice.cc.

References fdivAxis.

00256 {
00257   return fdivAxis;
00258 }

G4VPVParameterisation * G4ReplicatedSlice::GetParameterisation (  )  const [virtual]

Implements G4VPhysicalVolume.

Definition at line 291 of file G4ReplicatedSlice.cc.

References fparam.

00292 {
00293   return fparam;
00294 }

G4int G4ReplicatedSlice::GetRegularStructureId (  )  const [virtual]

Implements G4VPhysicalVolume.

Definition at line 542 of file G4ReplicatedSlice.cc.

00543 {
00544   return 0;  
00545 }           

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

Implements G4VPhysicalVolume.

Definition at line 297 of file G4ReplicatedSlice.cc.

References faxis, fnReplicas, foffset, and fwidth.

00302 {
00303   axis=faxis;
00304   nDivs=fnReplicas;
00305   width=fwidth;
00306   offset=foffset;
00307   consuming=false;
00308 }

G4bool G4ReplicatedSlice::IsMany (  )  const [virtual]

Implements G4VPhysicalVolume.

Definition at line 267 of file G4ReplicatedSlice.cc.

00268 {
00269   return false; 
00270 }

G4bool G4ReplicatedSlice::IsParameterised (  )  const [virtual]

Implements G4VPhysicalVolume.

Definition at line 261 of file G4ReplicatedSlice.cc.

00262 { 
00263   return true;
00264 }

G4bool G4ReplicatedSlice::IsRegularStructure (  )  const [virtual]

Implements G4VPhysicalVolume.

Definition at line 534 of file G4ReplicatedSlice.cc.

00535 {
00536   return false;
00537 }           

G4bool G4ReplicatedSlice::IsReplicated (  )  const [virtual]

Implements G4VPhysicalVolume.

Definition at line 285 of file G4ReplicatedSlice.cc.

00286 {
00287   return true;
00288 }

void G4ReplicatedSlice::SetCopyNo ( G4int  CopyNo  )  [virtual]

Implements G4VPhysicalVolume.

Definition at line 279 of file G4ReplicatedSlice.cc.

References fcopyNo.

00280 {
00281   fcopyNo= newCopyNo;
00282 }


Field Documentation

EAxis G4ReplicatedSlice::faxis [protected]

Definition at line 186 of file G4ReplicatedSlice.hh.

Referenced by GetReplicationData().

G4int G4ReplicatedSlice::fcopyNo [protected]

Definition at line 190 of file G4ReplicatedSlice.hh.

Referenced by GetCopyNo(), and SetCopyNo().

EAxis G4ReplicatedSlice::fdivAxis [protected]

Definition at line 187 of file G4ReplicatedSlice.hh.

Referenced by GetDivisionAxis().

G4int G4ReplicatedSlice::fnReplicas [protected]

Definition at line 188 of file G4ReplicatedSlice.hh.

Referenced by GetReplicationData().

G4double G4ReplicatedSlice::foffset [protected]

Definition at line 189 of file G4ReplicatedSlice.hh.

Referenced by GetReplicationData().

G4VDivisionParameterisation* G4ReplicatedSlice::fparam [protected]

Definition at line 191 of file G4ReplicatedSlice.hh.

Referenced by GetParameterisation().

G4double G4ReplicatedSlice::fwidth [protected]

Definition at line 189 of file G4ReplicatedSlice.hh.

Referenced by GetReplicationData().


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:17 2013 for Geant4 by  doxygen 1.4.7