57 G4int numberOfVoxelsX,
58 G4int numberOfVoxelsY,
59 G4int numberOfVoxelsZ):
62 detectorToWorldPosition(pos),
63 detectorSizeX(detectorDimX),
64 detectorSizeY(detectorDimY),
65 detectorSizeZ(detectorDimZ),
66 numberOfVoxelsAlongX(numberOfVoxelsX),
67 numberOfVoxelsAlongY(numberOfVoxelsY),
68 numberOfVoxelsAlongZ(numberOfVoxelsZ)
90 G4double halfDetectorSizeX = detectorSizeX;
91 G4double halfDetectorSizeY = detectorSizeY;
92 G4double halfDetectorSizeZ = detectorSizeZ;
101 "ROWorldLog", 0,0,0);
120 detectorToWorldPosition,
129 G4double halfXVoxelSizeX = halfDetectorSizeX/numberOfVoxelsAlongX;
130 G4double halfXVoxelSizeY = halfDetectorSizeY;
131 G4double halfXVoxelSizeZ = halfDetectorSizeZ;
132 G4double voxelXThickness = 2*halfXVoxelSizeX;
134 G4Box *RODetectorXDivision =
new G4Box(
"RODetectorXDivision",
141 "RODetectorXDivisionLog",
145 RODetectorXDivisionLog,
148 numberOfVoxelsAlongX,
153 G4double halfYVoxelSizeX = halfXVoxelSizeX;
154 G4double halfYVoxelSizeY = halfDetectorSizeY/numberOfVoxelsAlongY;
155 G4double halfYVoxelSizeZ = halfDetectorSizeZ;
156 G4double voxelYThickness = 2*halfYVoxelSizeY;
158 G4Box *RODetectorYDivision =
new G4Box(
"RODetectorYDivision",
165 "RODetectorYDivisionLog",
169 RODetectorYDivisionLog,
170 RODetectorXDivisionPhys,
172 numberOfVoxelsAlongY,
177 G4double halfZVoxelSizeX = halfXVoxelSizeX;
178 G4double halfZVoxelSizeY = halfYVoxelSizeY;
179 G4double halfZVoxelSizeZ = halfDetectorSizeZ/numberOfVoxelsAlongZ;
180 G4double voxelZThickness = 2*halfZVoxelSizeZ;
182 G4Box *RODetectorZDivision =
new G4Box(
"RODetectorZDivision",
189 "RODetectorZDivisionLog",
192 RODetectorZDivisionPhys =
new G4PVReplica(
"RODetectorZDivisionPhys",
193 RODetectorZDivisionLog,
194 RODetectorYDivisionPhys,
196 numberOfVoxelsAlongZ,
200 RODetectorZDivisionLog -> SetSensitiveDetector(dummySD);
~IORTDetectorROGeometry()
CLHEP::Hep3Vector G4ThreeVector
IORTDetectorROGeometry(G4String aString, G4ThreeVector detectorPos, G4double detectorDimX, G4double detectorDimY, G4double detectorDimZ, G4int numberOfVoxelsX, G4int numberOfVoxelsY, G4int numberOfVoxelsZ)