Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4EmStandardPhysics_option2 Class Reference

#include <G4EmStandardPhysics_option2.hh>

+ Inheritance diagram for G4EmStandardPhysics_option2:

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4ParticleTable::G4PTblDicIteratortheParticleIterator
 
G4PhysicsListHelperthePLHelper
 

Detailed Description

Definition at line 55 of file G4EmStandardPhysics_option2.hh.

Constructor & Destructor Documentation

◆ G4EmStandardPhysics_option2() [1/2]

G4EmStandardPhysics_option2::G4EmStandardPhysics_option2 ( G4int  ver = 1)

Definition at line 124 of file G4EmStandardPhysics_option2.cc.

125 : G4VPhysicsConstructor("G4EmStandard_opt2"), verbose(ver)
126{
129}
@ bElectromagnetic
static G4LossTableManager * Instance()

◆ G4EmStandardPhysics_option2() [2/2]

G4EmStandardPhysics_option2::G4EmStandardPhysics_option2 ( G4int  ver,
const G4String name 
)

Definition at line 133 of file G4EmStandardPhysics_option2.cc.

134 : G4VPhysicsConstructor("G4EmStandard_opt2"), verbose(ver)
135{
138}

◆ ~G4EmStandardPhysics_option2()

G4EmStandardPhysics_option2::~G4EmStandardPhysics_option2 ( )
virtual

Definition at line 142 of file G4EmStandardPhysics_option2.cc.

143{}

Member Function Documentation

◆ ConstructParticle()

void G4EmStandardPhysics_option2::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 147 of file G4EmStandardPhysics_option2.cc.

148{
149// gamma
151
152// leptons
157
158// mesons
163
164// barions
167
168// ions
171 G4He3::He3();
174}
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4Electron * Electron()
Definition: G4Electron.cc:94
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:87
static G4He3 * He3()
Definition: G4He3.cc:94
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static G4Positron * Positron()
Definition: G4Positron.cc:94
static G4Proton * Proton()
Definition: G4Proton.cc:93
static G4Triton * Triton()
Definition: G4Triton.cc:95

◆ ConstructProcess()

void G4EmStandardPhysics_option2::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 178 of file G4EmStandardPhysics_option2.cc.

