I am constructing a cylindrical detector where a circular plate on one side will act as sensitive detector and record photons. I want to divide circular plate in small elements such that while recording the photon, I can measure detector position. Can someone explain how I can divide circular plate into small crystals for recording purpose. Without doing that the root file is not generating.
If you’re writing your own SD code, you don’t necessarily have to divide the volume at all. Just include the post-step coordinates in your hit output, and you can “divide” or “bin” the hit positions in your analysis code.
Do you have an SD that you’ve written yourself and registered as part of your geometry (in the ConstructSDandField() function)? If so, the post-step point attached to the step includes the exact position of each step.