Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StepMaxProcess Class Reference

#include <StepMaxProcess.hh>

Inheritance diagram for StepMaxProcess:
Collaboration diagram for StepMaxProcess:

Public Member Functions

 StepMaxProcess (const G4String &processName="UserMaxStep", G4ProcessType type=fUserDefined)
 
 ~StepMaxProcess ()
 
virtual G4bool IsApplicable (const G4ParticleDefinition &)
 
void SetMaxStep1 (G4double)
 
void ApplyMaxStep2 (G4bool)
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
virtual 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 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 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 &)
 

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 46 of file StepMaxProcess.hh.

Constructor & Destructor Documentation

StepMaxProcess::StepMaxProcess ( const G4String processName = "UserMaxStep",
G4ProcessType  type = fUserDefined 
)

Definition at line 40 of file StepMaxProcess.cc.

41  : G4VDiscreteProcess(processName,type),fMess(0)
42 {
43  fMaxStep1 = fMaxStep2 = DBL_MAX;
44  fApplyMaxStep2 = true;
45  fMess = new StepMaxMessenger(this);
46 }
#define DBL_MAX
Definition: templates.hh:83
StepMaxProcess::~StepMaxProcess ( )

Definition at line 50 of file StepMaxProcess.cc.

50 { delete fMess; }

Member Function Documentation

void StepMaxProcess::ApplyMaxStep2 ( G4bool  value)

Definition at line 65 of file StepMaxProcess.cc.

65 {fApplyMaxStep2 = value;}
const XML_Char int const XML_Char * value
Definition: expat.h:331
virtual G4double StepMaxProcess::GetMeanFreePath ( const G4Track ,
G4double  ,
G4ForceCondition  
)
inlinevirtual

Implements G4VDiscreteProcess.

Definition at line 65 of file StepMaxProcess.hh.

66  {return DBL_MAX;};
#define DBL_MAX
Definition: templates.hh:83
G4bool StepMaxProcess::IsApplicable ( const G4ParticleDefinition particle)
virtual

Reimplemented from G4VProcess.

Definition at line 54 of file StepMaxProcess.cc.

55 {
56  return (particle.GetPDGCharge() != 0. && !particle.IsShortLived());
57 }
G4double GetPDGCharge() const

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from G4VDiscreteProcess.

Definition at line 88 of file StepMaxProcess.cc.

90 {
91  // do nothing
93  return &aParticleChange;
94 }
virtual void Initialize(const G4Track &)
G4ParticleChange aParticleChange
Definition: G4VProcess.hh:289

Here is the call graph for this function:

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

Reimplemented from G4VDiscreteProcess.

Definition at line 69 of file StepMaxProcess.cc.

72 {
73  // condition is set to "Not Forced"
75 
76  if (fApplyMaxStep2) {
77  G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
78  G4int ih = 10;
79  if (analysisManager->GetH1Activation(ih))
80  fMaxStep2 = analysisManager->GetH1Width(ih)*analysisManager->GetH1Unit(ih);
81  return fMaxStep2;
82  }
83  else return fMaxStep1;
84 }
G4double condition(const G4ErrorSymMatrix &m)
int G4int
Definition: G4Types.hh:78
G4CsvAnalysisManager G4AnalysisManager
Definition: g4csv_defs.hh:77
void StepMaxProcess::SetMaxStep1 ( G4double  step)

Definition at line 61 of file StepMaxProcess.cc.

61 {fMaxStep1 = step;}

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