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

#include <MinEkineCuts.hh>

+ Inheritance diagram for MinEkineCuts:

Public Member Functions

 MinEkineCuts (const G4String &processName="MinEkineCuts")
 
virtual ~MinEkineCuts ()
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
- Public Member Functions inherited from SpecialCuts
 SpecialCuts (const G4String &processName="SpecialCut")
 
virtual ~SpecialCuts ()
 
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 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
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VProcess
static const G4StringGetProcessTypeName (G4ProcessType)
 
- Protected Member Functions inherited from G4VProcess
void SubtractNumberOfInteractionLengthLeft (G4double previousStepSize)
 
void ClearNumberOfInteractionLengthLeft ()
 
- 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 45 of file MinEkineCuts.hh.

Constructor & Destructor Documentation

◆ MinEkineCuts()

MinEkineCuts::MinEkineCuts ( const G4String processName = "MinEkineCuts")

Definition at line 43 of file MinEkineCuts.cc.

44 : SpecialCuts(aName)
45{
46 if (verboseLevel>1) {
47 G4cout << GetProcessName() << " is created "<< G4endl;
48 }
50}
@ fUserDefined
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
G4int verboseLevel
Definition: G4VProcess.hh:368
void SetProcessType(G4ProcessType)
Definition: G4VProcess.hh:391
const G4String & GetProcessName() const
Definition: G4VProcess.hh:379

◆ ~MinEkineCuts()

MinEkineCuts::~MinEkineCuts ( )
virtual

Definition at line 52 of file MinEkineCuts.cc.

53{}

Member Function Documentation

◆ PostStepGetPhysicalInteractionLength()

G4double MinEkineCuts::PostStepGetPhysicalInteractionLength ( const G4Track track,
G4double  previousStepSize,
G4ForceCondition condition 
)
virtual

Reimplemented from SpecialCuts.

Definition at line 59 of file MinEkineCuts.cc.

64{
65 // condition is set to "Not Forced"
67
68 G4double proposedStep = DBL_MAX;
69 // get the pointer to UserLimits
70 G4UserLimits* pUserLimits = aTrack.GetVolume()->GetLogicalVolume()->GetUserLimits();
71 const G4DynamicParticle* aParticle = aTrack.GetDynamicParticle();
72 G4ParticleDefinition* aParticleDef = aTrack.GetDefinition();
73
74 if (pUserLimits && aParticleDef->GetPDGCharge() != 0.0) {
75 //min kinetic energy
76 G4double temp = DBL_MAX;
77 G4double eKine = aParticle->GetKineticEnergy();
78 const G4MaterialCutsCouple* couple = aTrack.GetMaterialCutsCouple();
79 G4double eMin = pUserLimits->GetUserMinEkine(aTrack);
80
81 G4double rangeNow = DBL_MAX;
82
83 rangeNow = G4EnergyLossTables::GetRange(aParticleDef,eKine,couple);
84
85 if (eKine < eMin ) {
86 proposedStep = 0.;
87 } else {
88 // charged particles only
89 G4double rangeMin = G4EnergyLossTables::GetRange(aParticleDef,eMin,couple);
90 temp = rangeNow - rangeMin;
91 if (proposedStep > temp) proposedStep = temp;
92 }
93 }
94 return proposedStep;
95}
G4double condition(const G4ErrorSymMatrix &m)
@ NotForced
double G4double
Definition: G4Types.hh:64
G4double GetKineticEnergy() const
static G4double GetRange(const G4ParticleDefinition *aParticle, G4double KineticEnergy, const G4Material *aMaterial)
G4double GetPDGCharge() const
virtual G4double GetUserMinEkine(const G4Track &)
#define DBL_MAX
Definition: templates.hh:83

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