Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
StepMax Class Reference

#include <StepMax.hh>

Inheritance diagram for StepMax:
G4VDiscreteProcess G4VProcess

Public Member Functions

 StepMax (const G4String &processName="UserMaxStep")
 
 ~StepMax ()
 
G4bool IsApplicable (const G4ParticleDefinition &) override
 
void SetMaxStep (G4double)
 
G4double GetMaxStep ()
 
G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
 
G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &) override
 
G4double GetMeanFreePath (const G4Track &, G4double, G4ForceCondition *) override
 

Private Attributes

G4double fMaxChargedStep = DBL_MAX
 
StepMaxMessengerfMess = nullptr
 

Detailed Description

Definition at line 45 of file StepMax.hh.

Constructor & Destructor Documentation

◆ StepMax()

StepMax::StepMax ( const G4String processName = "UserMaxStep")

Definition at line 38 of file StepMax.cc.

39 : G4VDiscreteProcess(processName)
40{
41 fMess = new StepMaxMessenger(this);
42}
StepMaxMessenger * fMess
Definition StepMax.hh:70

◆ ~StepMax()

StepMax::~StepMax ( )

Definition at line 46 of file StepMax.cc.

46{ delete fMess; }

Member Function Documentation

◆ IsApplicable()

G4bool StepMax::IsApplicable ( const G4ParticleDefinition particle)
override

Definition at line 50 of file StepMax.cc.

51{
52 return (particle.GetPDGCharge() != 0. && !particle.IsShortLived());
53}

◆ SetMaxStep()

void StepMax::SetMaxStep ( G4double  step)

Definition at line 57 of file StepMax.cc.

57{fMaxChargedStep = step;}
G4double fMaxChargedStep
Definition StepMax.hh:68

◆ GetMaxStep()

G4double StepMax::GetMaxStep ( )
inline

Definition at line 56 of file StepMax.hh.

56{return fMaxChargedStep;};

◆ PostStepGetPhysicalInteractionLength()

G4double StepMax::PostStepGetPhysicalInteractionLength ( const G4Track track,
G4double  previousStepSize,
G4ForceCondition *  condition 
)
override

Definition at line 61 of file StepMax.cc.

64{
65 // condition is set to "Not Forced"
66 *condition = NotForced;
67
68 return fMaxChargedStep;
69}

◆ PostStepDoIt()

G4VParticleChange * StepMax::PostStepDoIt ( const G4Track aTrack,
const G4Step  
)
override

Definition at line 73 of file StepMax.cc.

74{
75 // do nothing
76 aParticleChange.Initialize(aTrack);
77 return &aParticleChange;
78}

◆ GetMeanFreePath()

G4double StepMax::GetMeanFreePath ( const G4Track ,
G4double  ,
G4ForceCondition *   
)
override

Definition at line 82 of file StepMax.cc.

83{
84 return fMaxChargedStep;
85}

Member Data Documentation

◆ fMaxChargedStep

G4double StepMax::fMaxChargedStep = DBL_MAX
private

Definition at line 68 of file StepMax.hh.

◆ fMess

StepMaxMessenger* StepMax::fMess = nullptr
private

Definition at line 70 of file StepMax.hh.


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