Message: Re: What is the difference between AddEmModel and SetEmModel Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: What is the difference between AddEmModel and SetEmModel 

Forum: Physics List
Re: Question What is the difference between AddEmModel and SetEmModel (gdss)
Date: 26 Nov, 2013
From: Vladimir Ivanchenko <Vladimir Ivanchenko>

Hello,

AddEmModel(G4int order, G4VEmModel*) is a general method to add a model, order is an integer number defining a priority of the model. Less value of "order" means that the model is selected. Selection is done at initialisation time.

In the log file one can see printout per particle/process from which it is possible to figure out which models are finally selected for different energy interval.

If you "Add" several models for the the same energy only one model will be selected.

SetEmModel is the method one may be useful because there are default models attached to each EM process. With SetEmModel a user substitutes the default model by a custom one. In that case the default model is not instantiated, so minor CPU and memory are saved.

VI

 Add Message Add Message
to: "Re: What is the difference between AddEmModel and SetEmModel"

 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 ]