Message: Re: Physics list per region? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Physics list per region? 

Forum: Physics List
Re: Question Physics list per region? (Nicola Mori)
Date: 27 Feb, 2014
From: John Apostolakis <John Apostolakis>

Dear Nicola,

The simplest way to achieve what you request is to create 
  i) a SteppingAction which check what region the next step is in, and then disables the MSc process in the particles you track (and secondaries)
 ii) a TrackingAction which initializes the state of the MSc process corresponding to the current region

You could have both these actions call a common class which takes care of this, given the list of regions in which to stop MSc.

If I recall correctly it is possible to disable physics processes using methods of the G4ProcessManager.  You can find the process manager for each of the relevant particles after initialization, and then loop over this list.

It is also possible to use a UI call to disable a process, but this would likely be slower.

John
===================================================
John Apostolakis,  PH Department, CERN
SFT (SoFTware for Experiments) Group
Office: Building 32/ room R-003 (ground floor),  Mail: J27210
Email:  john.apostolakis@cern.ch       Office Tel:  +41-22-767-7239
------------------------------------------------------------------------------------------

On Feb 27, 2014, at 10:34 AM, Nicola Mori wrote:

> 
> *** Discussion title: Physics List
> 
> Hello, I'd like to know if it is possible to define different physics
> lists for different regions. To be specific, I'd need to disable
> multiple scattering only for a piece of my geometry. Is it possible to
> do so? Thanks
> 
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: 
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/phys-list/803.html 

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

1 Idea: Re: Physics list per region?   (Vladimir Ivanchenko - 03 Mar, 2014)
(_ None: Re: Physics list per region?   (Nicola Mori - 03 Mar, 2014)
(_ Idea: Re: Physics list per region?   (Vladimir Ivanchenko - 03 Mar, 2014)
(_ None: Re: Physics list per region?   (Nicola Mori - 03 Mar, 2014)
(_ Idea: Re: Physics list per region?   (Vladimir Ivanchenko - 03 Mar, 2014)
(_ Ok: Re: Physics list per region?   (Nicola Mori - 03 Mar, 2014)
(_ None: Re: Physics list per region?   (Nicola Mori - 03 Mar, 2014)
(_ Ok: Re: Physics list per region?   (Nicola Mori - 04 Mar, 2014)
(_ Idea: Re: Physics list per region?   (Vladimir Ivanchenko - 07 Mar, 2014)
 Add Message Add Message
to: "Re: Physics list per region?"

 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 ]