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

#include <G4VRestContinuousProcess.hh>

+ Inheritance diagram for G4VRestContinuousProcess:

Public Member Functions

 G4VRestContinuousProcess (const G4String &, G4ProcessType aType=fNotDefined)
 
 G4VRestContinuousProcess (G4VRestContinuousProcess &)
 
virtual ~G4VRestContinuousProcess ()
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &, G4ForceCondition *)
 
virtual G4VParticleChangeAtRestDoIt (const G4Track &, const G4Step &)
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &currentSafety, G4GPILSelection *selection)
 
virtual G4VParticleChangeAlongStepDoIt (const G4Track &, const G4Step &)
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &, G4double, G4ForceCondition *)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
- 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 GetContinuousStepLimit (const G4Track &aTrack, G4double previousStepSize, G4double currentMinimumStep, G4double &currentSafety)=0
 
void SetGPILSelection (G4GPILSelection selection)
 
G4GPILSelection GetGPILSelection () const
 
virtual G4double GetMeanLifeTime (const G4Track &aTrack, G4ForceCondition *condition)=0
 
- Protected Member Functions inherited from G4VProcess
void SubtractNumberOfInteractionLengthLeft (G4double previousStepSize)
 
void ClearNumberOfInteractionLengthLeft ()
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VProcess
static const G4StringGetProcessTypeName (G4ProcessType)
 
- 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

Definition at line 56 of file G4VRestContinuousProcess.hh.

Constructor & Destructor Documentation

◆ G4VRestContinuousProcess() [1/2]

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

Definition at line 55 of file G4VRestContinuousProcess.cc.

56 : G4VProcess(aName, aType),
57 valueGPILSelection(CandidateForSelection)
58{
59 enablePostStepDoIt = false;
60}
@ CandidateForSelection
G4bool enablePostStepDoIt
Definition: G4VProcess.hh:352

Referenced by G4VRestContinuousProcess().

◆ G4VRestContinuousProcess() [2/2]

G4VRestContinuousProcess::G4VRestContinuousProcess ( G4VRestContinuousProcess right)

Definition at line 66 of file G4VRestContinuousProcess.cc.

67 : G4VProcess(right),
68 valueGPILSelection(right.valueGPILSelection)
69{
70}

◆ ~G4VRestContinuousProcess()

G4VRestContinuousProcess::~G4VRestContinuousProcess ( )
virtual

Definition at line 62 of file G4VRestContinuousProcess.cc.

63{
64}

Member Function Documentation

◆ AlongStepDoIt()

G4VParticleChange * G4VRestContinuousProcess::AlongStepDoIt ( const G4Track ,
const G4Step  
)
virtual

Implements G4VProcess.

Definition at line 139 of file G4VRestContinuousProcess.cc.

143{
144 return pParticleChange;
145}
G4VParticleChange * pParticleChange
Definition: G4VProcess.hh:283

◆ AlongStepGetPhysicalInteractionLength()

G4double G4VRestContinuousProcess::AlongStepGetPhysicalInteractionLength ( const G4Track track,
G4double  previousStepSize,
G4double  currentMinimumStep,
G4double currentSafety,
G4GPILSelection selection 
)
virtual

Implements G4VProcess.

Definition at line 72 of file G4VRestContinuousProcess.cc.

79{
80 // GPILSelection is set to defaule value of CandidateForSelection
81 valueGPILSelection = CandidateForSelection;
82
83 // get Step limit proposed by the process
84 G4double steplength = GetContinuousStepLimit(track,previousStepSize,currentMinimumStep, currentSafety);
85
86 // set return value for G4GPILSelection
87 *selection = valueGPILSelection;
88#ifdef G4VERBOSE
89 if (verboseLevel>1){
90 G4cout << "G4VRestContinuousProcess::AlongStepGetPhysicalInteractionLength ";
91 G4cout << "[ " << GetProcessName() << "]" <<G4endl;
93 G4cout << " in Material " << track.GetMaterial()->GetName() <<G4endl;
94 G4cout << "IntractionLength= " << steplength/cm <<"[cm] " <<G4endl;
95 }
96#endif
97 return steplength ;
98}
double G4double
Definition: G4Types.hh:64
#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
G4int verboseLevel
Definition: G4VProcess.hh:368
const G4String & GetProcessName() const
Definition: G4VProcess.hh:379
virtual G4double GetContinuousStepLimit(const G4Track &aTrack, G4double previousStepSize, G4double currentMinimumStep, G4double &currentSafety)=0

◆ AtRestDoIt()

G4VParticleChange * G4VRestContinuousProcess::AtRestDoIt ( const G4Track ,
const G4Step  
)
virtual

Implements G4VProcess.

Definition at line 128 of file G4VRestContinuousProcess.cc.

132{
133// clear NumberOfInteractionLengthLeft
135
136 return pParticleChange;
137}
void ClearNumberOfInteractionLengthLeft()
Definition: G4VProcess.hh:418

◆ AtRestGetPhysicalInteractionLength()

G4double G4VRestContinuousProcess::AtRestGetPhysicalInteractionLength ( const G4Track track,
G4ForceCondition condition 
)
virtual

Implements G4VProcess.

Definition at line 100 of file G4VRestContinuousProcess.cc.

104{
105 // beggining of tracking
107
108 // condition is set to "Not Forced"
110
111 // get mean life time
113
114#ifdef G4VERBOSE
115 if ((currentInteractionLength <0.0) || (verboseLevel>2)){
116 G4cout << "G4VRestContinuousProcess::AtRestGetPhysicalInteractionLength ";
117 G4cout << "[ " << GetProcessName() << "]" <<G4endl;
118 track.GetDynamicParticle()->DumpInfo();
119 G4cout << " in Material " << track.GetMaterial()->GetName() <<G4endl;
120 G4cout << "MeanLifeTime = " << currentInteractionLength/ns << "[ns]" <<G4endl;
121 }
122#endif
123
125}
G4double condition(const G4ErrorSymMatrix &m)
@ NotForced
G4double currentInteractionLength
Definition: G4VProcess.hh:297
virtual void ResetNumberOfInteractionLengthLeft()
Definition: G4VProcess.cc:92
G4double theNumberOfInteractionLengthLeft
Definition: G4VProcess.hh:293
virtual G4double GetMeanLifeTime(const G4Track &aTrack, G4ForceCondition *condition)=0
#define ns
Definition: xmlparse.cc:597

◆ GetContinuousStepLimit()

virtual G4double G4VRestContinuousProcess::GetContinuousStepLimit ( const G4Track aTrack,
G4double  previousStepSize,
G4double  currentMinimumStep,
G4double currentSafety 
)
protectedpure virtual

◆ GetGPILSelection()

G4GPILSelection G4VRestContinuousProcess::GetGPILSelection ( ) const
inlineprotected

Definition at line 125 of file G4VRestContinuousProcess.hh.

125{return valueGPILSelection;};

◆ GetMeanLifeTime()

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

◆ PostStepDoIt()

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

Implements G4VProcess.

Definition at line 101 of file G4VRestContinuousProcess.hh.

104 {return 0;};

◆ PostStepGetPhysicalInteractionLength()

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

Implements G4VProcess.

Definition at line 94 of file G4VRestContinuousProcess.hh.

98 { return -1.0; };

◆ SetGPILSelection()

void G4VRestContinuousProcess::SetGPILSelection ( G4GPILSelection  selection)
inlineprotected

Definition at line 122 of file G4VRestContinuousProcess.hh.

123 { valueGPILSelection = selection;};

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