Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4EmStandardPhysics_option3 Class Reference

#include <G4EmStandardPhysics_option3.hh>

Inheritance diagram for G4EmStandardPhysics_option3:
Collaboration diagram for G4EmStandardPhysics_option3:

Public Member Functions

 G4EmStandardPhysics_option3 (G4int ver=1, const G4String &name="")
 
virtual ~G4EmStandardPhysics_option3 ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 52 of file G4EmStandardPhysics_option3.hh.

Constructor & Destructor Documentation

G4EmStandardPhysics_option3::G4EmStandardPhysics_option3 ( G4int  ver = 1,
const G4String name = "" 
)
explicit

Definition at line 118 of file G4EmStandardPhysics_option3.cc.

120  : G4VPhysicsConstructor("G4EmStandard_opt3"), verbose(ver)
121 {
123  param->SetDefaults();
124  param->SetVerbose(verbose);
125  param->SetMinEnergy(10*eV);
126  param->SetMaxEnergy(100*TeV);
127  param->SetLowestElectronEnergy(100*eV);
128  param->SetNumberOfBinsPerDecade(20);
130  param->SetMuHadLateralDisplacement(true);
131  param->SetFluo(true);
133 }
void SetVerbose(G4int val)
void SetLowestElectronEnergy(G4double val)
void SetMscStepLimitType(G4MscStepLimitType val)
void SetMaxEnergy(G4double val)
static constexpr double TeV
Definition: G4SIunits.hh:218
void SetNumberOfBinsPerDecade(G4int val)
static constexpr double eV
Definition: G4SIunits.hh:215
void SetMuHadLateralDisplacement(G4bool val)
void SetMinEnergy(G4double val)
static G4EmParameters * Instance()
G4VPhysicsConstructor(const G4String &="")
void SetFluo(G4bool val)

Here is the call graph for this function:

G4EmStandardPhysics_option3::~G4EmStandardPhysics_option3 ( )
virtual

Definition at line 137 of file G4EmStandardPhysics_option3.cc.

138 {}

Member Function Documentation

void G4EmStandardPhysics_option3::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 142 of file G4EmStandardPhysics_option3.cc.

143 {
144  // gamma
145  G4Gamma::Gamma();
146 
147  // leptons
152 
153  // mesons
158 
159  // barions
162 
163  // ions
166  G4He3::He3();
167  G4Alpha::Alpha();
169 }
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static G4Proton * Proton()
Definition: G4Proton.cc:93
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4Positron * Positron()
Definition: G4Positron.cc:94
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4Electron * Electron()
Definition: G4Electron.cc:94
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4He3 * He3()
Definition: G4He3.cc:94

Here is the call graph for this function:

void G4EmStandardPhysics_option3::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 173 of file G4EmStandardPhysics_option3.cc.

