Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
g4n::NeutronSubstitutionPhysics Class Reference

Registers NeutronSubstitutionProcess. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/g4nova/NeutronSubstitutionPhysics.h"

Inheritance diagram for g4n::NeutronSubstitutionPhysics:

Public Member Functions

 NeutronSubstitutionPhysics (const G4String &name="NeutronSubstitution")
 
 ~NeutronSubstitutionPhysics ()
 
virtual void ConstructParticle () override
 
virtual void ConstructProcess () override
 

Static Public Member Functions

static void SetMinKE (double x)
 
static void SetMaxKE (double x)
 
static void SetFatesFile (const std::string &s)
 

Protected Attributes

G4VDiscreteProcess * fProc
 

Static Protected Attributes

static double fgMinKE = -1
 
static double fgMaxKE = -1
 
static std::string fgFilename
 

Detailed Description

Registers NeutronSubstitutionProcess.

Definition at line 18 of file NeutronSubstitutionPhysics.h.

Constructor & Destructor Documentation

g4n::NeutronSubstitutionPhysics::NeutronSubstitutionPhysics ( const G4String &  name = "NeutronSubstitution")

Definition at line 26 of file NeutronSubstitutionPhysics.cxx.

27  : G4VPhysicsConstructor(name), fProc(0)
28  {
29  }
const XML_Char * name
Definition: expat.h:151
g4n::NeutronSubstitutionPhysics::~NeutronSubstitutionPhysics ( )

Definition at line 32 of file NeutronSubstitutionPhysics.cxx.

References fProc.

33  {
34  delete fProc;
35  }

Member Function Documentation

void g4n::NeutronSubstitutionPhysics::ConstructParticle ( )
overridevirtual

Definition at line 38 of file NeutronSubstitutionPhysics.cxx.

39  {
40  // Make sure neutrons exist (probably not necessary?)
41  G4Neutron::NeutronDefinition();
42  }
void g4n::NeutronSubstitutionPhysics::ConstructProcess ( )
overridevirtual

Definition at line 45 of file NeutronSubstitutionPhysics.cxx.

References fgFilename, fgMaxKE, fgMinKE, fProc, and g4n::NeutronSubstitutionProcess::NeutronSubstitutionProcess().

46  {
47  if(fProc) return; // already constructed
48 
49  fProc = new NeutronSubstitutionProcess(fgMinKE, fgMaxKE, fgFilename);
50 
51  // These final three numbers are ordering parameters whose significance I
52  // don't fully understand, but because we're defining a "decay" process,
53  // only the last (post-step) should be set.
54  G4Neutron::Definition()->GetProcessManager()->AddProcess(fProc, -1, -1, 0);
55  }
static void g4n::NeutronSubstitutionPhysics::SetFatesFile ( const std::string s)
inlinestatic

Definition at line 29 of file NeutronSubstitutionPhysics.h.

Referenced by g4n::G4Alg::G4Alg().

29 {fgFilename = s;}
const XML_Char * s
Definition: expat.h:262
static void g4n::NeutronSubstitutionPhysics::SetMaxKE ( double  x)
inlinestatic

Definition at line 28 of file NeutronSubstitutionPhysics.h.

References submit_syst::x.

Referenced by g4n::G4Alg::G4Alg().

static void g4n::NeutronSubstitutionPhysics::SetMinKE ( double  x)
inlinestatic

Definition at line 27 of file NeutronSubstitutionPhysics.h.

References submit_syst::x.

Referenced by g4n::G4Alg::G4Alg().

Member Data Documentation

std::string g4n::NeutronSubstitutionPhysics::fgFilename
staticprotected

Definition at line 32 of file NeutronSubstitutionPhysics.h.

Referenced by ConstructProcess().

double g4n::NeutronSubstitutionPhysics::fgMaxKE = -1
staticprotected

Definition at line 31 of file NeutronSubstitutionPhysics.h.

Referenced by ConstructProcess().

double g4n::NeutronSubstitutionPhysics::fgMinKE = -1
staticprotected

Definition at line 31 of file NeutronSubstitutionPhysics.h.

Referenced by ConstructProcess().

G4VDiscreteProcess* g4n::NeutronSubstitutionPhysics::fProc
protected

Definition at line 34 of file NeutronSubstitutionPhysics.h.

Referenced by ConstructProcess(), and ~NeutronSubstitutionPhysics().


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