Message: Detection of optical photons in Geant4.9.2 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Warning Detection of optical photons in Geant4.9.2 

Forum: Processes Involving Optical Photons
Date: 03 Feb, 2009
From: J Martin-Albo <J Martin-Albo>

Dear Geant4 developers,

After upgrading to G4.9.2, we noticed that optical photons were no longer flagged as detected in metals.

Seems that a new line in this version in resets always the status of optical photons to 'Absorption' after calling the DoAbsorption() method (see the code below). Commenting out the line, our application and the 'optical' examples work as expected.

void G4OpBoundaryProcess::DielectricMetal()
        G4int n = 0;

	do {


           if( !G4BooleanRand(theReflectivity) && n == 1 ) {

             // Comment out DoAbsorption if you wish to have
             //       Transmission instead of Absorption

             theStatus = Absorption; // <<<<< THIS LINE


Best regards,

J Martin-Albo

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

1 Agree: Re: Detection of optical photons in Geant4.9.2   (Gumplinger Peter - 03 Feb, 2009)
 Add Message Add Message
to: "Detection of optical photons in Geant4.9.2"

 Subscribe Subscribe

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