Message: Re: G4Scintillation - optical photon generation Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: G4Scintillation - optical photon generation 

Forum: Particles
Re: Question G4Scintillation - optical photon generation (Bruno Arsenali)
Date: 07 Jun, 2012
From: Gumplinger Peter <Gumplinger Peter>

> const G4int N = 1;

N must be at least 2!!!

> G4double Energies[N] = {1.0*eV};

Energies can be as narrow as you like but you must give an array of >=2.

> EnergyDeposit is calculated with:
> step-&gt;GetPreStepPoint()-&gt;GetTotalEnergy()-step-&gt;GetPostStepPoint()-&gt;GetTotalEnergy()

Not correct, the energy deposit (without saturation) is:

 G4double TotalEnergyDeposit = step->GetTotalEnergyDeposit();

The exact code is:

Remember, some of the energy difference between pre and post step-points can go into secondary particles that have yet to be tracked.

 Add Message Add Message
to: "Re: G4Scintillation - optical photon generation"

 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 ]