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

#include <G4LowECapture.hh>

+ Inheritance diagram for G4LowECapture:

Public Member Functions

 G4LowECapture (G4double ekinlimit=0.0)
 
virtual ~G4LowECapture ()
 
void SetKinEnergyLimit (G4double)
 
void AddRegion (const G4String &)
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
virtual G4bool IsApplicable (const G4ParticleDefinition &)
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double, G4ForceCondition *)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
- 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 &)
 

Protected Member Functions

virtual G4double GetMeanFreePath (const G4Track &, G4double, G4ForceCondition *)
 
virtual G4double GetMeanFreePath (const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)=0
 
- Protected Member Functions inherited from G4VProcess
void SubtractNumberOfInteractionLengthLeft (G4double prevStepSize)
 
void ClearNumberOfInteractionLengthLeft ()
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VProcess
static const G4StringGetProcessTypeName (G4ProcessType)
 
- 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 62 of file G4LowECapture.hh.

Constructor & Destructor Documentation

◆ G4LowECapture()

G4LowECapture::G4LowECapture ( G4double  ekinlimit = 0.0)

Definition at line 48 of file G4LowECapture.cc.

50 kinEnergyThreshold(ekinlim), isIon(false),
51 nRegions(0)
52{}
@ fElectromagnetic

◆ ~G4LowECapture()

G4LowECapture::~G4LowECapture ( )
virtual

Definition at line 56 of file G4LowECapture.cc.

57{}

Member Function Documentation

◆ AddRegion()

void G4LowECapture::AddRegion ( const G4String nam)

Definition at line 72 of file G4LowECapture.cc.

73{
74 G4String r = nam;
75 if(r == "" || r == "world" || r == "World") r = "DefaultRegionForTheWorld";
76 for(G4int i=0; i<nRegions; ++i) {
77 if(regionName[i] == r) { return; }
78 }
79 regionName.push_back(r);
80 ++nRegions;
81 if(verboseLevel > 1) {
82 G4cout << "### G4LowECapture: new G4Region <" << r << ">" << G4endl;
83 }
84}
int G4int
Definition: G4Types.hh:85
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
G4int verboseLevel
Definition: G4VProcess.hh:356

◆ BuildPhysicsTable()

void G4LowECapture::BuildPhysicsTable ( const G4ParticleDefinition part)
virtual

Reimplemented from G4VProcess.

Definition at line 88 of file G4LowECapture.cc.

89{
91 for(G4int i=0; i<nRegions; ++i) {
92 const G4Region* r = store->GetRegion(regionName[i]);
93 if(r && verboseLevel > 0) {
94 G4cout << "### G4LowECapture: new G4Region <"
95 << regionName[i] << "> with tracking cut "
96 << kinEnergyThreshold/keV << " keV" << G4endl;
97 }
98 if(r) { region.push_back(r); }
99 }
100 nRegions = region.size();
101
102 // ions reusing G4GenericIon parameters
103 if(part.GetParticleType() == "nucleus") {
104 G4String pname = part.GetParticleName();
105 if(pname != "deuteron" && pname != "triton" &&
106 pname != "alpha" && pname != "He3" &&
107 pname != "alpha+" && pname != "helium" &&
108 pname != "hydrogen") { isIon = true; }
109 }
110}
const G4String & GetParticleType() const
const G4String & GetParticleName() const
static G4RegionStore * GetInstance()
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const

◆ GetMeanFreePath()

G4double G4LowECapture::GetMeanFreePath ( const G4Track ,
G4double  ,
G4ForceCondition  
)
protectedvirtual

Implements G4VDiscreteProcess.

Definition at line 152 of file G4LowECapture.cc.

154{
155 return DBL_MAX;
156}
#define DBL_MAX
Definition: templates.hh:62

◆ IsApplicable()

G4bool G4LowECapture::IsApplicable ( const G4ParticleDefinition )
virtual

Reimplemented from G4VProcess.

Definition at line 114 of file G4LowECapture.cc.

115{
116 return true;
117}

◆ PostStepDoIt()

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

Reimplemented from G4VDiscreteProcess.

Definition at line 141 of file G4LowECapture.cc.

143{
147 return pParticleChange;
148}
@ fStopAndKill
G4double GetKineticEnergy() const
void ProposeTrackStatus(G4TrackStatus status)
virtual void Initialize(const G4Track &)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
G4VParticleChange * pParticleChange
Definition: G4VProcess.hh:321

◆ PostStepGetPhysicalInteractionLength()

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

Reimplemented from G4VDiscreteProcess.

Definition at line 119 of file G4LowECapture.cc.

121{
123 G4double limit = DBL_MAX;
124 G4double eLimit = kinEnergyThreshold;
125 if(isIon) {
126 eLimit *= aTrack.GetDefinition()->GetPDGMass()/CLHEP::proton_mass_c2;
127 }
128 if(aTrack.GetKineticEnergy() < eLimit) {
129 for(G4int i=0; i<nRegions; ++i) {
130 if(aTrack.GetVolume()->GetLogicalVolume()->GetRegion() == region[i]) {
131 limit = 0.0;
132 break;
133 }
134 }
135 }
136 return limit;
137}
G4double condition(const G4ErrorSymMatrix &m)
@ NotForced
double G4double
Definition: G4Types.hh:83

◆ SetKinEnergyLimit()

void G4LowECapture::SetKinEnergyLimit ( G4double  val)

Definition at line 61 of file G4LowECapture.cc.

62{
63 kinEnergyThreshold = val;
64 if(verboseLevel > 0) {
65 G4cout << "### G4LowECapture: Tracking cut E(MeV) = "
66 << kinEnergyThreshold/MeV << G4endl;
67 }
68}

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