Message: Change parameters of particular physics in reference physicsList Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Change parameters of particular physics in reference physicsList 

Forum: Physics List
Date: 20 Dec, 2013
From: Aleksandr Nesterenok <Aleksandr Nesterenok>

I use reference physics list - FTF_BERT_HP. But I need to add muon nuclear interaction. It isn't simulated by default. The G4EmExtraPhysics is responsible for simulating this physics, but the parameter muNucOn is false by default. I found two ways to switch on muon nuclear interaction:

--------

G4VModularPhysicsList* physics;

physics = new FTFP_BERT_HP();

const G4VPhysicsConstructor* element;

G4VPhysicsConstructor* tmp;

G4EmExtraPhysics *extraEM;

element = physics->GetPhysics("G4GammaLeptoNuclearPhys");

tmp = const_cast<G4VPhysicsConstructor*>(element);

extraEM = static_cast<G4EmExtraPhysics*>(tmp);

if (extraEM) extraEM->MuonNuclear(State = "ON");

------

and another way

-----

G4VModularPhysicsList* physics;

physics = new FTFP_BERT_HP();

physics->RemovePhysics(Name = "G4GammaLeptoNuclearPhys");

G4EmExtraPhysics *extraEM = new G4EmExtraPhysics();

extraEM->MuonNuclear(State = "ON");

physics->RegisterPhysics(extraEM);

----

Are these ways correct?

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

1 Idea: Re: Change parameters of particular physics in reference physicsList   (Vladimir Ivanchenko - 28 Dec, 2013)
 Add Message Add Message
to: "Change parameters of particular physics in reference physicsList"

 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 ]