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

#include <G4VDiscreteProcess.hh>

Inheritance diagram for G4VDiscreteProcess:
G4VProcess Em10StepCut F01StepCut F02StepCut F03StepCut F04StepMax G4AnnihiToMuPair G4ElectronCapture G4ElectronCapture G4ElectronCapture G4ErrorTrackLengthTarget G4GammaConversionToMuons G4HadronicProcess G4LowEnergyCompton G4LowEnergyGammaConversion G4LowEnergyPhotoElectric G4LowEnergyPolarizedCompton G4LowEnergyRayleigh G4NeutronKiller G4OpAbsorption G4OpBoundaryProcess G4OpMieHG G4OpRayleigh G4OpWLS G4ScreenedNuclearRecoil G4SynchrotronRadiation G4SynchrotronRadiationInMat G4TransitionRadiation G4UnknownDecay G4VAdjointReverseReaction G4VEmProcess G4VErrorLimitProcess G4VPhononProcess G4VTransitionRadiation G4VXTRenergyLoss HadrontherapyStepMax IORTStepMax ML2StepMax StepLimiter StepMax StepMax StepMax StepMax StepMax StepMax StepMax StepMax StepMax StepMax StepMax StepMax StepMax StepMax StepMax StepMax StepMax WLSStepMax XrayFluoStepMax XrayTelStepCut

Public Member Functions

 G4VDiscreteProcess (const G4String &, G4ProcessType aType=fNotDefined)
 
 G4VDiscreteProcess (G4VDiscreteProcess &)
 
virtual ~G4VDiscreteProcess ()
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
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)=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 58 of file G4VDiscreteProcess.hh.

Constructor & Destructor Documentation

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

Definition at line 54 of file G4VDiscreteProcess.cc.

References G4VProcess::enableAlongStepDoIt, G4VProcess::enableAtRestDoIt, and G4VDiscreteProcess().

Referenced by G4VDiscreteProcess().

55  : G4VProcess(aName, aType)
56 {
57  enableAtRestDoIt = false;
58  enableAlongStepDoIt = false;
59 
60 }
G4VProcess(const G4String &aName="NoName", G4ProcessType aType=fNotDefined)
Definition: G4VProcess.cc:52
G4bool enableAtRestDoIt
Definition: G4VProcess.hh:350
G4bool enableAlongStepDoIt
Definition: G4VProcess.hh:351
G4VDiscreteProcess::G4VDiscreteProcess ( G4VDiscreteProcess right)

Definition at line 66 of file G4VDiscreteProcess.cc.

References G4VDiscreteProcess().

67  : G4VProcess(right)
68 {
69 }
G4VProcess(const G4String &aName="NoName", G4ProcessType aType=fNotDefined)
Definition: G4VProcess.cc:52
G4VDiscreteProcess::~G4VDiscreteProcess ( )
virtual

Definition at line 62 of file G4VDiscreteProcess.cc.

63 {
64 }

Member Function Documentation

virtual G4VParticleChange* G4VDiscreteProcess::AlongStepDoIt ( const G4Track ,
const G4Step  
)
inlinevirtual

Implements G4VProcess.

Reimplemented in G4NuclearStopping.

Definition at line 102 of file G4VDiscreteProcess.hh.

105  {return 0;};
virtual G4double G4VDiscreteProcess::AlongStepGetPhysicalInteractionLength ( const G4Track ,
G4double  ,
G4double  ,
G4double ,
G4GPILSelection  
)
inlinevirtual

Implements G4VProcess.

Reimplemented in G4NuclearStopping.

Definition at line 83 of file G4VDiscreteProcess.hh.

89  { return -1.0; };
virtual G4VParticleChange* G4VDiscreteProcess::AtRestDoIt ( const G4Track ,
const G4Step  
)
inlinevirtual

Implements G4VProcess.

Reimplemented in G4HadronStoppingProcess, G4eplusAnnihilation, and G4eplusPolarizedAnnihilation.

