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

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

#include <G4VITRestProcess.hh>

+ Inheritance diagram for G4VITRestProcess:

Public Member Functions

 G4VITRestProcess (const G4String &, G4ProcessType aType=fNotDefined)
 
 G4VITRestProcess (const G4VITRestProcess &)
 
virtual ~G4VITRestProcess ()
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &track, G4ForceCondition *condition)
 
virtual G4VParticleChangeAtRestDoIt (const G4Track &, const G4Step &)
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &, G4double, G4ForceCondition *)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
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)
 
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 ()
 
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 ()
 
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 GetMeanLifeTime (const G4Track &aTrack, G4ForceCondition *condition)=0
 
 G4VITRestProcess ()
 
G4VITRestProcessoperator= (const G4VITRestProcess &right)
 
- 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 G4VRestProcess with dependency from G4VITProcess.

Identical to G4VRestProcess with dependency from G4VITProcess

Definition at line 62 of file G4VITRestProcess.hh.

Constructor & Destructor Documentation

◆ G4VITRestProcess() [1/3]

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

Definition at line 44 of file G4VITRestProcess.cc.

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

◆ G4VITRestProcess() [2/3]

G4VITRestProcess::G4VITRestProcess ( const G4VITRestProcess right)

Definition at line 55 of file G4VITRestProcess.cc.

56 : G4VITProcess(right)
57{
58}

◆ ~G4VITRestProcess()

G4VITRestProcess::~G4VITRestProcess ( )
virtual

Definition at line 51 of file G4VITRestProcess.cc.

52{
53}

◆ G4VITRestProcess() [3/3]

G4VITRestProcess::G4VITRestProcess ( )
protected

Definition at line 37 of file G4VITRestProcess.cc.

38 :G4VITProcess("No Name Rest Process")
39{
40 G4Exception("G4VITRestProcess::G4VITRestProcess()","Illegal operation",
41 JustWarning,"default constructor is called");
42}
@ JustWarning
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35

Member Function Documentation

◆ AlongStepDoIt()

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

Implements G4VProcess.

Definition at line 103 of file G4VITRestProcess.hh.

104 {
105 return 0;
106 }

◆ AlongStepGetPhysicalInteractionLength()

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

Implements G4VProcess.

Definition at line 81 of file G4VITRestProcess.hh.

86 {
87 return -1.0;
88 }

◆ AtRestDoIt()

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

Implements G4VProcess.

Definition at line 156 of file G4VITRestProcess.hh.

158{
161 return pParticleChange;
162}
virtual void ClearInteractionTimeLeft()
virtual void ClearNumberOfInteractionLengthLeft()
G4VParticleChange * pParticleChange
Definition: G4VProcess.hh:321

◆ AtRestGetPhysicalInteractionLength()

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

Implements G4VProcess.

Definition at line 128 of file G4VITRestProcess.hh.

130{
131 // beggining of tracking
133
134 // condition is set to "Not Forced"
136
137 // get mean life time
138 fpState->currentInteractionLength = GetMeanLifeTime(track, condition);
139
140#ifdef G4VERBOSE
141 if((fpState->currentInteractionLength < 0.0) || (verboseLevel > 2))
142 {
143 G4cout << "G4VITRestProcess::AtRestGetPhysicalInteractionLength ";
144 G4cout << "[ " << GetProcessName() << "]" << G4endl;
145 track.GetDynamicParticle()->DumpInfo();
146 G4cout << " in Material " << track.GetMaterial()->GetName() << G4endl;
147 G4cout << "MeanLifeTime = " << fpState->currentInteractionLength / CLHEP::ns
148 << "[ns]" << G4endl;
149 }
150#endif
151
152 return (fpState->theNumberOfInteractionLengthLeft)
153 * (fpState->currentInteractionLength);
154}
G4double condition(const G4ErrorSymMatrix &m)
@ NotForced
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
void DumpInfo(G4int mode=0) const
const G4String & GetName() const
Definition: G4Material.hh:175
G4Material * GetMaterial() const
const G4DynamicParticle * GetDynamicParticle() const
G4shared_ptr< G4ProcessState > fpState
virtual void ResetNumberOfInteractionLengthLeft()
virtual G4double GetMeanLifeTime(const G4Track &aTrack, G4ForceCondition *condition)=0
G4int verboseLevel
Definition: G4VProcess.hh:356
const G4String & GetProcessName() const
Definition: G4VProcess.hh:382

◆ GetMeanLifeTime()

virtual G4double G4VITRestProcess::GetMeanLifeTime ( const G4Track aTrack,
G4ForceCondition condition 
)
protectedpure virtual

◆ operator=()

G4VITRestProcess & G4VITRestProcess::operator= ( const G4VITRestProcess right)
protected

◆ PostStepDoIt()

virtual G4VParticleChange * G4VITRestProcess::PostStepDoIt ( const G4Track ,
const G4Step  
)
inlinevirtual

Implements G4VProcess.

Definition at line 98 of file G4VITRestProcess.hh.

99 {
100 return 0;
101 }

◆ PostStepGetPhysicalInteractionLength()

virtual G4double G4VITRestProcess::PostStepGetPhysicalInteractionLength ( const G4Track ,
G4double  ,
G4ForceCondition  
)
inlinevirtual

Implements G4VProcess.

Definition at line 90 of file G4VITRestProcess.hh.

93 {
94 return -1.0;
95 }

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