Message: Re: Adding Optical Photons to Physics List Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Adding Optical Photons to Physics List 

Forum: Processes Involving Optical Photons
Re: None Adding Optical Photons to Physics List (Zach Miller)
Date: 29 May, 2014
From: Gumplinger Peter <Gumplinger Peter>

Hi Zach,

> I'm new to the idea of Modular Physics Lists. The last time I used
> GEANT, you simply added every process piece-meal as necessary. However,
> since these seem to be the wave of the future, I'm attempting to update
> my methods.

Great! Sorry, you seem to have issues.

> For this new project, I'm attempting to simulate scintillation detection
> of neutrons in various energy ranges. As I understand it, that means I
> should start with a Hadronic Physics List (FTFP_BERT_HP) and then
> Register the other various processes of interest. I've done this in the
> attached file (the main loop), with this being the relevant portion of
> the code:

>   G4VModularPhysicsList* physicsList = new FTFP_BERT_HP;
>   physicsList->RegisterPhysics(new G4EmStandardPhysics(ver));
>   physicsList->RegisterPhysics(new G4OpticalPhysics(ver));
>   physicsList->RegisterPhysics(new G4DecayPhysics(ver));
>   runManager->SetUserInitialization(physicsList);

You have to be careful as to what is and is not already part of the preconfigured ModularPhysicsList that you are using. In the case of FTFP_BERT_HP G4EmStandardPhysics and G4DecayPhysics are already included - do NOT register them again!

http://www-geant4.kek.jp/lxr/source/physics_lists/lists/include/FTFP_BERT_HP.icc#L66

> If all of this is okay, the other question I have is: How does one make
> the optical photon tracking a quiet process?

Your code has:

G4int ver = 1; physicsList->RegisterPhysics(new G4OpticalPhysics(ver));

So, this turns the G4OpBoundaryProcess and other optical processes' verbose level to 1.

Peter

 Add Message Add Message
to: "Re: Adding Optical Photons to Physics List"

 Subscribe Subscribe

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