Message: Gamma Spectrum Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Gamma Spectrum 

Forum: Event and Track Management
Date: 12 Dec, 2013
From: T <T>

I am a new user of GEANT4. I am trying to simulate an experiment in which a point source emits photons that pass through a sample before reaching the detector. The intended output is a gamma spectrum.

When I use

fTrack->GetKineticEnergy()

the code gives the total energy deposited in both the sample and the detector. In an attempt to get the energy deposited in the detector alone, I tried

fStep->GetTotalEnergyDeposit()

which gave an output of

* G4Track Information:   Particle = e-,   Track ID = 6,   Parent ID = 1
	Tracker       eIoni   117 keV

* G4Track Information:   Particle = e-,   Track ID = 5,   Parent ID = 1
	Tracker       eIoni   108 keV

* G4Track Information:   Particle = e-,   Track ID = 4,   Parent ID = 1
	Tracker       eIoni  28.7 keV

Although these interactions are experimentally seen as one event by the detector (which is called Tracker here), the code separates them.

Can you please help me in obtaining the energy deposited to the detector per photon.

Thank you.

 Add Message Add Message
to: "Gamma Spectrum"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]