174 {
175  if(verbose > 1) {
176  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
177  }
179 
180  // muon & hadron bremsstrahlung and pair production
190 
191  // muon & hadron multiple scattering
192  // G4MuMultipleScattering* mumsc = new G4MuMultipleScattering();
193  // mumsc->AddEmModel(0, new G4WentzelVIModel());
194  // G4hMultipleScattering* pimsc = new G4hMultipleScattering();
195  // pimsc->AddEmModel(0, new G4WentzelVIModel());
196  // G4hMultipleScattering* kmsc = new G4hMultipleScattering();
197  // kmsc->AddEmModel(0, new G4WentzelVIModel());
198  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
199  //pmsc->AddEmModel(0, new G4WentzelVIModel());
200  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
201 
202  // nuclear stopping
203  G4NuclearStopping* pnuc = new G4NuclearStopping();
204 
205  // Add standard EM Processes
206  auto myParticleIterator=GetParticleIterator();
207  myParticleIterator->reset();
208  while( (*myParticleIterator)() ){
209  G4ParticleDefinition* particle = myParticleIterator->value();
210  G4String particleName = particle->GetParticleName();
211 
212  if (particleName == "gamma") {
213 
215  cs->SetEmModel(new G4KleinNishinaModel(), 1);
216 
219 
220  ph->RegisterProcess(pee, particle);
221  ph->RegisterProcess(cs, particle);
222  ph->RegisterProcess(new G4GammaConversion(), particle);
223  ph->RegisterProcess(new G4RayleighScattering(), particle);
224 
225  } else if (particleName == "e-") {
226 
228 
229  G4eIonisation* eIoni = new G4eIonisation();
230  eIoni->SetStepFunction(0.2, 100*um);
231 
232  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
237  brem->SetEmModel(br1,1);
238  brem->SetEmModel(br2,2);
239  br2->SetLowEnergyLimit(GeV);
240 
241  // register processes
242  ph->RegisterProcess(msc, particle);
243  ph->RegisterProcess(eIoni, particle);
244  ph->RegisterProcess(brem, particle);
245  ph->RegisterProcess(ee, particle);
246 
247  } else if (particleName == "e+") {
248 
250 
251  G4eIonisation* eIoni = new G4eIonisation();
252  eIoni->SetStepFunction(0.2, 100*um);
253 
254  G4eBremsstrahlung* brem = new G4eBremsstrahlung();
259  brem->SetEmModel(br1,1);
260  brem->SetEmModel(br2,2);
261  br2->SetLowEnergyLimit(GeV);
262 
263  // register processes
264  ph->RegisterProcess(msc, particle);
265  ph->RegisterProcess(eIoni, particle);
266  ph->RegisterProcess(brem, particle);
267  ph->RegisterProcess(ee, particle);
268  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
269 
270  } else if (particleName == "mu+" ||
271  particleName == "mu-" ) {
272 
274  G4MuIonisation* muIoni = new G4MuIonisation();
275  muIoni->SetStepFunction(0.2, 50*um);
276 
277  ph->RegisterProcess(mumsc, particle);
278  ph->RegisterProcess(muIoni, particle);
279  ph->RegisterProcess(mub, particle);
280  ph->RegisterProcess(mup, particle);
281  //ph->RegisterProcess(new G4CoulombScattering(), particle);
282 
283  } else if (particleName == "alpha" ||
284  particleName == "He3") {
285 
287  G4ionIonisation* ionIoni = new G4ionIonisation();
288  ionIoni->SetStepFunction(0.1, 10*um);
289 
290  ph->RegisterProcess(msc, particle);
291  ph->RegisterProcess(ionIoni, particle);
292  ph->RegisterProcess(pnuc, particle);
293 
294  } else if (particleName == "GenericIon") {
295 
296  G4ionIonisation* ionIoni = new G4ionIonisation();
297  ionIoni->SetEmModel(new G4IonParametrisedLossModel());
298  ionIoni->SetStepFunction(0.1, 1*um);
299 
300  ph->RegisterProcess(hmsc, particle);
301  ph->RegisterProcess(ionIoni, particle);
302  ph->RegisterProcess(pnuc, particle);
303 
304  } else if (particleName == "pi+" ||
305  particleName == "pi-" ) {
306 
308  G4hIonisation* hIoni = new G4hIonisation();
309  hIoni->SetStepFunction(0.2, 50*um);
310 
311  ph->RegisterProcess(pimsc, particle);
312  ph->RegisterProcess(hIoni, particle);
313  ph->RegisterProcess(pib, particle);
314  ph->RegisterProcess(pip, particle);
315 
316  } else if (particleName == "kaon+" ||
317  particleName == "kaon-" ) {
318 
320  G4hIonisation* hIoni = new G4hIonisation();
321  hIoni->SetStepFunction(0.2, 50*um);
322 
323  ph->RegisterProcess(kmsc, particle);
324  ph->RegisterProcess(hIoni, particle);
325  ph->RegisterProcess(kb, particle);
326  ph->RegisterProcess(kp, particle);
327 
328  } else if (particleName == "proton" ||
329  particleName == "anti_proton") {
330 
332  G4hIonisation* hIoni = new G4hIonisation();
333  hIoni->SetStepFunction(0.2, 50*um);
334 
335  ph->RegisterProcess(pmsc, particle);
336  ph->RegisterProcess(hIoni, particle);
337  ph->RegisterProcess(pb, particle);
338  ph->RegisterProcess(pp, particle);
339  ph->RegisterProcess(pnuc, particle);
340 
341  } else if (particleName == "B+" ||
342  particleName == "B-" ||
343  particleName == "D+" ||
344  particleName == "D-" ||
345  particleName == "Ds+" ||
346  particleName == "Ds-" ||
347  particleName == "anti_He3" ||
348  particleName == "anti_alpha" ||
349  particleName == "anti_deuteron" ||
350  particleName == "anti_lambda_c+" ||
351  particleName == "anti_omega-" ||
352  particleName == "anti_sigma_c+" ||
353  particleName == "anti_sigma_c++" ||
354  particleName == "anti_sigma+" ||
355  particleName == "anti_sigma-" ||
356  particleName == "anti_triton" ||
357  particleName == "anti_xi_c+" ||
358  particleName == "anti_xi-" ||
359  particleName == "deuteron" ||
360  particleName == "lambda_c+" ||
361  particleName == "omega-" ||
362  particleName == "sigma_c+" ||
363  particleName == "sigma_c++" ||
364  particleName == "sigma+" ||
365  particleName == "sigma-" ||
366  particleName == "tau+" ||
367  particleName == "tau-" ||
368  particleName == "triton" ||
369  particleName == "xi_c+" ||
370  particleName == "xi-" ) {
371 
372  ph->RegisterProcess(hmsc, particle);
373  ph->RegisterProcess(new G4hIonisation(), particle);
374  ph->RegisterProcess(pnuc, particle);
375  }
376  }
377 
378  // Nuclear stopping
379  pnuc->SetMaxKinEnergy(MeV);
380 
381  // Deexcitation
384 
386 }
static G4LossTableManager * Instance()
void SetStepFunction(G4double v1, G4double v2, G4bool lock=true)
const G4String & GetParticleName() const
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
static constexpr double um
Definition: G4SIunits.hh:113
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
const G4String & GetPhysicsName() const
void SetMaxKinEnergy(G4double e)
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:623
static G4PhysicsListHelper * GetPhysicsListHelper()
void SetEmModel(G4VEmModel *, G4int index=1)
static constexpr double GeV
Definition: G4SIunits.hh:217
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:731
void SetAtomDeexcitation(G4VAtomDeexcitation *)

Here is the call graph for this function:


The documentation for this class was generated from the following files: