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

#include <G4NeutronKiller.hh>

+ Inheritance diagram for G4NeutronKiller:

Public Member Functions

 G4NeutronKiller (const G4String &processName="nKiller", G4ProcessType aType=fGeneral)
 
virtual ~G4NeutronKiller ()
 
virtual G4bool IsApplicable (const G4ParticleDefinition &)
 
void SetTimeLimit (G4double)
 
void SetKinEnergyLimit (G4double)
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
virtual G4double GetMeanFreePath (const G4Track &, G4double, G4ForceCondition *)
 
- Public Member Functions inherited from G4VDiscreteProcess
 G4VDiscreteProcess (const G4String &aName, G4ProcessType aType=fNotDefined)
 
 G4VDiscreteProcess (G4VDiscreteProcess &)
 
virtual ~G4VDiscreteProcess ()
 
G4VDiscreteProcessoperator= (const G4VDiscreteProcess &)=delete
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &, G4ForceCondition *)
 
virtual G4VParticleChangeAtRestDoIt (const G4Track &, const G4Step &)
 
virtual G4VParticleChangeAlongStepDoIt (const G4Track &, const G4Step &)
 
- Public Member Functions inherited from G4VProcess
 G4VProcess (const G4String &aName="NoName", G4ProcessType aType=fNotDefined)
 
 G4VProcess (const G4VProcess &right)
 
virtual ~G4VProcess ()
 
G4VProcessoperator= (const G4VProcess &)=delete
 
G4bool operator== (const G4VProcess &right) const
 
G4bool operator!= (const G4VProcess &right) const
 
virtual G4VParticleChangePostStepDoIt (const G4Track &track, const G4Step &stepData)=0
 
virtual G4VParticleChangeAlongStepDoIt (const G4Track &track, const G4Step &stepData)=0
 
virtual G4VParticleChangeAtRestDoIt (const G4Track &track, const G4Step &stepData)=0
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection)=0
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &track, G4ForceCondition *condition)=0
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)=0
 
G4double GetCurrentInteractionLength () const
 
void SetPILfactor (G4double value)
 
G4double GetPILfactor () const
 
G4double AlongStepGPIL (const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection)
 
G4double AtRestGPIL (const G4Track &track, G4ForceCondition *condition)
 
G4double PostStepGPIL (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4bool IsApplicable (const G4ParticleDefinition &)
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
virtual void PreparePhysicsTable (const G4ParticleDefinition &)
 
virtual G4bool StorePhysicsTable (const G4ParticleDefinition *, const G4String &, G4bool)
 
virtual G4bool RetrievePhysicsTable (const G4ParticleDefinition *, const G4String &, G4bool)
 
const G4StringGetPhysicsTableFileName (const G4ParticleDefinition *, const G4String &directory, const G4String &tableName, G4bool ascii=false)
 
const G4StringGetProcessName () const
 
G4ProcessType GetProcessType () const
 
void SetProcessType (G4ProcessType)
 
G4int GetProcessSubType () const
 
void SetProcessSubType (G4int)
 
virtual void StartTracking (G4Track *)
 
virtual void EndTracking ()
 
virtual void SetProcessManager (const G4ProcessManager *)
 
virtual const G4ProcessManagerGetProcessManager ()
 
virtual void ResetNumberOfInteractionLengthLeft ()
 
G4double GetNumberOfInteractionLengthLeft () const
 
G4double GetTotalNumberOfInteractionLengthTraversed () const
 
G4bool isAtRestDoItIsEnabled () const
 
G4bool isAlongStepDoItIsEnabled () const
 
G4bool isPostStepDoItIsEnabled () const
 
virtual void DumpInfo () const
 
virtual void ProcessDescription (std::ostream &outfile) const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
virtual void SetMasterProcess (G4VProcess *masterP)
 
const G4VProcessGetMasterProcess () const
 
virtual void BuildWorkerPhysicsTable (const G4ParticleDefinition &part)
 
virtual void PrepareWorkerPhysicsTable (const G4ParticleDefinition &)
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VProcess
static const G4StringGetProcessTypeName (G4ProcessType)
 
virtual G4double GetMeanFreePath (const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)=0
 
- Protected Member Functions inherited from G4VProcess
void SubtractNumberOfInteractionLengthLeft (G4double prevStepSize)
 
void ClearNumberOfInteractionLengthLeft ()
 
- Protected Attributes inherited from G4VProcess
const G4ProcessManageraProcessManager = nullptr
 
G4VParticleChangepParticleChange = nullptr
 
G4ParticleChange aParticleChange
 
G4double theNumberOfInteractionLengthLeft = -1.0
 
G4double currentInteractionLength = -1.0
 
G4double theInitialNumberOfInteractionLength = -1.0
 
G4String theProcessName
 
G4String thePhysicsTableFileName
 
G4ProcessType theProcessType = fNotDefined
 
G4int theProcessSubType = -1
 
G4double thePILfactor = 1.0
 
G4int verboseLevel = 0
 
G4bool enableAtRestDoIt = true
 
G4bool enableAlongStepDoIt = true
 
G4bool enablePostStepDoIt = true
 

Detailed Description

Definition at line 68 of file G4NeutronKiller.hh.

Constructor & Destructor Documentation

◆ G4NeutronKiller()

G4NeutronKiller::G4NeutronKiller ( const G4String processName = "nKiller",
G4ProcessType  aType = fGeneral 
)

Definition at line 48 of file G4NeutronKiller.cc.

49 : G4VDiscreteProcess(processName, aType)
50{
51 // set Process Sub Type
53
54 kinEnergyThreshold = 0.0;
55 timeThreshold = DBL_MAX;
56 pMess = new G4NeutronKillerMessenger(this);
57}
void SetProcessSubType(G4int)
Definition: G4VProcess.hh:406
#define DBL_MAX
Definition: templates.hh:62

◆ ~G4NeutronKiller()

G4NeutronKiller::~G4NeutronKiller ( )
virtual

Definition at line 61 of file G4NeutronKiller.cc.

62{
63 delete pMess;
64}

Member Function Documentation

◆ GetMeanFreePath()

G4double G4NeutronKiller::GetMeanFreePath ( const G4Track ,
G4double  ,
G4ForceCondition  
)
virtual

Implements G4VDiscreteProcess.

Definition at line 108 of file G4NeutronKiller.cc.

110{
111 return DBL_MAX;
112}

◆ IsApplicable()

G4bool G4NeutronKiller::IsApplicable ( const G4ParticleDefinition particle)
virtual

Reimplemented from G4VProcess.

Definition at line 68 of file G4NeutronKiller.cc.

69{
70 return (particle.GetParticleName() == "neutron");
71}
const G4String & GetParticleName() const

◆ PostStepDoIt()

G4VParticleChange * G4NeutronKiller::PostStepDoIt ( const G4Track aTrack,
const G4Step  
)
virtual

Reimplemented from G4VDiscreteProcess.

Definition at line 116 of file G4NeutronKiller.cc.

118{
121 return pParticleChange;
122}
@ fStopAndKill
void ProposeTrackStatus(G4TrackStatus status)
virtual void Initialize(const G4Track &)
G4VParticleChange * pParticleChange
Definition: G4VProcess.hh:321

◆ PostStepGetPhysicalInteractionLength()

G4double G4NeutronKiller::PostStepGetPhysicalInteractionLength ( const G4Track track,
G4double  previousStepSize,
G4ForceCondition condition 
)
virtual

Reimplemented from G4VDiscreteProcess.

Definition at line 95 of file G4NeutronKiller.cc.

98{
99 // condition is set to "Not Forced"
101
102 return (aTrack.GetGlobalTime() > timeThreshold ||
103 aTrack.GetKineticEnergy() < kinEnergyThreshold) ? 0.0 : DBL_MAX;
104}
G4double condition(const G4ErrorSymMatrix &m)
@ NotForced

◆ SetKinEnergyLimit()

void G4NeutronKiller::SetKinEnergyLimit ( G4double  val)

Definition at line 85 of file G4NeutronKiller.cc.

86{
87 kinEnergyThreshold = val;
88 if(verboseLevel > 0)
89 G4cout << "### G4NeutronKiller: Tracking cut E(MeV) = "
90 << kinEnergyThreshold/MeV << G4endl;
91}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
G4int verboseLevel
Definition: G4VProcess.hh:356

Referenced by G4NeutronTrackingCut::ConstructProcess(), and G4NeutronKillerMessenger::SetNewValue().

◆ SetTimeLimit()

void G4NeutronKiller::SetTimeLimit ( G4double  val)

Definition at line 75 of file G4NeutronKiller.cc.

76{
77 timeThreshold = val;
78 if(verboseLevel > 0)
79 G4cout << "### G4NeutronKiller: timeLimit(ns) = "
80 << timeThreshold/ns << G4endl;
81}
#define ns
Definition: xmlparse.cc:614

Referenced by G4NeutronTrackingCut::ConstructProcess(), and G4NeutronKillerMessenger::SetNewValue().


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