Message: Re: Any Physics Lists containing both Cerenkov and Transition Radiation Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Any Physics Lists containing both Cerenkov and Transition Radiation 

Forum: Physics List
Re: None Any Physics Lists containing both Cerenkov and Transition Radiation
Date: 09 Feb, 2016
From: <pjcb>

Starting to think there have been no successful implementations of the G4ForwardXrayTR process. There's no physics list for it either that I can tell.

I made it work by creating a subclass of the G4ForwardXrayTR that points out material to the process indices ahead of time. This addresses the segfaults I would get previously. It's a gross hack but it SEEMS TO works as expected (fingers crossed).

All the subclass contains is: --

#include "TRFix.hh"

TRFix::
TRFix( const G4String& processName  )
   :        G4ForwardXrayTR(processName)
{
	fMatIndex1 = 1;
	fMatIndex2 = 2;
}

Then I manually call to build Xray Tables at the start of a simulation. (as to why I didn't use the 3-argument constructor: G4 stated materials provided were invalid at the time the physics list was being constructed).

Where '1' and '2' are the (future) indices of the materials the particle transitions across within the production cut tables. Is there a 'proper' way to implement the TR process?

 Add Message Add Message
to: "Re: Any Physics Lists containing both Cerenkov and Transition Radiation"

 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 ]