Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4EmStandardPhysics_option1 Class Reference

#include <G4EmStandardPhysics_option1.hh>

Inheritance diagram for G4EmStandardPhysics_option1:
G4VPhysicsConstructor

Public Member Functions

 G4EmStandardPhysics_option1 (G4int ver=1)
 
 G4EmStandardPhysics_option1 (G4int ver, const G4String &name)
 
virtual ~G4EmStandardPhysics_option1 ()
 
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)
 
- 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 54 of file G4EmStandardPhysics_option1.hh.

Constructor & Destructor Documentation

G4EmStandardPhysics_option1::G4EmStandardPhysics_option1 ( G4int  ver = 1)

Definition at line 114 of file G4EmStandardPhysics_option1.cc.

References bElectromagnetic, G4LossTableManager::Instance(), and G4VPhysicsConstructor::SetPhysicsType().

115  : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
116 {
119 }
static G4LossTableManager * Instance()
G4VPhysicsConstructor(const G4String &="")
G4EmStandardPhysics_option1::G4EmStandardPhysics_option1 ( G4int  ver,
const G4String name 
)

Definition at line 123 of file G4EmStandardPhysics_option1.cc.

References bElectromagnetic, G4LossTableManager::Instance(), and G4VPhysicsConstructor::SetPhysicsType().

124  : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
125 {
128 }
static G4LossTableManager * Instance()
G4VPhysicsConstructor(const G4String &="")
G4EmStandardPhysics_option1::~G4EmStandardPhysics_option1 ( )
virtual

Definition at line 132 of file G4EmStandardPhysics_option1.cc.

133 {}

Member Function Documentation

void G4EmStandardPhysics_option1::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 137 of file G4EmStandardPhysics_option1.cc.

References G4Alpha::Alpha(), G4AntiProton::AntiProton(), G4Deuteron::Deuteron(), G4Electron::Electron(), G4Gamma::Gamma(), G4GenericIon::GenericIonDefinition(), G4He3::He3(), G4KaonMinus::KaonMinusDefinition(), G4KaonPlus::KaonPlusDefinition(), G4MuonMinus::MuonMinus(), G4MuonPlus::MuonPlus(), G4PionMinus::PionMinusDefinition(), G4PionPlus::PionPlusDefinition(), G4Positron::Positron(), G4Proton::Proton(), and G4Triton::Triton().

138 {
139 // gamma
140  G4Gamma::Gamma();
141 
142 // leptons
147 
148 // mesons
153 
154 // barions
157 
158 // ions
161  G4He3::He3();
162  G4Alpha::Alpha();
164 }
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
void G4EmStandardPhysics_option1::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 168 of file G4EmStandardPhysics_option1.cc.

References G4VMultipleScattering::AddEmModel(), aParticleIterator, fMinimal, G4cout, G4endl, G4ParticleDefinition::GetParticleName(), G4PhysicsListHelper::GetPhysicsListHelper(), G4VPhysicsConstructor::GetPhysicsName(), G4LossTableManager::Instance(), python.hepunit::MeV, python.hepunit::mm, G4InuclParticleNames::mup, G4InuclParticleNames::pip, G4InuclParticleNames::pp, G4PhysicsListHelper::RegisterProcess(), G4VEmModel::SetActivationLowEnergyLimit(), G4EmProcessOptions::SetApplyCuts(), G4LossTableManager::SetAtomDeexcitation(), G4VEmProcess::SetEmModel(), G4VEmModel::SetHighEnergyLimit(), G4VEmModel::SetLowEnergyLimit(), G4VEmProcess::SetMinKinEnergy(), G4EmProcessOptions::SetPolarAngleLimit(), G4VEnergyLossProcess::SetStepFunction(), G4VMultipleScattering::SetStepLimitType(), and G4EmProcessOptions::SetVerbose().

