Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NeutronTrackingCut Class Reference

#include <G4NeutronTrackingCut.hh>

+ Inheritance diagram for G4NeutronTrackingCut:

Public Member Functions

 G4NeutronTrackingCut (G4int ver=0)
 
 G4NeutronTrackingCut (const G4String &name, G4int ver=0)
 
virtual ~G4NeutronTrackingCut ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
void SetTimeLimit (G4double)
 
void SetKineticEnergyLimit (G4double)
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
virtual void ConstructParticle ()=0
 
virtual void ConstructProcess ()=0
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4ParticleTable::G4PTblDicIteratortheParticleIterator
 
G4PhysicsListHelperthePLHelper
 

Detailed Description

Definition at line 46 of file G4NeutronTrackingCut.hh.

Constructor & Destructor Documentation

◆ G4NeutronTrackingCut() [1/2]

G4NeutronTrackingCut::G4NeutronTrackingCut ( G4int  ver = 0)

Definition at line 53 of file G4NeutronTrackingCut.cc.

54 : G4VPhysicsConstructor("neutronTrackingCut")
55 , verbose(ver), wasActivated(false)
56{
57 timeLimit = 10.*microsecond;
58 kineticEnergyLimit = 0.0;
59 pNeutronKiller = 0;
60}

◆ G4NeutronTrackingCut() [2/2]

G4NeutronTrackingCut::G4NeutronTrackingCut ( const G4String name,
G4int  ver = 0 
)

Definition at line 62 of file G4NeutronTrackingCut.cc.

63 : G4VPhysicsConstructor(name), verbose(ver), wasActivated(false)
64{
65 timeLimit = 10.*microsecond;
66 kineticEnergyLimit = 0.0;
67 pNeutronKiller = 0;
68}

◆ ~G4NeutronTrackingCut()

G4NeutronTrackingCut::~G4NeutronTrackingCut ( )
virtual

Definition at line 70 of file G4NeutronTrackingCut.cc.

71{
72 delete pNeutronKiller;
73}

Member Function Documentation

◆ ConstructParticle()

void G4NeutronTrackingCut::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 75 of file G4NeutronTrackingCut.cc.

76{
78}
static G4Neutron * NeutronDefinition()
Definition: G4Neutron.cc:99

◆ ConstructProcess()

void G4NeutronTrackingCut::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 80 of file G4NeutronTrackingCut.cc.

81{
82 if(wasActivated) return;
83 wasActivated = true;
84
85 // Add Process
86
87 pNeutronKiller = new G4NeutronKiller();
89 G4ProcessManager * pmanager = particle->GetProcessManager();
90
91 if(verbose > 0) {
92 G4cout << "### Adding tracking cuts for " << particle->GetParticleName()
93 << " TimeCut(ns)= " << timeLimit/ns
94 << " KinEnergyCut(MeV)= " << kineticEnergyLimit/MeV
95 << G4endl;
96 }
97 pmanager -> AddDiscreteProcess(pNeutronKiller);
98 pNeutronKiller->SetKinEnergyLimit(kineticEnergyLimit);
99 pNeutronKiller->SetTimeLimit(timeLimit);
100}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void SetTimeLimit(G4double)
void SetKinEnergyLimit(G4double)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
#define ns
Definition: xmlparse.cc:597

◆ SetKineticEnergyLimit()

void G4NeutronTrackingCut::SetKineticEnergyLimit ( G4double  val)
inline

Definition at line 81 of file G4NeutronTrackingCut.hh.

82{
83 kineticEnergyLimit = val;
84}

◆ SetTimeLimit()

void G4NeutronTrackingCut::SetTimeLimit ( G4double  val)
inline

Definition at line 76 of file G4NeutronTrackingCut.hh.

77{
78 timeLimit = val;
79}

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