Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions
F01StepCut Class Reference

#include <F01StepCut.hh>

Inheritance diagram for F01StepCut:
G4VDiscreteProcess G4VProcess

Public Member Functions

 F01StepCut (const G4String &processName="UserStepCut")
 
 F01StepCut (F01StepCut &)
 
virtual ~F01StepCut ()
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
void SetMaxStep (G4double)
 
- Public Member Functions inherited from G4VDiscreteProcess
 G4VDiscreteProcess (const G4String &, G4ProcessType aType=fNotDefined)
 
 G4VDiscreteProcess (G4VDiscreteProcess &)
 
virtual ~G4VDiscreteProcess ()
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &, G4ForceCondition *)
 
virtual G4VParticleChangeAtRestDoIt (const G4Track &, const G4Step &)
 
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
 
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
 
virtual void SetMasterProcess (G4VProcess *masterP)
 
const G4VProcessGetMasterProcess () const
 
virtual void BuildWorkerPhysicsTable (const G4ParticleDefinition &part)
 
virtual void PrepareWorkerPhysicsTable (const G4ParticleDefinition &)
 

Protected Member Functions

virtual G4double GetMeanFreePath (const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)
 
- 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 43 of file F01StepCut.hh.

Constructor & Destructor Documentation

F01StepCut::F01StepCut ( const G4String processName = "UserStepCut")

Definition at line 44 of file F01StepCut.cc.

References G4cout, G4endl, G4VProcess::GetProcessName(), and G4VProcess::verboseLevel.

45  : G4VDiscreteProcess(aName),
46  fMaxChargedStep(DBL_MAX)
47 {
48  if (verboseLevel>0) {
49  G4cout << GetProcessName() << " is created "<< G4endl;
50  }
51 }
G4int verboseLevel
Definition: G4VProcess.hh:368
G4GLOB_DLL std::ostream G4cout
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
#define G4endl
Definition: G4ios.hh:61
#define DBL_MAX
Definition: templates.hh:83
F01StepCut::F01StepCut ( F01StepCut right)

Definition at line 60 of file F01StepCut.cc.

F01StepCut::~F01StepCut ( )
virtual

Definition at line 55 of file F01StepCut.cc.

56 {}

Member Function Documentation

G4double F01StepCut::GetMeanFreePath ( const G4Track aTrack,
G4double  previousStepSize,
G4ForceCondition condition 
)
inlineprotectedvirtual

Implements G4VDiscreteProcess.

Definition at line 120 of file F01StepCut.hh.

123 {
124  return 0.;
125 }
G4VParticleChange * F01StepCut::PostStepDoIt ( const G4Track aTrack,
const G4Step  
)
inlinevirtual

Reimplemented from G4VDiscreteProcess.

Definition at line 108 of file F01StepCut.hh.

References G4VProcess::aParticleChange, and G4ParticleChange::Initialize().

112 {
113  // do nothing
114  aParticleChange.Initialize(aTrack);
115  return &aParticleChange;
116 }
virtual void Initialize(const G4Track &)
G4ParticleChange aParticleChange
Definition: G4VProcess.hh:289
G4double F01StepCut::PostStepGetPhysicalInteractionLength ( const G4Track track,
G4double  previousStepSize,
G4ForceCondition condition 
)
inlinevirtual

Reimplemented from G4VDiscreteProcess.

Definition at line 87 of file F01StepCut.hh.

References DBL_MAX, G4DynamicParticle::GetDefinition(), G4Track::GetDynamicParticle(), G4VPhysicalVolume::GetName(), G4ParticleDefinition::GetPDGCharge(), G4Track::GetVolume(), and NotForced.

91 {
92  // condition is set to "Not Forced"
94 
95  G4double proposedStep = DBL_MAX;
96 
97  if((fMaxChargedStep > 0.) &&
98  (aTrack.GetVolume() != 0) &&
99  (aTrack.GetVolume()->GetName() == "Absorber") &&
100  (aTrack.GetDynamicParticle()->GetDefinition()->GetPDGCharge() != 0.))
101  proposedStep = fMaxChargedStep;
102 
103  return proposedStep;
104 }
G4double condition(const G4ErrorSymMatrix &m)
double G4double
Definition: G4Types.hh:76
#define DBL_MAX
Definition: templates.hh:83
void F01StepCut::SetMaxStep ( G4double  step)

Definition at line 66 of file F01StepCut.cc.

Referenced by F01PhysicsList::ConstructEM().

67 {
68  fMaxChargedStep = step;
69 }

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