Geant4 11.1.1
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 &)
 
void BuildPhysicsTable (const G4ParticleDefinition &) override
 
G4bool IsApplicable (const G4ParticleDefinition &) override
 
G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double, G4ForceCondition *) override
 
G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &) override
 
 G4LowECapture (const G4LowECapture &)=delete
 
G4LowECaptureoperator= (const G4LowECapture &right)=delete
 
- 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 &)
 
virtual G4double GetCrossSection (const G4double, const G4MaterialCutsCouple *)
 
virtual G4double MinPrimaryEnergy (const G4ParticleDefinition *, const G4Material *)
 
- 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 const G4VProcessGetCreatorProcess () const
 
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

G4double GetMeanFreePath (const G4Track &, G4double, G4ForceCondition *) override
 
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() [1/2]

G4LowECapture::G4LowECapture ( G4double  ekinlimit = 0.0)
explicit

Definition at line 48 of file G4LowECapture.cc.

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

◆ ~G4LowECapture()

G4LowECapture::~G4LowECapture ( )
virtual

Definition at line 55 of file G4LowECapture.cc.

56{}

◆ G4LowECapture() [2/2]

G4LowECapture::G4LowECapture ( const G4LowECapture )
delete

Member Function Documentation

◆ AddRegion()

void G4LowECapture::AddRegion ( const G4String nam)

Definition at line 71 of file G4LowECapture.cc.

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

◆ BuildPhysicsTable()

void G4LowECapture::BuildPhysicsTable ( const G4ParticleDefinition part)
overridevirtual

Reimplemented from G4VProcess.

Definition at line 87 of file G4LowECapture.cc.

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

Implements G4VDiscreteProcess.

Definition at line 151 of file G4LowECapture.cc.

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

◆ IsApplicable()

G4bool G4LowECapture::IsApplicable ( const G4ParticleDefinition )
overridevirtual

Reimplemented from G4VProcess.

Definition at line 113 of file G4LowECapture.cc.

114{
115 return true;
116}

◆ operator=()

G4LowECapture & G4LowECapture::operator= ( const G4LowECapture right)
delete

◆ PostStepDoIt()

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

Reimplemented from G4VDiscreteProcess.

Definition at line 140 of file G4LowECapture.cc.

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

◆ PostStepGetPhysicalInteractionLength()

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

Reimplemented from G4VDiscreteProcess.

Definition at line 118 of file G4LowECapture.cc.

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

◆ SetKinEnergyLimit()

void G4LowECapture::SetKinEnergyLimit ( G4double  val)

Definition at line 60 of file G4LowECapture.cc.

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

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