Hello all,
My project involves a neutron source enclosed within three detector volumes at varying distances. The desired output is an Ntuple with the total energy deposited by the neutrons for each of the three detectors.
I managed to assign three sensitive detectors to their respective logical volumes, and I verified that they’re working as intended; I’m just having issues setting up the hit collection.
The relevant code is attached. I’m getting an error for ‘SetEdep’ and ‘GetEdep’ within “Initialize” in the Detector.cc file. Am I missing definitions for those in the Hit.cc file, which is currently empty? I couldn’t find any documentation for that anywhere.
I tried getting Edep from aStep directly in “ProcessHits” without making a hit class, but the output for Edep was 0 for each detector. Am I on the right track now?