Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VITRestDiscreteProcess Class Referenceabstract

Identical to G4VRestDiscreteProcess with dependency from G4VITProcess. More...

#include <G4VITRestDiscreteProcess.hh>

+ Inheritance diagram for G4VITRestDiscreteProcess:

Public Member Functions

 G4VITRestDiscreteProcess ()=delete
 
 G4VITRestDiscreteProcess (const G4String &, G4ProcessType aType=fNotDefined)
 
 G4VITRestDiscreteProcess (const G4VITRestDiscreteProcess &)=delete
 
G4VITRestDiscreteProcessoperator= (const G4VITRestDiscreteProcess &right)=delete
 
 ~G4VITRestDiscreteProcess () override
 
G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
 
G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &) override
 
G4double AtRestGetPhysicalInteractionLength (const G4Track &, G4ForceCondition *) override
 
G4VParticleChangeAtRestDoIt (const G4Track &, const G4Step &) override
 
G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double, G4double, G4double &, G4GPILSelection *) override
 
G4VParticleChangeAlongStepDoIt (const G4Track &, const G4Step &) override
 
- Public Member Functions inherited from G4VITProcess
 G4VITProcess (const G4String &name, G4ProcessType type=fNotDefined)
 
 ~G4VITProcess () override
 
 G4VITProcess (const G4VITProcess &other)
 
G4VITProcessoperator= (const G4VITProcess &other)
 
G4bool operator== (const G4VITProcess &right) const
 
G4bool operator!= (const G4VITProcess &right) const
 
size_t GetProcessID () const
 
G4shared_ptr< G4ProcessState_LockGetProcessState ()
 
void SetProcessState (G4shared_ptr< G4ProcessState_Lock > aProcInfo)
 
void ResetProcessState ()
 
void StartTracking (G4Track *) override
 
void BuildPhysicsTable (const G4ParticleDefinition &) override
 
G4double GetInteractionTimeLeft ()
 
void ResetNumberOfInteractionLengthLeft () override
 
G4bool ProposesTimeStep () const
 
- 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
 
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 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 EndTracking ()
 
virtual void SetProcessManager (const G4ProcessManager *)
 
virtual const G4ProcessManagerGetProcessManager ()
 
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 &aTrack, G4double previousStepSize, G4ForceCondition *condition)=0
 
virtual G4double GetMeanLifeTime (const G4Track &aTrack, G4ForceCondition *condition)=0
 
- Protected Member Functions inherited from G4VITProcess
void RetrieveProcessInfo ()
 
void CreateInfo ()
 
template<typename T >
T * GetState ()
 
virtual void SubtractNumberOfInteractionLengthLeft (G4double previousStepSize)
 
virtual void ClearInteractionTimeLeft ()
 
virtual void ClearNumberOfInteractionLengthLeft ()
 
void SetInstantiateProcessState (G4bool flag)
 
G4bool InstantiateProcessState ()
 
- Protected Member Functions inherited from G4VProcess
void SubtractNumberOfInteractionLengthLeft (G4double prevStepSize)
 
void ClearNumberOfInteractionLengthLeft ()
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VITProcess
static const size_t & GetMaxProcessIndex ()
 
- Static Public Member Functions inherited from G4VProcess
static const G4StringGetProcessTypeName (G4ProcessType)
 
- Protected Attributes inherited from G4VITProcess
G4shared_ptr< G4ProcessStatefpState
 
G4bool fProposesTimeStep
 
- 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

Identical to G4VRestDiscreteProcess with dependency from G4VITProcess.

Identical to G4VRestDiscreteProcess with dependency on G4VITProcess

Definition at line 56 of file G4VITRestDiscreteProcess.hh.

Constructor & Destructor Documentation

◆ G4VITRestDiscreteProcess() [1/3]

G4VITRestDiscreteProcess::G4VITRestDiscreteProcess ( )
delete

◆ G4VITRestDiscreteProcess() [2/3]

G4VITRestDiscreteProcess::G4VITRestDiscreteProcess ( const G4String & aName,
G4ProcessType aType = fNotDefined )

Definition at line 37 of file G4VITRestDiscreteProcess.cc.

39 : G4VITProcess(aName, aType)
40{
41 enableAlongStepDoIt = false;
42}
G4VITProcess(const G4String &name, G4ProcessType type=fNotDefined)
G4bool enableAlongStepDoIt

◆ G4VITRestDiscreteProcess() [3/3]

G4VITRestDiscreteProcess::G4VITRestDiscreteProcess ( const G4VITRestDiscreteProcess & )
delete

◆ ~G4VITRestDiscreteProcess()

G4VITRestDiscreteProcess::~G4VITRestDiscreteProcess ( )
overridedefault

Member Function Documentation

◆ AlongStepDoIt()

G4VParticleChange * G4VITRestDiscreteProcess::AlongStepDoIt ( const G4Track & ,
const G4Step &  )
inlineoverridevirtual

Implements G4VProcess.

Definition at line 92 of file G4VITRestDiscreteProcess.hh.

93 {
94 return nullptr;
95 }

◆ AlongStepGetPhysicalInteractionLength()

G4double G4VITRestDiscreteProcess::AlongStepGetPhysicalInteractionLength ( const G4Track & ,
G4double ,
G4double ,
G4double & ,
G4GPILSelection *  )
inlineoverridevirtual

