Large array of voxel placement and scoring

Hello there!

The geometry I try to create is following:

50*50 voxels, every voxel has two sub-voxel: bottom and top (set as a detector). Every bottom sub-voxel has its own height. But the detector (top sub-voxel) is same in size. So the code likes:

1 create one detector (physical and logical volume)

2 loop 50*50 to create bottom-voxels (different height, physical and logical volume)

3 placement detector on top the 2500 bottom-voxels

The problems I can’t solve for now:

  1. the sub-voxels are overlap, the overlap value is xxx fm. The voxel size in km. Is it OK for simulation?

  2. I use scorer to get some statistics for top- and bottom-voxels. I use the realWorldLogVol top-voxel, realWorldLogVol bottom-voxel. But the top-voxel has 2500 lines, the bottom-voxel has only ONE line. I can’t figure out why this happened.

Please help me, thank you guys!

I am using PVPlacement to

Geant4 Version:11.4.0
Operating System:win11
Compiler/Version:vs2022
CMake Version:3.30