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);
75 NumberOfVoxelsAlongX=NVX;
76 NumberOfVoxelsAlongY=NVY;
77 NumberOfVoxelsAlongZ=NVZ;
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,
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()
G4VPhysicalVolume * Build()
void setBuildData(G4ThreeVector centre, G4ThreeVector halfSize, G4int NumberOfVoxelsAlongX, G4int NumberOfVoxelsAlongY, G4int NumberOfVoxelsAlongZ)
~CML2ReadOutGeometry(void)
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)