Implements G4VProcess.

Definition at line 82 of file G4VITRestDiscreteProcess.hh.

87 {
88 return -1.0;
89 }

◆ AtRestDoIt()

G4VParticleChange * G4VITRestDiscreteProcess::AtRestDoIt ( const G4Track & ,
const G4Step &  )
overridevirtual

Implements G4VProcess.

Definition at line 134 of file G4VITRestDiscreteProcess.cc.

136{
137// clear NumberOfInteractionLengthLeft
139
140 return pParticleChange;
141}
virtual void ClearNumberOfInteractionLengthLeft()
G4VParticleChange * pParticleChange

◆ AtRestGetPhysicalInteractionLength()

G4double G4VITRestDiscreteProcess::AtRestGetPhysicalInteractionLength ( const G4Track & track,
G4ForceCondition * condition )
overridevirtual

Implements G4VProcess.

Definition at line 106 of file G4VITRestDiscreteProcess.cc.

108{
109 // beggining of tracking
111
112 // condition is set to "Not Forced"
114
115 // get mean life time
116 fpState->currentInteractionLength = GetMeanLifeTime(track, condition);
117
118#ifdef G4VERBOSE
119 if ((fpState->currentInteractionLength < 0.0) || (verboseLevel > 2))
120 {
121 G4cout << "G4VITRestDiscreteProcess::AtRestGetPhysicalInteractionLength ";
122 G4cout << "[ " << GetProcessName() << "]" << G4endl;
123 track.GetDynamicParticle()->DumpInfo();
124 G4cout << " in Material " << track.GetMaterial()->GetName() << G4endl;
125 G4cout << "MeanLifeTime = " << fpState->currentInteractionLength / CLHEP::ns
126 << "[ns]" << G4endl;
127 }
128#endif
129
130 return fpState->theNumberOfInteractionLengthLeft
131 * (fpState->currentInteractionLength);
132}
G4double condition(const G4ErrorSymMatrix &m)
@ NotForced
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
void DumpInfo(G4int mode=0) const
const G4String & GetName() const
G4Material * GetMaterial() const
const G4DynamicParticle * GetDynamicParticle() const
G4shared_ptr< G4ProcessState > fpState
void ResetNumberOfInteractionLengthLeft() override
virtual G4double GetMeanLifeTime(const G4Track &aTrack, G4ForceCondition *condition)=0
G4int verboseLevel
const G4String & GetProcessName() const

Referenced by G4DNAMolecularDissociation::AtRestGetPhysicalInteractionLength().

◆ GetMeanFreePath()

virtual G4double G4VITRestDiscreteProcess::GetMeanFreePath ( const G4Track & aTrack,
G4double previousStepSize,
G4ForceCondition * condition )
protectedpure virtual

◆ GetMeanLifeTime()

virtual G4double G4VITRestDiscreteProcess::GetMeanLifeTime ( const G4Track & aTrack,
G4ForceCondition * condition )
protectedpure virtual

◆ operator=()

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

◆ PostStepDoIt()

G4VParticleChange * G4VITRestDiscreteProcess::PostStepDoIt ( const G4Track & ,
const G4Step &  )
overridevirtual

Implements G4VProcess.

Definition at line 97 of file G4VITRestDiscreteProcess.cc.

99{
100// reset NumberOfInteractionLengthLeft
102
103 return pParticleChange;
104}

◆ PostStepGetPhysicalInteractionLength()

G4double G4VITRestDiscreteProcess::PostStepGetPhysicalInteractionLength ( const G4Track & track,
G4double previousStepSize,
G4ForceCondition * condition )
overridevirtual

Implements G4VProcess.

Definition at line 46 of file G4VITRestDiscreteProcess.cc.

49{
50 if ((previousStepSize < 0.0) || (fpState->theNumberOfInteractionLengthLeft
51 <= 0.0))
52 {
53 // beggining of tracking (or just after DoIt of this process)
55 }
56 else if (previousStepSize > 0.0)
57 {
58 // subtract NumberOfInteractionLengthLeft
60 }
61 else
62 {
63 // zero step
64 // DO NOTHING
65 }
66
67 // condition is set to "Not Forced"
69
70 // get mean free path
71 fpState->currentInteractionLength = GetMeanFreePath(track,
72 previousStepSize,
73 condition);
74
75 G4double value;
76 if (fpState->currentInteractionLength < DBL_MAX)
77 {
78 value = fpState->theNumberOfInteractionLengthLeft * (fpState->currentInteractionLength);
79 }
80 else
81 {
82 value = DBL_MAX;
83 }
84#ifdef G4VERBOSE
85 if (verboseLevel > 1)
86 {
87 G4cout << "G4VITRestDiscreteProcess::PostStepGetPhysicalInteractionLength ";
88 G4cout << "[ " << GetProcessName() << "]" << G4endl;
90 G4cout << " in Material " << track.GetMaterial()->GetName() << G4endl;
91 G4cout << "InteractionLength= " << value / CLHEP::cm << "[cm] " << G4endl;
92 }
93#endif
94 return value;
95}
double G4double
Definition G4Types.hh:83
virtual void SubtractNumberOfInteractionLengthLeft(G4double previousStepSize)
virtual G4double GetMeanFreePath(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)=0
#define DBL_MAX
Definition templates.hh:62

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