Geant4 9.6.0
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 (const G4String &, G4ProcessType aType=fNotDefined)
 
 G4VITRestDiscreteProcess (G4VITRestDiscreteProcess &)
 
virtual ~G4VITRestDiscreteProcess ()
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &, G4ForceCondition *)
 
virtual G4VParticleChangeAtRestDoIt (const G4Track &, const G4Step &)
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
 
virtual G4VParticleChangeAlongStepDoIt (const G4Track &, const G4Step &)
 
- Public Member Functions inherited from G4VITProcess
 G4VITProcess (const G4String &name, G4ProcessType type=fNotDefined)
 
virtual ~G4VITProcess ()
 
 G4VITProcess (const G4VITProcess &other)
 
G4VITProcessoperator= (const G4VITProcess &other)
 
G4int operator== (const G4VITProcess &right) const
 
G4int operator!= (const G4VITProcess &right) const
 
size_t GetProcessID () const
 
G4ProcessState_LockGetProcessState ()
 
void SetProcessState (G4ProcessState_Lock *aProcInfo)
 
virtual void StartTracking (G4Track *)
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
G4double GetInteractionTimeLeft ()
 
virtual void ResetNumberOfInteractionLengthLeft ()
 
G4bool ProposesTimeStep () const
 
- Public Member Functions inherited from G4VProcess
 G4VProcess (const G4String &aName="NoName", G4ProcessType aType=fNotDefined)
 
 G4VProcess (const G4VProcess &right)
 
virtual ~G4VProcess ()
 
G4int operator== (const G4VProcess &right) const
 
G4int 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
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

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 ()
 
virtual void ClearInteractionTimeLeft ()
 
virtual void SubtractNumberOfInteractionLengthLeft (G4double previousStepSize)
 
virtual void ClearNumberOfInteractionLengthLeft ()
 
void SetInstantiateProcessState (G4bool flag)
 
G4bool InstantiateProcessState ()
 
- Protected Member Functions inherited from G4VProcess
void SubtractNumberOfInteractionLengthLeft (G4double previousStepSize)
 
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
G4ProcessStatefpState
 
G4bool fProposesTimeStep
 
- Protected Attributes inherited from G4VProcess
const G4ProcessManageraProcessManager
 
G4VParticleChangepParticleChange
 
G4ParticleChange aParticleChange
 
G4double theNumberOfInteractionLengthLeft
 
G4double currentInteractionLength
 
G4double theInitialNumberOfInteractionLength
 
G4String theProcessName
 
G4String thePhysicsTableFileName
 
G4ProcessType theProcessType
 
G4int theProcessSubType
 
G4double thePILfactor
 
G4bool enableAtRestDoIt
 
G4bool enableAlongStepDoIt
 
G4bool enablePostStepDoIt
 
G4int verboseLevel
 

Detailed Description

Identical to G4VRestDiscreteProcess with dependency from G4VITProcess.

Identical to G4VRestDiscreteProcess with dependency from G4VITProcess

Definition at line 52 of file G4VITRestDiscreteProcess.hh.

Constructor & Destructor Documentation

◆ G4VITRestDiscreteProcess() [1/2]

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

Definition at line 45 of file G4VITRestDiscreteProcess.cc.

46 : G4VITProcess(aName, aType)
47{
48 enableAlongStepDoIt = false;
49}
G4bool enableAlongStepDoIt
Definition: G4VProcess.hh:351

Referenced by G4VITRestDiscreteProcess().

◆ G4VITRestDiscreteProcess() [2/2]

G4VITRestDiscreteProcess::G4VITRestDiscreteProcess ( G4VITRestDiscreteProcess right)

Definition at line 55 of file G4VITRestDiscreteProcess.cc.

56 : G4VITProcess(right)
57{
58}

◆ ~G4VITRestDiscreteProcess()

G4VITRestDiscreteProcess::~G4VITRestDiscreteProcess ( )
virtual

Definition at line 51 of file G4VITRestDiscreteProcess.cc.

52{
53}

Member Function Documentation

◆ AlongStepDoIt()

virtual G4VParticleChange * G4VITRestDiscreteProcess::AlongStepDoIt ( const G4Track ,
const G4Step  
)
inlinevirtual

Implements G4VProcess.

Definition at line 96 of file G4VITRestDiscreteProcess.hh.

99 {return 0;}

◆ AlongStepGetPhysicalInteractionLength()

virtual G4double G4VITRestDiscreteProcess::AlongStepGetPhysicalInteractionLength ( const G4Track ,
G4double  ,
G4double  ,
G4double ,
G4GPILSelection  
)
inlinevirtual

