Message: Re: How to calculate the flux of compton electron ? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to calculate the flux of compton electron ? 

Forum: Particles
Re: Question How to calculate the flux of compton electron ? (EL ALLAM El mehdi)
Date: 31 May, 2015
From: Tsukasa Aso <Tsukasa Aso>

Hi,

  I think the following example code will be helpful for your purpose.
  examples/extended/runAndEvent/RE02/src/RE02DetectorConstruction.cc

  1)  Since the primitive scorers are designed to store a physics quantity 
in each cell. If you want to get the energy distribution of secondary, you 
have to create scorers for each energy interval. 

  2) In order to count the number of secondary electrons, I think you can use
G4PSNofSecondary with the G4SDParticleWithEnergyFilter.
Here, G4PSNofSecondary ensures that the track have been created in the volume,
and G4SDParticleWithEnergyFilter is used for ensuring the track is an electron and
its kinetic energy is within the given interval.

(Note) the G4PSNofSeconray identifies only the particle has been created
in the volume, and it does not identify the parent particle. It means, 
if a energetic secondary electron also creates secondary electrons, those
electrons are also counted.

Best regards,
T.Aso

 Add Message Add Message
to: "Re: How to calculate the flux of compton electron ?"

 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 ]