Message: Re: optical transmission and reflection though a layer between two materials with polished surfaces Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: optical transmission and reflection though a layer between two materials with polished surfaces 

Forum: Processes Involving Optical Photons
Re: Question optical transmission and reflection though a layer between two materials with polished surfaces
Re: Feedback Re: optical transmission and reflection though a layer between two materials with polished surfaces (Gumplinger Peter)
Re: Question Re: optical transmission and reflection though a layer between two materials with polished surfaces
Date: 01 Apr, 2010
From: Gumplinger Peter <Gumplinger Peter>

> which needs the photon energy in eV of the scintillation photons

Do you mean an optical photon that is being tracked, has the G4OpBoundaryProcess attached to its process vector, and is at a boundary (hence G4OpBoundaryProcess::PostStepDoIt is called)? Just look at the code:

const G4DynamicParticle* aParticle = aTrack.GetDynamicParticle();

OldMomentum = aParticle->GetMomentumDirection();

G4cout << "Photon Momentum/Energy in eV: " << OldMomentum/eV << "eV" << G4endl;

Look more careful:

G4double G4MaterialPropertyVector::GetPhotonEnergy() const

not - GetPhotonMomentum (for some reason 'momentum' and 'energy' are both used in the code since that's the same for a massless particle).

If you really want to query the MaterialPropertyVector, a good example how to do that can be found here:

http://www-geant4.kek.jp/lxr/source//examples/extended/optical/wls/src/WLSPrimaryGeneratorAction.cc#L114

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: optical transmission and reflection though a layer between two materials with polished surfaces   (Mike - 03 Apr, 2010)
(_ Feedback: Re: optical transmission and reflection though a layer between two materials with polished surfaces   (Gumplinger Peter - 13 Apr, 2010)
(_ Feedback: Re: optical transmission and reflection though a layer between two materials with polished surfaces   (Mike - 20 May, 2010)
 Add Message Add Message
to: "Re: optical transmission and reflection though a layer between two materials with polished surfaces"

 Subscribe Subscribe

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