Geant4  10.02.p03
G4EmUserPhysics Class Reference

#include <G4EmUserPhysics.hh>

Inheritance diagram for G4EmUserPhysics:
Collaboration diagram for G4EmUserPhysics:

Public Member Functions

 G4EmUserPhysics (G4int ver=1)
 
virtual ~G4EmUserPhysics ()
 
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
 

Private Attributes

G4int fVerbose
 

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 53 of file G4EmUserPhysics.hh.

Constructor & Destructor Documentation

◆ G4EmUserPhysics()

G4EmUserPhysics::G4EmUserPhysics ( G4int  ver = 1)

Definition at line 56 of file G4EmUserPhysics.cc.

57  : G4VPhysicsConstructor("User EM Options"), fVerbose(ver)
58 {
60 }
static G4LossTableManager * Instance()
G4VPhysicsConstructor(const G4String &="")
Here is the call graph for this function:

◆ ~G4EmUserPhysics()

G4EmUserPhysics::~G4EmUserPhysics ( )
virtual

Definition at line 64 of file G4EmUserPhysics.cc.

65 {}

Member Function Documentation

◆ ConstructParticle()

void G4EmUserPhysics::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 69 of file G4EmUserPhysics.cc.

70 {
72 }
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
Here is the call graph for this function:

◆ ConstructProcess()

void G4EmUserPhysics::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 76 of file G4EmUserPhysics.cc.

77 {
79  G4ProcessManager* pmanager = pbar->GetProcessManager();
80  G4ProcessVector* pv = pmanager->GetProcessList();
81  size_t nn = pv->size();
82  for(size_t i=0; i<nn; ++i) {
83  G4VProcess* proc = (*pv)[i];
84  if(fIonisation == proc->GetProcessSubType()) {
85  G4VEnergyLossProcess* eloss = static_cast<G4VEnergyLossProcess*>(proc);
86  G4double elim = 1.e-6*eV;
87  eloss->SetLowestEnergyLimit(elim);
88  G4cout << "### G4EmUserPhysics::ConstructProcess: "
89  << "set new lowest energy limit " << elim/eV << " eV for "
90  << pbar->GetParticleName() << G4endl;
91  break;
92  }
93  }
94 
96  opt.SetVerbose(fVerbose);
97 }
G4ProcessVector * GetProcessList() const
G4ProcessManager * GetProcessManager() const
G4int GetProcessSubType() const
Definition: G4VProcess.hh:426
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
G4int size() const
void SetVerbose(G4int val)
static const double eV
Definition: G4SIunits.hh:212
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
void SetLowestEnergyLimit(G4double)
Here is the call graph for this function:

Member Data Documentation

◆ fVerbose

G4int G4EmUserPhysics::fVerbose
private

Definition at line 65 of file G4EmUserPhysics.hh.


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