Message: Physics List by Region Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Physics List by Region 

Forum: Physics List
Date: 09 Jul, 2012
From: Michael Douglass <Michael Douglass>

Hello,

I am currently using the Microdosimetry example to instantiate the physics by region method in my own code.

I would like to set up 3 regions each with its own physics list.

This is a line of code that appears in the Microdosimetry example.

mod = new G4DNAChampionElasticModel();
  em_config->SetExtraEmModel("e-","e-_G4DNAElastic",mod,"Target",0.0,1*MeV); 

Can I simply do the following, (i.e. create 2 em_configs and mods and allocate these to Target_1 and Target_2 regions)

G4EmConfigurator* em_config1 = G4LossTableManager::Instance()->EmConfigurator();
G4EmConfigurator* em_config2 = G4LossTableManager::Instance()->EmConfigurator();

G4VEmModel* mod1;
G4VEmModel* mod2;

mod1 = new G4DNAChampionElasticModel();
  em_config1->SetExtraEmModel("e-","e-_G4DNAElastic",mod,"Target_1",0.0,1*MeV); 

mod2 = new G4DNAChampionElasticModel();
  em_config1->SetExtraEmModel("e-","e-_G4DNAElastic",mod,"Target_2",0.0,1*MeV);

 Thanks

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

1 Question: Re: Physics List by Region   (Michael Douglass - 06 Aug, 2012)
 Add Message Add Message
to: "Physics List by 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 ]