169 {
170  if(verbose > 1) {
171  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
172  }
174 
175  // muon & hadron bremsstrahlung and pair production
184 
185  // muon & hadron multiple scattering
187  mumsc->AddEmModel(0, new G4WentzelVIModel());
189  pimsc->AddEmModel(0, new G4WentzelVIModel());
191  kmsc->AddEmModel(0, new G4WentzelVIModel());
193  pmsc->AddEmModel(0, new G4WentzelVIModel());
194  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
195 
196  // high energy limit for e+- scattering models and bremsstrahlung
197  G4double highEnergyLimit = 100*MeV;
198 
199  // Add standard EM Processes
200  aParticleIterator->reset();
201  while( (*aParticleIterator)() ){
202  G4ParticleDefinition* particle = aParticleIterator->value();
203  G4String particleName = particle->GetParticleName();
204 
205  if (particleName == "gamma") {
206 
207  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
208  ph->RegisterProcess(new G4ComptonScattering(), particle);
209  ph->RegisterProcess(new G4GammaConversion(), particle);
210 
211  } else if (particleName == "e-") {
212 
213  G4eIonisation* eioni = new G4eIonisation();
214  eioni->SetStepFunction(0.8, 1.0*mm);
215 
218  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
219  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
220  msc1->SetHighEnergyLimit(highEnergyLimit);
221  msc2->SetLowEnergyLimit(highEnergyLimit);
222  msc->AddEmModel(0, msc1);
223  msc->AddEmModel(0, msc2);
224 
227  ss->SetEmModel(ssm, 1);
228  ss->SetMinKinEnergy(highEnergyLimit);
229  ssm->SetLowEnergyLimit(highEnergyLimit);
230  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
231 
232  ph->RegisterProcess(msc, particle);
233  ph->RegisterProcess(eioni, particle);
234  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
235  ph->RegisterProcess(ss, particle);
236 
237  } else if (particleName == "e+") {
238 
239  G4eIonisation* eioni = new G4eIonisation();
240  eioni->SetStepFunction(0.8, 1.0*mm);
241 
244  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
245  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
246  msc1->SetHighEnergyLimit(highEnergyLimit);
247  msc2->SetLowEnergyLimit(highEnergyLimit);
248  msc->AddEmModel(0, msc1);
249  msc->AddEmModel(0, msc2);
250 
253  ss->SetEmModel(ssm, 1);
254  ss->SetMinKinEnergy(highEnergyLimit);
255  ssm->SetLowEnergyLimit(highEnergyLimit);
256  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
257 
258  ph->RegisterProcess(msc, particle);
259  ph->RegisterProcess(eioni, particle);
260  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
261  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
262  ph->RegisterProcess(ss, particle);
263 
264  } else if (particleName == "mu+" ||
265  particleName == "mu-" ) {
266 
267  ph->RegisterProcess(mumsc, particle);
268  ph->RegisterProcess(new G4MuIonisation(), particle);
269  ph->RegisterProcess(mub, particle);
270  ph->RegisterProcess(mup, particle);
271  ph->RegisterProcess(new G4CoulombScattering(), particle);
272 
273  } else if (particleName == "alpha" ||
274  particleName == "He3" ) {
275 
276  //ph->RegisterProcess(hmsc, particle);
277  ph->RegisterProcess(new G4hMultipleScattering(), particle);
278  ph->RegisterProcess(new G4ionIonisation(), particle);
279 
280  } else if (particleName == "GenericIon") {
281 
282  ph->RegisterProcess(hmsc, particle);
283  ph->RegisterProcess(new G4ionIonisation(), particle);
284 
285  } else if (particleName == "pi+" ||
286  particleName == "pi-" ) {
287 
288  //G4hMultipleScattering* pimsc = new G4hMultipleScattering();
289  ph->RegisterProcess(pimsc, particle);
290  ph->RegisterProcess(new G4hIonisation(), particle);
291  ph->RegisterProcess(pib, particle);
292  ph->RegisterProcess(pip, particle);
293  ph->RegisterProcess(new G4CoulombScattering(), particle);
294 
295  } else if (particleName == "kaon+" ||
296  particleName == "kaon-" ) {
297 
298  //G4hMultipleScattering* kmsc = new G4hMultipleScattering();
299  ph->RegisterProcess(kmsc, particle);
300  ph->RegisterProcess(new G4hIonisation(), particle);
301  ph->RegisterProcess(kb, particle);
302  ph->RegisterProcess(kp, particle);
303  ph->RegisterProcess(new G4CoulombScattering(), particle);
304 
305  // } else if (particleName == "proton" ) {
306  } else if (particleName == "proton" ||
307  particleName == "anti_proton") {
308 
309  //G4hMultipleScattering* pmsc = new G4hMultipleScattering();
310  ph->RegisterProcess(pmsc, particle);
311  ph->RegisterProcess(new G4hIonisation(), particle);
312  ph->RegisterProcess(pb, particle);
313  ph->RegisterProcess(pp, particle);
314  ph->RegisterProcess(new G4CoulombScattering(), particle);
315 
316  } else if (particleName == "B+" ||
317  particleName == "B-" ||
318  particleName == "D+" ||
319  particleName == "D-" ||
320  particleName == "Ds+" ||
321  particleName == "Ds-" ||
322  particleName == "anti_He3" ||
323  particleName == "anti_alpha" ||
324  particleName == "anti_deuteron" ||
325  particleName == "anti_lambda_c+" ||
326  particleName == "anti_omega-" ||
327  particleName == "anti_sigma_c+" ||
328  particleName == "anti_sigma_c++" ||
329  particleName == "anti_sigma+" ||
330  particleName == "anti_sigma-" ||
331  particleName == "anti_triton" ||
332  particleName == "anti_xi_c+" ||
333  particleName == "anti_xi-" ||
334  particleName == "deuteron" ||
335  particleName == "lambda_c+" ||
336  particleName == "omega-" ||
337  particleName == "sigma_c+" ||
338  particleName == "sigma_c++" ||
339  particleName == "sigma+" ||
340  particleName == "sigma-" ||
341  particleName == "tau+" ||
342  particleName == "tau-" ||
343  particleName == "triton" ||
344  particleName == "xi_c+" ||
345  particleName == "xi-" ) {
346 
347  ph->RegisterProcess(hmsc, particle);
348  ph->RegisterProcess(new G4hIonisation(), particle);
349  }
350  }
351  G4EmProcessOptions opt;
352  opt.SetVerbose(verbose);
353  opt.SetPolarAngleLimit(CLHEP::pi);
354  opt.SetApplyCuts(true);
355 
356  // Deexcitation
357  //
360 }
static G4LossTableManager * Instance()
void SetStepFunction(G4double v1, G4double v2)
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:683
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
#define aParticleIterator
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
const G4String & GetPhysicsName() const
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:704
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=0)
static G4PhysicsListHelper * GetPhysicsListHelper()
#define G4endl
Definition: G4ios.hh:61
void SetMinKinEnergy(G4double e)
double G4double
Definition: G4Types.hh:76
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:690
void SetAtomDeexcitation(G4VAtomDeexcitation *)
void SetApplyCuts(G4bool val)
void SetStepLimitType(G4MscStepLimitType val)
void SetVerbose(G4int val, const G4String &name="all", G4bool worker=false)
void SetPolarAngleLimit(G4double val)

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