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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Detector Definition and ResponsehalfLenZHalf length in ZTetrahedra:A tetrahedra solid can be defined as follows:G4Tet(const G4String& pName,G4ThreeVector anchor,G4ThreeVector p2,G4ThreeVector p3,G4ThreeVector p4,G4bool*degeneracyFlag=0)In the picture:anchor = {0, 0, sqrt(3)},p2 = { 0, 2*sqrt(2/3), -1/sqrt(3) }, p3 = { -sqrt(2), -sqrt(2/3),-1/sqrt(3) }, p4 ={ sqrt(2), -sqrt(2/3) , -1/sqrt(3) }The solid is defined by 4 points in space:anchorAnchor pointp2 Point 2p3 Point 3p4 Point 4degeneracyFlagExtruded Polygon:Flag indicating degeneracy of pointsThe extrusion of an arbitrary polygon (extruded solid) with fixed outline in the defined Z sections can be definedas follows (in a general way, or as special construct with two Z sections):G4ExtrudedSolid(const G4String&pName,std::vector polygon,std::vector zsections)G4ExtrudedSolid(const G4String&pName,std::vector polygon,G4doublehz,G4TwoVector off1, G4double scale1,G4TwoVector off2, G4double scale2)The z-sides of the solid are the scaled versions of the same polygon.In the picture:poligon = {-30,-30},{-30,30},{30,30},{30,-30}, {15,-30},{15,15},{-15,15},{-15,-30}zsections = [-60,{0,30},0.8],[-15, {0,-30},1.], [10,{0,0},0.6], [60,{0,30},1.2]75

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

Saved successfully!

Ooh no, something went wrong!