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

None Adding Optical Photons to Physics List 

Forum: Processes Involving Optical Photons
Date: 29 May, 2014
From: Zach Miller <Zach Miller>

Hi all,

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.

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:

  #include "FTFP_BERT_HP.hh"
  #include "G4EmStandardPhysics.hh"
  #include "G4OpticalPhysics.hh"
  #include "G4DecayPhysics.hh"

  // Run manager
  G4RunManager* runManager = new G4RunManager;

  // Module Physics List (In use if no User List Required)
  G4VModularPhysicsList* physicsList = new FTFP_BERT_HP;
  physicsList->RegisterPhysics(new G4EmStandardPhysics(ver));
  physicsList->RegisterPhysics(new G4OpticalPhysics(ver));
  physicsList->RegisterPhysics(new G4DecayPhysics(ver));

This seems to be working correctly. However, I wanted to double check that this method of including the OpticalPhysics is correct and I'm not somehow short changing my simulation. I then define in my "" things like AbsorptionLength, ScintillationYield, etc on a "per material" basis.

If all of this is okay, the other question I have is: How does one make the optical photon tracking a quiet process? Currently, any time an optical photon is being tracked I get a message every time it meets a boundary that looks like:

 Photon at Boundary! 
 thePrePV:  airGapS1
 thePostPV: scint1
 *** StepTooSmall *** 
 Photon at Boundary! 
 thePrePV:  scint1
 thePostPV: airGapS1
 Old Momentum Direction: (-0.495126,-0.720858,-0.484988)
 Old Polarization:       (0.865526,-0.360677,-0.347529)
 New Momentum Direction: (-0.495126,0.720858,-0.484988)
 New Polarization:       (-0.865526,-0.360677,0.347529)
 *** TotalInternalReflection *** 

This is nice for debug, but significantly slows down my runtime. I can't find it in any of my user defined Actions, so I'm not sure where it's coming from.

Thanks! Zach


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

1 Feedback: Re: Adding Optical Photons to Physics List   (Gumplinger Peter - 29 May, 2014)
 Add Message Add Message
to: "Adding Optical Photons to Physics List"

 Subscribe Subscribe

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