#include <ML2ReadOutGeometry.hh>
Definition at line 52 of file ML2ReadOutGeometry.hh.
CML2ReadOutGeometry::CML2ReadOutGeometry |
( |
| ) |
|
Definition at line 54 of file ML2ReadOutGeometry.cc.
60 halfSizeWorld.
set(3000.*
mm, 3000*
mm, 3000*
mm);
61 G4Box *ROphmWorldB =
new G4Box(
"ROphmWorldG", halfSizeWorld.
getX(), halfSizeWorld.
getY(), halfSizeWorld.
getZ());
63 ROPhyVol=
new G4PVPlacement(0, ctr,
"ROphmWorldPV", ROphmWorldLV, 0,
false, 0);
void set(double x, double y, double z)
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
static constexpr double mm
static G4NistManager * Instance()
CML2ReadOutGeometry::~CML2ReadOutGeometry |
( |
void |
| ) |
|
Implements G4VReadOutGeometry.
Definition at line 80 of file ML2ReadOutGeometry.cc.
87 ROPV =
new G4PVPlacement(0, centre,
"ROPV", ROLV, ROPhyVol,
false, 0);
91 G4double halfXVoxelDimensionX, halfXVoxelDimensionY, halfXVoxelDimensionZ;
93 halfXVoxelDimensionX=halfSize.
getX()/NumberOfVoxelsAlongX;
94 halfXVoxelDimensionY=halfSize.
getY()/NumberOfVoxelsAlongY;
95 halfXVoxelDimensionZ=halfSize.
getZ()/NumberOfVoxelsAlongZ;
97 G4double voxelXThicknessX = 2*halfXVoxelDimensionX;
98 G4double voxelXThicknessY = 2*halfXVoxelDimensionY;
99 G4double voxelXThicknessZ = 2*halfXVoxelDimensionZ;
103 G4Box *ROPhantomXDivision =
new G4Box(
"ROPhantomXDivision",
104 halfXVoxelDimensionX,
110 "ROPhantomXDivisionLog",
113 ROPhantomXDivisionPhys =
new G4PVReplica(
"ROPhantomXDivisionPhys",
114 ROPhantomXDivisionLog,
117 NumberOfVoxelsAlongX,
122 G4Box *ROPhantomZDivision =
new G4Box(
"ROPhantomZDivision",
123 halfXVoxelDimensionX,
125 halfXVoxelDimensionZ);
129 "ROPhantomZDivisionLog",
132 ROPhantomZDivisionPhys =
new G4PVReplica(
"ROPhantomZDivisionPhys",
133 ROPhantomZDivisionLog,
134 ROPhantomXDivisionPhys,
136 NumberOfVoxelsAlongZ,
141 G4Box *ROPhantomYDivision =
new G4Box(
"ROPhantomYDivision",
142 halfXVoxelDimensionX,
143 halfXVoxelDimensionY,
144 halfXVoxelDimensionZ);
148 "ROPhantomYDivisionLog",
150 ROPhantomYDivisionPhys =
new G4PVReplica(
"ROPhantomYDivisionPhys",
151 ROPhantomYDivisionLog,
152 ROPhantomZDivisionPhys,
154 NumberOfVoxelsAlongY,
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
static G4NistManager * Instance()
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)
Definition at line 71 of file ML2ReadOutGeometry.cc.
75 NumberOfVoxelsAlongX=NVX;
76 NumberOfVoxelsAlongY=NVY;
77 NumberOfVoxelsAlongZ=NVZ;
The documentation for this class was generated from the following files: