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

Idea Re: Physics list per region? 

Forum: Physics List
Re: Question Physics list per region? (Nicola Mori)
Re: None Re: Physics list per region? (John Apostolakis)
Re: Idea Re: Physics list per region? (Vladimir Ivanchenko)
Re: None Re: Physics list per region? (Nicola Mori)
Date: 03 Mar, 2014
From: Vladimir Ivanchenko <Vladimir Ivanchenko>

Hello Nicola,

I would try following. Define G4Region in your geometry to the logical volume where you want deactivate msc (good example: $G4INSTALL/examples/extended/electromagnetic/TestEm8 or the same microdosimetry).

Instantiate any Physics List, define region "target", and use G4EmConfigurator in any part of you code before "/run/initialise"


G4EmConfigurator* em_config = G4LossTableManager::Instance()->EmConfigurator();
G4UrbanMscModel* msc = new G4UrbanMscModel();
msc->SetActivationLowEnergyLimit(10*TeV);
m_config->SetExtraEmModel("e-","msc",msc,"target");

Unfortunately, you need to repeat the last line for all particles of interest.
Because the model is deactivated it is not important what model is used, I choose Urban model because it is standard one.

VI

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

1 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 ]