5 #include <phparameter/PHParameters.h>
11 #include <Geant4/G4Box.hh>
12 #include <Geant4/G4LogicalVolume.hh>
13 #include <Geant4/G4Material.hh>
14 #include <Geant4/G4PVPlacement.hh>
15 #include <Geant4/G4RotationMatrix.hh>
16 #include <Geant4/G4SubtractionSolid.hh>
17 #include <Geant4/G4SystemOfUnits.hh>
18 #include <Geant4/G4ThreeVector.hh>
19 #include <Geant4/G4Tubs.hh>
34 , m_Params(parameters)
43 set<G4VPhysicalVolume *>::const_iterator iter =
59 new G4Box(
"Example03BoxSolid", xdim / 2., ydim / 2., zdim / 2.);
61 new G4Tubs(
"CylinderCutSolid", 0., xdim / 4., zdim, 0., M_PI *
rad);
62 G4VSolid *subtract =
new G4SubtractionSolid(
"HoleInBox", solidbox, cylcut);
63 G4LogicalVolume *logical =
new G4LogicalVolume(subtract, G4Material::GetMaterial(
"G4_Al"),
"BoxWithHoleLogical");
65 G4RotationMatrix *rotm =
new G4RotationMatrix();
75 logical,
"BoxWithHole", logicWorld, 0,
false,
OverlapCheck());
84 cout <<
"Example03 Detector:" << endl;
85 if (what ==
"ALL" || what ==
"VOLUME")
87 cout <<
"Version 0.1" << endl;
88 cout <<
"Parameters:" << endl;