Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4EmStandardPhysics Class Reference

#include <G4EmStandardPhysics.hh>

Inheritance diagram for G4EmStandardPhysics:
Collaboration diagram for G4EmStandardPhysics:

Public Member Functions

 G4EmStandardPhysics (G4int ver=0, const G4String &name="")
 
virtual ~G4EmStandardPhysics ()
 
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.hh.

Constructor & Destructor Documentation

G4EmStandardPhysics::G4EmStandardPhysics ( G4int  ver = 0,
const G4String name = "" 
)
explicit

Definition at line 111 of file G4EmStandardPhysics.cc.

112  : G4VPhysicsConstructor("G4EmStandard"), verbose(ver)
113 {
115  param->SetDefaults();
116  param->SetVerbose(verbose);
118 }
void SetVerbose(G4int val)
static G4EmParameters * Instance()
G4VPhysicsConstructor(const G4String &="")

Here is the call graph for this function:

G4EmStandardPhysics::~G4EmStandardPhysics ( )
virtual

Definition at line 122 of file G4EmStandardPhysics.cc.

123 {}

Member Function Documentation

void G4EmStandardPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 127 of file G4EmStandardPhysics.cc.

128 {
129  // gamma
130  G4Gamma::Gamma();
131 
132  // leptons
137 
138  // mesons
143 
144  // barions
147 
148  // ions
151  G4He3::He3();
152  G4Alpha::Alpha();
154 }
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::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 158 of file G4EmStandardPhysics.cc.

