GEANT4: Inner Poly Shield Prepared by Ron Ferril For Harry Nelson
Steps to Defining an Object Define a Material Define a Shape Define a Logical Volume Shape Material Define a Physical Volume Placement
Material //Poly density = 0.935*g/cm3; G4Material* poly= new G4Material(name="Poly", // A label "Poly" density, // Density of material ncomponents=2); // Number of elements poly->AddElement(H,natoms=2); // First element H poly->AddElement(C,natoms=1); // Second element C
Shape G4Tubs* solidpolyinnerside= new G4Tubs( "polyin1", // Label 33.655*cm,41.275*cm,35.56*cm, // Inner, outer, // half height 0.*deg,360.*deg); // Arc: start, end
Logical Volume G4LogicalVolume* logicpolyiside= new G4LogicalVolume( solidpolyinnerside, // The shape poly, // The material "lpolyiside"); // A label
Physical Volume G4PVPlacement* physpolyiside= new G4PVPlacement( 0, // No rotation. G4ThreeVector(), // Centered in the world. "innerpolyside", // A label. logicpolyiside, // The logical volume. physiWorld, // Inside the world volume. false, // No boolean operations. 0); // No field for volume.
Additional Tools Rotations Boolean Solids Assembly Volumes Union Solids Subtraction Solids Assembly Volumes