Message: Re: Calculating the Deposited Energy of Parent Particles using Microdosimetry Example Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Calculating the Deposited Energy of Parent Particles using Microdosimetry Example 

Forum: Event and Track Management
Re: Question Calculating the Deposited Energy of Parent Particles using Microdosimetry Example (Adam Hasse)
Date: 17 Jun, 2015
From: Gumplinger Peter <Gumplinger Peter>

In SteppingAction you can identify a primary particle with:

theStep->GetTrack()->GetParentID()==0

and get the energy deposition during the step with:

G4double edep = theStep->GetTotalEnergyDeposit()

 Add Message Add Message
to: "Re: Calculating the Deposited Energy of Parent Particles using Microdosimetry Example"

 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 ]