Geant4  10.02.p03
HadrontherapyStepMax Class Reference

#include <HadrontherapyStepMax.hh>

Inheritance diagram for HadrontherapyStepMax:
Collaboration diagram for HadrontherapyStepMax:

Public Member Functions

 HadrontherapyStepMax (const G4String &processName="UserStepMax")
 
 ~HadrontherapyStepMax ()
 
G4bool IsApplicable (const G4ParticleDefinition &)
 
void SetMaxStep (G4double)
 
G4double GetMaxStep ()
 
G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
G4VParticleChange * PostStepDoIt (const G4Track &, const G4Step &)
 
G4double GetMeanFreePath (const G4Track &, G4double, G4ForceCondition *)
 
- 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 G4VParticleChange * AtRestDoIt (const G4Track &, const G4Step &)
 
virtual G4VParticleChange * AlongStepDoIt (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 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 &)
 

Private Attributes

G4double MaxChargedStep
 
HadrontherapyStepMaxMessengerpMess
 

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
 
G4VParticleChange * pParticleChange
 
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 40 of file HadrontherapyStepMax.hh.

Constructor & Destructor Documentation

◆ HadrontherapyStepMax()

HadrontherapyStepMax::HadrontherapyStepMax ( const G4String processName = "UserStepMax")

Definition at line 33 of file HadrontherapyStepMax.cc.

◆ ~HadrontherapyStepMax()

HadrontherapyStepMax::~HadrontherapyStepMax ( )

Definition at line 40 of file HadrontherapyStepMax.cc.

40 { delete pMess; }
HadrontherapyStepMaxMessenger * pMess

Member Function Documentation

◆ GetMaxStep()

G4double HadrontherapyStepMax::GetMaxStep ( )
inline

Definition at line 49 of file HadrontherapyStepMax.hh.

49 {return MaxChargedStep;};
Here is the call graph for this function:

◆ GetMeanFreePath()

G4double HadrontherapyStepMax::GetMeanFreePath ( const G4Track &  ,
G4double  ,
G4ForceCondition *   
)
inlinevirtual

Implements G4VDiscreteProcess.

Definition at line 57 of file HadrontherapyStepMax.hh.

58  {return 0.;}; // it is not needed here !

◆ IsApplicable()

G4bool HadrontherapyStepMax::IsApplicable ( const G4ParticleDefinition particle)
virtual

Reimplemented from G4VProcess.

Definition at line 43 of file HadrontherapyStepMax.cc.

44 {
45  return (particle.GetPDGCharge() != 0.);
46 }
G4double GetPDGCharge() const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PostStepDoIt()

G4VParticleChange * HadrontherapyStepMax::PostStepDoIt ( const G4Track &  aTrack,
const G4Step &   
)
virtual

Reimplemented from G4VDiscreteProcess.

Definition at line 69 of file HadrontherapyStepMax.cc.

70 {
71  // do nothing
72  aParticleChange.Initialize(aTrack);
73  return &aParticleChange;
74 }
G4ParticleChange aParticleChange
Definition: G4VProcess.hh:289
Here is the caller graph for this function:

◆ PostStepGetPhysicalInteractionLength()

G4double HadrontherapyStepMax::PostStepGetPhysicalInteractionLength ( const G4Track &  track,
G4double  previousStepSize,
G4ForceCondition *  condition 
)
virtual

Reimplemented from G4VDiscreteProcess.

Definition at line 52 of file HadrontherapyStepMax.cc.

55 {
56  // condition is set to "Not Forced"
57  *condition = NotForced;
58 
59  G4double ProposedStep = DBL_MAX;
60 if((MaxChargedStep > 0.) &&
61  (aTrack.GetVolume() != 0) && ((aTrack.GetVolume()->GetName() == "DetectorPhys")||(aTrack.GetVolume()->GetName() == "InternalChamber")||(aTrack.GetVolume()->GetName() == "CollimatorHole")||(aTrack.GetVolume()->GetName() == "PhysFourthTQuad")||(aTrack.GetVolume()->GetName() == "PhysThirdTQuad")||(aTrack.GetVolume()->GetName() == "PhysSecondTQuad")||(aTrack.GetVolume()->GetName() == "PhysFirstTQuad")||(aTrack.GetVolume()->GetName() =="physQuadChamber")||(aTrack.GetVolume()->GetName() =="PVirtualMag")||(aTrack.GetVolume()->GetName() =="PhysicCup")))
62 
63  ProposedStep = MaxChargedStep;
64 
65  return ProposedStep;
66 }
G4double condition(const G4ErrorSymMatrix &m)
double G4double
Definition: G4Types.hh:76
#define DBL_MAX
Definition: templates.hh:83
Here is the caller graph for this function:

◆ SetMaxStep()

void HadrontherapyStepMax::SetMaxStep ( G4double  step)

Definition at line 49 of file HadrontherapyStepMax.cc.

49 {MaxChargedStep = step;}
Here is the caller graph for this function:

Member Data Documentation

◆ MaxChargedStep

G4double HadrontherapyStepMax::MaxChargedStep
private

Definition at line 58 of file HadrontherapyStepMax.hh.

◆ pMess

HadrontherapyStepMaxMessenger* HadrontherapyStepMax::pMess
private

Definition at line 63 of file HadrontherapyStepMax.hh.


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