Sensitive Face of Sensitive Volume?

Is it possible to only detect particles from 1 particular face of a sensitive volume?
i.e. 1 side of a G4Tub or G4Box.

I’m making a gamma detector.

Thank you.

There are many ways, typically at your “analysis” stage, where you look at the output of the simulation. If you’re recording individual hits, make sure you record position coordinates, and then you can apply cuts. If you’re using a scorer, then you can consider just one slice of the 3D voxels or 2D surface.

if you only want to record hits on particular surfaces, you can do that in the code of your sensitive detector (SD), by applying a cut on the post-step point position.

1 Like