12.07.2015 Views

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Detector Definition and Response• Giving the number of divisions and the division width:G4PVDivision( const G4String& pName,G4LogicalVolume* pCurrentLogical,G4LogicalVolume* pMotherLogical,const EAxis pAxis,const G4int nDivisions,const G4double width,const G4double offset )where:pNamepCurrentLogicalpMotherLogicalpAxisnDivisionswidthoffsetString identifier <strong>for</strong> the replicated volumeThe associated Logical VolumeThe associated mother Logical VolumeThe axis along which the division is appliedThe number of divisionsThe width of a single division along the axisPossible offset associated to the mother along the axisof divisionThe parameterisation is calculated automatically using the values provided in input. There<strong>for</strong>e the dimensionsof the solid associated with pCurrentLogical will not be used, but recomputed through theG4VParameterisation::ComputeDimension() method.Since G4VPVParameterisation may have different ComputeDimension() methods <strong>for</strong> each solid type,the user must provide a solid that is of the same type as of the one associated to the mother volume.As <strong>for</strong> any replica, the coordinate system of the divisions is related to the centre of each division <strong>for</strong> the cartesianaxis. For the radial axis, the coordinate system is the same of the mother volume. For the phi axis, the newcoordinate system is rotated such that the X axis bisects the angle made by each wedge, and Z remains parallelto the mother's Z axis.As divisions are parameterised volumes with constant dimensions, they may be placed inside other divisions,except in the case of divisions along the radial axis.It is also possible to place other volumes inside a volume where a division is placed.The list of volumes that currently support divisioning and the possible division axis are summarised below:G4BoxG4TubsG4ConsG4TrdG4ParaG4PolyconekXAxis, kYAxis, kZAxiskRho, kPhi, kZAxiskRho, kPhi, kZAxiskXAxis, kYAxis, kZAxiskXAxis, kYAxis, kZAxiskRho, kPhi, kZAxisG4Polyhedra kRho, kPhi, kZAxis (*)(*) - G4Polyhedra:• kPhi - the number of divisions has to be the same as solid sides, (i.e. numSides), the width will not be takeninto account.In the case of division along kRho of G4Cons, G4Polycone, G4Polyhedra, if width is provided, it is takenas the width at the -Z radius; the width at other radii will be scaled to this one.92

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!