Implements G4VProcess.

Definition at line 87 of file G4VITRestDiscreteProcess.hh.

93 { return -1.0; }

◆ AtRestDoIt()

G4VParticleChange * G4VITRestDiscreteProcess::AtRestDoIt ( const G4Track ,
const G4Step  
)
inlinevirtual

Implements G4VProcess.

Definition at line 207 of file G4VITRestDiscreteProcess.hh.

211{
212// clear NumberOfInteractionLengthLeft
214
215 return pParticleChange;
216}
virtual void ClearNumberOfInteractionLengthLeft()
G4VParticleChange * pParticleChange
Definition: G4VProcess.hh:283

◆ AtRestGetPhysicalInteractionLength()

G4double G4VITRestDiscreteProcess::AtRestGetPhysicalInteractionLength ( const G4Track track,
G4ForceCondition condition 
)
inlinevirtual

Implements G4VProcess.

Definition at line 179 of file G4VITRestDiscreteProcess.hh.

183{
184 // beggining of tracking
186
187 // condition is set to "Not Forced"
189
190 // get mean life time
192
193#ifdef G4VERBOSE
195 G4cout << "G4VITRestDiscreteProcess::AtRestGetPhysicalInteractionLength ";
196 G4cout << "[ " << GetProcessName() << "]" <<G4endl;
197 track.GetDynamicParticle()->DumpInfo();
198 G4cout << " in Material " << track.GetMaterial()->GetName() <<G4endl;
199 G4cout << "MeanLifeTime = " << fpState->currentInteractionLength/CLHEP::ns << "[ns]" <<G4endl;
200 }
201#endif
202
204}
G4double condition(const G4ErrorSymMatrix &m)
@ NotForced
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void DumpInfo(G4int mode=0) const
const G4String & GetName() const
Definition: G4Material.hh:177
G4Material * GetMaterial() const
const G4DynamicParticle * GetDynamicParticle() const
G4ProcessState * fpState
virtual void ResetNumberOfInteractionLengthLeft()
virtual G4double GetMeanLifeTime(const G4Track &aTrack, G4ForceCondition *condition)=0
G4int verboseLevel
Definition: G4VProcess.hh:368
const G4String & GetProcessName() const
Definition: G4VProcess.hh:379

◆ 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

◆ PostStepDoIt()

G4VParticleChange * G4VITRestDiscreteProcess::PostStepDoIt ( const G4Track ,
const G4Step  
)
inlinevirtual

Implements G4VProcess.

Definition at line 168 of file G4VITRestDiscreteProcess.hh.

172{
173// reset NumberOfInteractionLengthLeft
175
176 return pParticleChange;
177}

◆ PostStepGetPhysicalInteractionLength()

G4double G4VITRestDiscreteProcess::PostStepGetPhysicalInteractionLength ( const G4Track track,
G4double  previousStepSize,
G4ForceCondition condition 
)
inlinevirtual

Implements G4VProcess.

Definition at line 127 of file G4VITRestDiscreteProcess.hh.

132{
133 if ( (previousStepSize < 0.0) || (fpState->theNumberOfInteractionLengthLeft<=0.0)) {
134 // beggining of tracking (or just after DoIt of this process)
136 } else if ( previousStepSize > 0.0) {
137 // subtract NumberOfInteractionLengthLeft
139 } else {
140 // zero step
141 // DO NOTHING
142 }
143
144 // condition is set to "Not Forced"
146
147 // get mean free path
148 fpState->currentInteractionLength = GetMeanFreePath(track, previousStepSize, condition);
149
150 G4double value;
153 } else {
154 value = DBL_MAX;
155 }
156#ifdef G4VERBOSE
157 if (verboseLevel>1){
158 G4cout << "G4VITRestDiscreteProcess::PostStepGetPhysicalInteractionLength ";
159 G4cout << "[ " << GetProcessName() << "]" <<G4endl;
160 track.GetDynamicParticle()->DumpInfo();
161 G4cout << " in Material " << track.GetMaterial()->GetName() <<G4endl;
162 G4cout << "InteractionLength= " << value/CLHEP::cm <<"[cm] " <<G4endl;
163 }
164#endif
165 return value;
166}
double G4double
Definition: G4Types.hh:64
virtual void SubtractNumberOfInteractionLengthLeft(G4double previousStepSize)
Definition: G4VITProcess.cc:96
virtual G4double GetMeanFreePath(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)=0
#define DBL_MAX
Definition: templates.hh:83

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