QwGeant4
QweakSimEmLivermorePhysics Class Reference

#include <QweakSimEmLivermorePhysics.hh>

Inherits G4EmLivermorePhysics.

Public Member Functions

 QweakSimEmLivermorePhysics (G4int ver=0)
 
virtual ~QweakSimEmLivermorePhysics ()
 
virtual void ConstructProcess ()
 

Private Attributes

G4int verbose
 

Detailed Description

Definition at line 3 of file QweakSimEmLivermorePhysics.hh.

Constructor & Destructor Documentation

QweakSimEmLivermorePhysics::QweakSimEmLivermorePhysics ( G4int  ver = 0)
inline

Definition at line 6 of file QweakSimEmLivermorePhysics.hh.

6 : G4EmLivermorePhysics(ver),verbose(ver) { };
virtual QweakSimEmLivermorePhysics::~QweakSimEmLivermorePhysics ( )
inlinevirtual

Definition at line 7 of file QweakSimEmLivermorePhysics.hh.

7 { };

Member Function Documentation

void QweakSimEmLivermorePhysics::ConstructProcess ( )
virtual

Definition at line 14 of file QweakSimEmLivermorePhysics.cc.

References verbose.

15 {
16  if(verbose > 1) {
17  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
18  }
19  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
20 
21  // high energy limit for e+- scattering models
22  G4double highEnergyLimit = 100*MeV;
23 
24  // Add standard EM Processes
25  #if G4VERSION_NUMBER >= 1030
26  auto aParticleIterator = GetParticleIterator();
27  #endif
28  aParticleIterator->reset();
29  while( (*aParticleIterator)() ){
30  G4ParticleDefinition* particle = aParticleIterator->value();
31  G4String particleName = particle->GetParticleName();
32 
33  if (particleName == "e-" || particleName == "e+") {
34 
35  G4eMultipleScattering* msc = new G4eMultipleScattering;
38  msc1->SetHighEnergyLimit(highEnergyLimit);
39  msc2->SetLowEnergyLimit(highEnergyLimit);
40  msc->AddEmModel(0, msc1);
41  msc->AddEmModel(0, msc2);
42 
43  ph->RegisterProcess(msc, particle);
44 
45  }
46  }
47 
48  // Fall back
49  G4EmLivermorePhysics::ConstructProcess();
50 }

Field Documentation

G4int QweakSimEmLivermorePhysics::verbose
private

Definition at line 12 of file QweakSimEmLivermorePhysics.hh.

Referenced by ConstructProcess().


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