_Geant4 Version: geant4-11-02-patch-02 [MT] (21-June-2024)
_Operating System: Ubuntu 64bit
_Compiler/Version:_g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
_CMake Version: 3.22.1
I’m implementing an HPGe detector in Geant4. I’ve already built the detector geometry and generated the energy spectrum. To simulate the detector’s performance, is it appropriate to apply the energy resolution (FWHM) in post-processing like this?
G4double sigma = resolution * sqrt(E_dep); // example resolution: 0.002 ~ 0.005
G4double smeared_E = G4RandGauss::shoot(E_dep, sigma);