There is another solution that allows to quickly fill the parallelepiped with 30000 spheres, namely storing positions in several std::vector
instead of one. In the attachment you can find DetectorConstruction.cc
and vis.mac
(rename the attached vis.mac.txt
) for the example B1:
DetectorConstruction.cc (5.9 KB)
vis.mac.txt (4.7 KB)