Definition at line 97 of file G4VDiscreteProcess.hh.

100  {return 0;};
virtual G4double G4VDiscreteProcess::AtRestGetPhysicalInteractionLength ( const G4Track ,
G4ForceCondition  
)
inlinevirtual

Implements G4VProcess.

Reimplemented in G4eplusAnnihilation, G4eplusPolarizedAnnihilation, and G4HadronStoppingProcess.

Definition at line 91 of file G4VDiscreteProcess.hh.

94  { return -1.0; };
virtual G4double G4VDiscreteProcess::GetMeanFreePath ( const G4Track aTrack,
G4double  previousStepSize,
G4ForceCondition condition 
)
protectedpure virtual
G4VParticleChange * G4VDiscreteProcess::PostStepDoIt ( const G4Track ,
const G4Step  
)
virtual

Implements G4VProcess.

Reimplemented in G4ScreenedNuclearRecoil, G4OpBoundaryProcess, G4VEmProcess, G4OpWLS, G4OpRayleigh, G4OpAbsorption, G4GammaConversionToMuons, G4HadronicProcess, G4AnnihiToMuPair, G4VXTRenergyLoss, G4ForwardXrayTR, G4SynchrotronRadiationInMat, G4VAdjointReverseReaction, G4NeutronKiller, G4ElectronCapture, G4LowEnergyPolarizedCompton, G4OpMieHG, G4ElectronCapture, G4ElectronCapture, G4ErrorTrackLengthTarget, G4LowEnergyPhotoElectric, G4SynchrotronRadiation, G4LowEnergyGammaConversion, G4VErrorLimitProcess, XrayTelStepCut, G4LowEnergyCompton, G4TransitionRadiation, G4LowEnergyRayleigh, CexmcHadronicProcess, ML2StepMax, G4VTransitionRadiation, StepMax, IORTStepMax, StepMax, StepMax, G4UnknownDecay, StepMax, StepMax, StepMax, StepMax, StepMax, StepMax, StepMax, StepMax, WLSStepMax, StepLimiter, HadrontherapyStepMax, StepMax, StepMax, StepMax, StepMax, StepMax, F04StepMax, XrayFluoStepMax, F01StepCut, F02StepCut, F03StepCut, Em10StepCut, StepMax, G4HadronElasticProcess, G4PhononReflection, G4PhononDownconversion, and G4PhononScattering.

Definition at line 112 of file G4VDiscreteProcess.cc.

References G4VProcess::ClearNumberOfInteractionLengthLeft(), and G4VProcess::pParticleChange.

Referenced by G4PhononScattering::PostStepDoIt(), G4LowEnergyRayleigh::PostStepDoIt(), G4LowEnergyCompton::PostStepDoIt(), G4LowEnergyGammaConversion::PostStepDoIt(), G4SynchrotronRadiation::PostStepDoIt(), G4LowEnergyPhotoElectric::PostStepDoIt(), G4OpMieHG::PostStepDoIt(), G4LowEnergyPolarizedCompton::PostStepDoIt(), G4SynchrotronRadiationInMat::PostStepDoIt(), G4ForwardXrayTR::PostStepDoIt(), G4VXTRenergyLoss::PostStepDoIt(), G4AnnihiToMuPair::PostStepDoIt(), G4GammaConversionToMuons::PostStepDoIt(), G4OpAbsorption::PostStepDoIt(), G4OpRayleigh::PostStepDoIt(), G4OpWLS::PostStepDoIt(), G4OpBoundaryProcess::PostStepDoIt(), and G4ScreenedNuclearRecoil::PostStepDoIt().

116 {
117 // clear NumberOfInteractionLengthLeft
119 
120  return pParticleChange;
121 }
void ClearNumberOfInteractionLengthLeft()
Definition: G4VProcess.hh:447
G4VParticleChange * pParticleChange
Definition: G4VProcess.hh:283
G4double G4VDiscreteProcess::PostStepGetPhysicalInteractionLength ( const G4Track track,
G4double  previousStepSize,
G4ForceCondition condition 
)
virtual