159 {
160  if(verbose > 1) {
161  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
162  }
164 
165  // muon & hadron bremsstrahlung and pair production
174 
175  // muon & hadron multiple scattering
177  mumsc->AddEmModel(0, new G4WentzelVIModel());
179 
181  pimsc->AddEmModel(0, new G4WentzelVIModel());
183 
185  kmsc->AddEmModel(0, new G4WentzelVIModel());
187 
189  pmsc->AddEmModel(0, new G4WentzelVIModel());
191 
192  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
193 
194  // high energy limit for e+- scattering models
195  G4double highEnergyLimit = 100*MeV;
196 
197  // Add standard EM Processes
198  auto myParticleIterator=GetParticleIterator();
199  myParticleIterator->reset();
200  while( (*myParticleIterator)() ){
201  G4ParticleDefinition* particle = myParticleIterator->value();
202  G4String particleName = particle->GetParticleName();
203 
204  if (particleName == "gamma") {
205 
206  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
207  ph->RegisterProcess(new G4ComptonScattering(), particle);
208  ph->RegisterProcess(new G4GammaConversion(), particle);
209 
210  } else if (particleName == "e-") {
211 
213  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
214  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
215  msc1->SetNewDisplacementFlag(false);
216  msc1->SetHighEnergyLimit(highEnergyLimit);
217  msc2->SetLowEnergyLimit(highEnergyLimit);
218  msc->AddEmModel(0, msc1);
219  msc->AddEmModel(0, msc2);
220 
223  ss->SetEmModel(ssm, 1);
224  ss->SetMinKinEnergy(highEnergyLimit);
225  ssm->SetLowEnergyLimit(highEnergyLimit);
226  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
227 
228  ph->RegisterProcess(msc, particle);
229  ph->RegisterProcess(new G4eIonisation(), particle);
230  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
231  ph->RegisterProcess(ss, particle);
232 
233  } else if (particleName == "e+") {
234 
236  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
237  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
238  msc1->SetNewDisplacementFlag(false);
239  msc1->SetHighEnergyLimit(highEnergyLimit);
240  msc2->SetLowEnergyLimit(highEnergyLimit);
241  msc->AddEmModel(0, msc1);
242  msc->AddEmModel(0, msc2);
243 
246  ss->SetEmModel(ssm, 1);
247  ss->SetMinKinEnergy(highEnergyLimit);
248  ssm->SetLowEnergyLimit(highEnergyLimit);
249  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
250 
251  ph->RegisterProcess(msc, particle);
252  ph->RegisterProcess(new G4eIonisation(), particle);
253  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
254  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
255  ph->RegisterProcess(ss, particle);
256 
257  } else if (particleName == "mu+" ||
258  particleName == "mu-" ) {
259 
260  ph->RegisterProcess(mumsc, particle);
261  ph->RegisterProcess(new G4MuIonisation(), particle);
262  ph->RegisterProcess(mub, particle);
263  ph->RegisterProcess(mup, particle);
264  ph->RegisterProcess(muss, particle);
265 
266  } else if (particleName == "alpha" ||
267  particleName == "He3") {
268 
269  //ph->RegisterProcess(hmsc, particle);
270  ph->RegisterProcess(new G4hMultipleScattering(), particle);
271  ph->RegisterProcess(new G4ionIonisation(), particle);
272 
273  } else if (particleName == "GenericIon") {
274 
275  ph->RegisterProcess(hmsc, particle);
276  ph->RegisterProcess(new G4ionIonisation(), particle);
277 
278  } else if (particleName == "pi+" ||
279  particleName == "pi-" ) {
280 
281  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
282  ph->RegisterProcess(pimsc, particle);
283  ph->RegisterProcess(new G4hIonisation(), particle);
284  ph->RegisterProcess(pib, particle);
285  ph->RegisterProcess(pip, particle);
286  ph->RegisterProcess(piss, particle);
287 
288  } else if (particleName == "kaon+" ||
289  particleName == "kaon-" ) {
290 
291  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
292  ph->RegisterProcess(kmsc, particle);
293  ph->RegisterProcess(new G4hIonisation(), particle);
294  ph->RegisterProcess(kb, particle);
295  ph->RegisterProcess(kp, particle);
296  ph->RegisterProcess(kss, particle);
297 
298  } else if (particleName == "proton" ||
299  particleName == "anti_proton") {
300 
301  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
302  ph->RegisterProcess(pmsc, particle);
303  ph->RegisterProcess(new G4hIonisation(), particle);
304  ph->RegisterProcess(pb, particle);
305  ph->RegisterProcess(pp, particle);
306  ph->RegisterProcess(pss, particle);
307 
308  } else if (particleName == "B+" ||
309  particleName == "B-" ||
310  particleName == "D+" ||
311  particleName == "D-" ||
312  particleName == "Ds+" ||
313  particleName == "Ds-" ||
314  particleName == "anti_He3" ||
315  particleName == "anti_alpha" ||
316  particleName == "anti_deuteron" ||
317  particleName == "anti_lambda_c+" ||
318  particleName == "anti_omega-" ||
319  particleName == "anti_sigma_c+" ||
320  particleName == "anti_sigma_c++" ||
321  particleName == "anti_sigma+" ||
322  particleName == "anti_sigma-" ||
323  particleName == "anti_triton" ||
324  particleName == "anti_xi_c+" ||
325  particleName == "anti_xi-" ||
326  particleName == "deuteron" ||
327  particleName == "lambda_c+" ||
328  particleName == "omega-" ||
329  particleName == "sigma_c+" ||
330  particleName == "sigma_c++" ||
331  particleName == "sigma+" ||
332  particleName == "sigma-" ||
333  particleName == "tau+" ||
334  particleName == "tau-" ||
335  particleName == "triton" ||
336  particleName == "xi_c+" ||
337  particleName == "xi-" ) {
338 
339  ph->RegisterProcess(hmsc, particle);
340  ph->RegisterProcess(new G4hIonisation(), particle);
341  }
342  }
343 
344  // Deexcitation
345  //
348 
350 }
static G4LossTableManager * Instance()
void SetNewDisplacementFlag(G4bool)
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:732
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
const G4String & GetPhysicsName() const
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:753
static G4PhysicsListHelper * GetPhysicsListHelper()
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=nullptr)
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214
void SetMinKinEnergy(G4double e)
double G4double
Definition: G4Types.hh:76
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:739
void SetAtomDeexcitation(G4VAtomDeexcitation *)

Here is the call graph for this function:


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