Geant4 10.7.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
 
G4int GetInstanceID () const
 
virtual void TerminateWorker ()
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Types inherited from G4VPhysicsConstructor
using PhysicsBuilder_V = G4VPCData::PhysicsBuilders_V
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
PhysicsBuilder_V GetBuilders () const
 
void AddBuilder (G4PhysicsBuilderInterface *bld)
 
- 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 45 of file G4NeutronTrackingCut.hh.

Constructor & Destructor Documentation

◆ G4NeutronTrackingCut() [1/2]

G4NeutronTrackingCut::G4NeutronTrackingCut ( G4int  ver = 0)

Definition at line 56 of file G4NeutronTrackingCut.cc.

57 : G4VPhysicsConstructor("neutronTrackingCut"), verbose(ver)
58{
59 timeLimit = 10.*microsecond;
60 kineticEnergyLimit = 0.0;
62}
@ bUnknown

◆ G4NeutronTrackingCut() [2/2]

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

◆ ~G4NeutronTrackingCut()

G4NeutronTrackingCut::~G4NeutronTrackingCut ( )
virtual

Definition at line 68 of file G4NeutronTrackingCut.cc.

69{}

Member Function Documentation

◆ ConstructParticle()

void G4NeutronTrackingCut::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 71 of file G4NeutronTrackingCut.cc.

72{
74}
static G4Neutron * NeutronDefinition()
Definition: G4Neutron.cc:98

◆ ConstructProcess()

void G4NeutronTrackingCut::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 76 of file G4NeutronTrackingCut.cc.

77{
78 G4NeutronKiller* pNeutronKiller = new G4NeutronKiller();
80 G4ProcessManager * pmanager = particle->GetProcessManager();
81
82 if(verbose > 0 && G4Threading::IsMasterThread()) {
83 G4String pn = particle->GetParticleName();//Avoid data-race when passing
84 //this string to G4MTcout
85 G4cout << "### Adding tracking cuts for " << pn
86 << " TimeCut(ns)= " << timeLimit/ns
87 << " KinEnergyCut(MeV)= " << kineticEnergyLimit/MeV
88 << G4endl;
89 }
90 pmanager -> AddDiscreteProcess(pNeutronKiller);
91 pNeutronKiller->SetKinEnergyLimit(kineticEnergyLimit);
92 pNeutronKiller->SetTimeLimit(timeLimit);
93
96}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
void RegisterExtraProcess(G4VProcess *)
void RegisterParticleForExtraProcess(G4VProcess *, const G4ParticleDefinition *)
static G4HadronicProcessStore * Instance()
void SetTimeLimit(G4double)
void SetKinEnergyLimit(G4double)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:103
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4bool IsMasterThread()
Definition: G4Threading.cc:124
#define ns
Definition: xmlparse.cc:614

◆ SetKineticEnergyLimit()

void G4NeutronTrackingCut::SetKineticEnergyLimit ( G4double  val)
inline

Definition at line 77 of file G4NeutronTrackingCut.hh.

78{
79 kineticEnergyLimit = val;
80}

◆ SetTimeLimit()

void G4NeutronTrackingCut::SetTimeLimit ( G4double  val)
inline

Definition at line 72 of file G4NeutronTrackingCut.hh.

73{
74 timeLimit = val;
75}

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