Implements G4VProcess.

Reimplemented in G4VEmProcess, G4PolarizedCompton, G4eplusPolarizedAnnihilation, G4UnknownDecay, G4NeutronKiller, G4ElectronCapture, G4HadronStoppingProcess, G4ElectronCapture, G4ElectronCapture, G4ErrorTrackLengthTarget, XrayTelStepCut, G4VErrorLimitProcess, ML2StepMax, G4ErrorStepLengthLimitProcess, G4ErrorMagFieldLimitProcess, StepMax, IORTStepMax, StepMax, StepMax, StepMax, StepMax, StepMax, StepMax, StepMax, StepMax, StepMax, StepMax, WLSStepMax, StepLimiter, HadrontherapyStepMax, StepMax, StepMax, StepMax, StepMax, StepMax, F04StepMax, XrayFluoStepMax, StepMax, F01StepCut, F02StepCut, F03StepCut, and Em10StepCut.

Definition at line 71 of file G4VDiscreteProcess.cc.

References python.hepunit::cm, G4VProcess::currentInteractionLength, DBL_MAX, G4DynamicParticle::DumpInfo(), G4cout, G4endl, G4Track::GetDynamicParticle(), G4Track::GetMaterial(), GetMeanFreePath(), G4Material::GetName(), G4VProcess::GetProcessName(), NotForced, G4VProcess::ResetNumberOfInteractionLengthLeft(), G4VProcess::SubtractNumberOfInteractionLengthLeft(), G4VProcess::theNumberOfInteractionLengthLeft, and G4VProcess::verboseLevel.

76 {
77  if ( (previousStepSize < 0.0) || (theNumberOfInteractionLengthLeft<=0.0)) {
78  // beggining of tracking (or just after DoIt of this process)
80  } else if ( previousStepSize > 0.0) {
81  // subtract NumberOfInteractionLengthLeft
82  SubtractNumberOfInteractionLengthLeft(previousStepSize);
83  } else {
84  // zero step
85  // DO NOTHING
86  }
87 
88  // condition is set to "Not Forced"
90 
91  // get mean free path
92  currentInteractionLength = GetMeanFreePath(track, previousStepSize, condition);
93 
97  } else {
98  value = DBL_MAX;
99  }
100 #ifdef G4VERBOSE
101  if (verboseLevel>1){
102  G4cout << "G4VDiscreteProcess::PostStepGetPhysicalInteractionLength ";
103  G4cout << "[ " << GetProcessName() << "]" <<G4endl;
104  track.GetDynamicParticle()->DumpInfo();
105  G4cout << " in Material " << track.GetMaterial()->GetName() <<G4endl;
106  G4cout << "InteractionLength= " << value/cm <<"[cm] " <<G4endl;
107  }
108 #endif
109  return value;
110 }
G4double condition(const G4ErrorSymMatrix &m)
G4int verboseLevel
Definition: G4VProcess.hh:368
const G4DynamicParticle * GetDynamicParticle() const
const G4String & GetName() const
Definition: G4Material.hh:176
void DumpInfo(G4int mode=0) const
G4double theNumberOfInteractionLengthLeft
Definition: G4VProcess.hh:293
virtual void ResetNumberOfInteractionLengthLeft()
Definition: G4VProcess.cc:95
G4GLOB_DLL std::ostream G4cout
G4double currentInteractionLength
Definition: G4VProcess.hh:297
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
G4Material * GetMaterial() const
const XML_Char int const XML_Char * value
#define G4endl
Definition: G4ios.hh:61
void SubtractNumberOfInteractionLengthLeft(G4double previousStepSize)
Definition: G4VProcess.hh:544
double G4double
Definition: G4Types.hh:76
virtual G4double GetMeanFreePath(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)=0
#define DBL_MAX
Definition: templates.hh:83

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