179{
181
182 // muon & hadron bremsstrahlung and pair production
191
192 // muon & hadron multiple scattering
194 mumsc->AddEmModel(0, new G4WentzelVIModel());
196 pmsc->AddEmModel(0, new G4WentzelVIModel());
198 pimsc->AddEmModel(0, new G4WentzelVIModel());
200 kmsc->AddEmModel(0, new G4WentzelVIModel());
201 G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
202
203 // high energy limit for e+- scattering models and bremsstrahlung
204 G4double highEnergyLimit = 100*MeV;
205
206 // Add standard EM Processes
208 while( (*theParticleIterator)() ){
210 G4String particleName = particle->GetParticleName();
211 if(verbose > 1)
212 G4cout << "### " << GetPhysicsName() << " instantiates for "
213 << particleName << G4endl;
214
215 if (particleName == "gamma") {
216
217 ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
218 ph->RegisterProcess(new G4ComptonScattering(), particle);
219 ph->RegisterProcess(new G4GammaConversion(), particle);
220 ph->RegisterProcess(new G4RayleighScattering(), particle);
221
222 } else if (particleName == "e-") {
223
224 G4eIonisation* eioni = new G4eIonisation();
225 eioni->SetStepFunction(0.8, 1.0*mm);
226
231 msc1->SetHighEnergyLimit(highEnergyLimit);
232 msc2->SetLowEnergyLimit(highEnergyLimit);
233 msc->AddEmModel(0, msc1);
234 msc->AddEmModel(0, msc2);
235
238 ss->SetEmModel(ssm, 1);
239 ss->SetMinKinEnergy(highEnergyLimit);
240 ssm->SetLowEnergyLimit(highEnergyLimit);
241 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
242
248 brem->SetEmModel(br1,1);
249 brem->SetEmModel(br2,2);
250 br2->SetLowEnergyLimit(GeV);
251
252 ph->RegisterProcess(msc, particle);
253 ph->RegisterProcess(eioni, particle);
254 ph->RegisterProcess(brem, particle);
255 ph->RegisterProcess(ss, particle);
256
257 } else if (particleName == "e+") {
258
259 G4eIonisation* eioni = new G4eIonisation();
260 eioni->SetStepFunction(0.8, 1.0*mm);
261
266 msc1->SetHighEnergyLimit(highEnergyLimit);
267 msc2->SetLowEnergyLimit(highEnergyLimit);
268 msc->AddEmModel(0, msc1);
269 msc->AddEmModel(0, msc2);
270
273 ss->SetEmModel(ssm, 1);
274 ss->SetMinKinEnergy(highEnergyLimit);
275 ssm->SetLowEnergyLimit(highEnergyLimit);
276 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
277
278 ph->RegisterProcess(msc, particle);
279 ph->RegisterProcess(eioni, particle);
280 ph->RegisterProcess(new G4eBremsstrahlung(), particle);
281 ph->RegisterProcess(new G4eplusAnnihilation(), particle);
282 ph->RegisterProcess(ss, particle);
283
284 } else if (particleName == "mu+" ||
285 particleName == "mu-" ) {
286
287 ph->RegisterProcess(mumsc, particle);
288 ph->RegisterProcess(new G4MuIonisation(), particle);
289 ph->RegisterProcess(mub, particle);
290 ph->RegisterProcess(mup, particle);
291 ph->RegisterProcess(new G4CoulombScattering(), particle);
292
293 } else if (particleName == "alpha" ||
294 particleName == "He3") {
295
296 //ph->RegisterProcess(hmsc, particle);
297 ph->RegisterProcess(new G4hMultipleScattering(), particle);
298 ph->RegisterProcess(new G4ionIonisation(), particle);
299
300 } else if (particleName == "GenericIon") {
301
302 G4ionIonisation* ionIoni = new G4ionIonisation();
303 //ionIoni->SetEmModel(new G4IonParametrisedLossModel());
304 //ionIoni->SetStepFunction(0.1, 20*um);
305
306 ph->RegisterProcess(hmsc, particle);
307 ph->RegisterProcess(ionIoni, particle);
308
309 } else if (particleName == "pi+" ||
310 particleName == "pi-" ) {
311
312 ph->RegisterProcess(pimsc, particle);
313 ph->RegisterProcess(new G4hIonisation(), particle);
314 ph->RegisterProcess(pib, particle);
315 ph->RegisterProcess(pip, particle);
316
317 } else if (particleName == "kaon+" ||
318 particleName == "kaon-" ) {
319
320 ph->RegisterProcess(kmsc, particle);
321 ph->RegisterProcess(new G4hIonisation(), particle);
322 ph->RegisterProcess(kb, particle);
323 ph->RegisterProcess(kp, particle);
324
325 } else if (particleName == "proton" ||
326 particleName == "anti_proton") {
327
328 ph->RegisterProcess(pmsc, particle);
329 ph->RegisterProcess(new G4hIonisation(), particle);
330 ph->RegisterProcess(pb, particle);
331 ph->RegisterProcess(pp, particle);
332
333 } else if (particleName == "B+" ||
334 particleName == "B-" ||
335 particleName == "D+" ||
336 particleName == "D-" ||
337 particleName == "Ds+" ||
338 particleName == "Ds-" ||
339 particleName == "anti_He3" ||
340 particleName == "anti_alpha" ||
341 particleName == "anti_deuteron" ||
342 particleName == "anti_lambda_c+" ||
343 particleName == "anti_omega-" ||
344 particleName == "anti_sigma_c+" ||
345 particleName == "anti_sigma_c++" ||
346 particleName == "anti_sigma+" ||
347 particleName == "anti_sigma-" ||
348 particleName == "anti_triton" ||
349 particleName == "anti_xi_c+" ||
350 particleName == "anti_xi-" ||
351 particleName == "deuteron" ||
352 particleName == "lambda_c+" ||
353 particleName == "omega-" ||
354 particleName == "sigma_c+" ||
355 particleName == "sigma_c++" ||
356 particleName == "sigma+" ||
357 particleName == "sigma-" ||
358 particleName == "tau+" ||
359 particleName == "tau-" ||
360 particleName == "triton" ||
361 particleName == "xi_c+" ||
362 particleName == "xi-" ) {
363
364 ph->RegisterProcess(hmsc, particle);
365 ph->RegisterProcess(new G4hIonisation(), particle);
366 }
367 }
368
369 // Em options
370 //
372 opt.SetVerbose(verbose);
373 opt.SetApplyCuts(true);
374
375 // Scattering options
376 //
377 opt.SetPolarAngleLimit(CLHEP::pi);
378
379 // Ionization
380 //
381 //opt.SetSubCutoff(true);
382
383 // Deexcitation
384 //
387
388}
@ fMinimal
double G4double
Definition: G4Types.hh:64
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void SetPolarAngleLimit(G4double val)
void SetVerbose(G4int val, const G4String &name="all")
void SetApplyCuts(G4bool val)
void SetAtomDeexcitation(G4VAtomDeexcitation *)
const G4String & GetParticleName() const
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:585
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:606
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:592
void SetAngularDistribution(G4VEmAngularDistribution *)
Definition: G4VEmModel.hh:515
void SetMinKinEnergy(G4double e)
void SetEmModel(G4VEmModel *, G4int index=1)
void SetEmModel(G4VEmModel *, G4int index=1)
void SetStepFunction(G4double v1, G4double v2)
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=0)
void SetStepLimitType(G4MscStepLimitType val)
const G4String & GetPhysicsName() const
G4ParticleTable::G4PTblDicIterator * theParticleIterator

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