Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4LowECapture Class Reference

#include <G4LowECapture.hh>

Inheritance diagram for G4LowECapture:
Collaboration diagram for G4LowECapture:

Public Member Functions

 G4LowECapture (G4double ekinlimit=0.0)
 
virtual ~G4LowECapture ()
 
void SetKinEnergyLimit (G4double)
 
void AddRegion (const G4String &)
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
virtual G4bool IsApplicable (const G4ParticleDefinition &)
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double, G4ForceCondition *)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
- 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 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 &, G4double, G4ForceCondition *)
 
- 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 64 of file G4LowECapture.hh.

Constructor & Destructor Documentation

G4LowECapture::G4LowECapture ( G4double  ekinlimit = 0.0)

Definition at line 50 of file G4LowECapture.cc.

51  : G4VDiscreteProcess("Capture", fElectromagnetic),
52  kinEnergyThreshold(ekinlim),
53  nRegions(0)
54 {}
G4LowECapture::~G4LowECapture ( )
virtual

Definition at line 58 of file G4LowECapture.cc.

59 {}

Member Function Documentation

void G4LowECapture::AddRegion ( const G4String nam)

Definition at line 74 of file G4LowECapture.cc.

75 {
76  G4String r = nam;
77  if(r == "" || r == "world" || r == "World") r = "DefaultRegionForTheWorld";
78  for(G4int i=0; i<nRegions; ++i) {
79  if(regionName[i] == r) { return; }
80  }
81  regionName.push_back(r);
82  ++nRegions;
83  if(verboseLevel > 1) {
84  G4cout << "### G4LowECapture: new G4Region <" << r << ">" << G4endl;
85  }
86 }
G4int verboseLevel
Definition: G4VProcess.hh:368
int G4int
Definition: G4Types.hh:78
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void G4LowECapture::BuildPhysicsTable ( const G4ParticleDefinition )
virtual

Reimplemented from G4VProcess.

Definition at line 90 of file G4LowECapture.cc.

91 {
93  for(G4int i=0; i<nRegions; ++i) {
94  const G4Region* r = store->GetRegion(regionName[i]);
95  if(r && verboseLevel > 0) {
96  G4cout << "### G4LowECapture: new G4Region <"
97  << regionName[i] << "> with tracking cut "
98  << kinEnergyThreshold/keV << " keV" << G4endl;
99  }
100  if(r) { region.push_back(r); }
101  }
102  nRegions = region.size();
103 }
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
G4int verboseLevel
Definition: G4VProcess.hh:368
int G4int
Definition: G4Types.hh:78
static G4RegionStore * GetInstance()
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
static constexpr double keV
Definition: G4SIunits.hh:216

Here is the call graph for this function:

G4double G4LowECapture::GetMeanFreePath ( const G4Track ,
G4double  ,
G4ForceCondition  
)
protectedvirtual

Implements G4VDiscreteProcess.

Definition at line 141 of file G4LowECapture.cc.

143 {
144  return DBL_MAX;
145 }
#define DBL_MAX
Definition: templates.hh:83
G4bool G4LowECapture::IsApplicable ( const G4ParticleDefinition )
virtual

Reimplemented from G4VProcess.

Definition at line 107 of file G4LowECapture.cc.

108 {
109  return true;
110 }
G4VParticleChange * G4LowECapture::PostStepDoIt ( const G4Track aTrack,
const G4Step  
)
virtual

Reimplemented from G4VDiscreteProcess.

Definition at line 130 of file G4LowECapture.cc.

132 {
133  pParticleChange->Initialize(aTrack);
136  return pParticleChange;
137 }
virtual void Initialize(const G4Track &)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
G4double GetKineticEnergy() const
G4VParticleChange * pParticleChange
Definition: G4VProcess.hh:283
void ProposeTrackStatus(G4TrackStatus status)

Here is the call graph for this function:

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

Reimplemented from G4VDiscreteProcess.

Definition at line 112 of file G4LowECapture.cc.

114 {
115  *condition = NotForced;
116  G4double limit = DBL_MAX;
117  if(aTrack.GetKineticEnergy() < kinEnergyThreshold) {
118  for(G4int i=0; i<nRegions; ++i) {
119  if(aTrack.GetVolume()->GetLogicalVolume()->GetRegion() == region[i]) {
120  limit = 0.0;
121  break;
122  }
123  }
124  }
125  return limit;
126 }
G4double condition(const G4ErrorSymMatrix &m)
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76
#define DBL_MAX
Definition: templates.hh:83

Here is the call graph for this function:

void G4LowECapture::SetKinEnergyLimit ( G4double  val)

Definition at line 63 of file G4LowECapture.cc.

64 {
65  kinEnergyThreshold = val;
66  if(verboseLevel > 0) {
67  G4cout << "### G4LowECapture: Tracking cut E(MeV) = "
68  << kinEnergyThreshold/MeV << G4endl;
69  }
70 }
G4int verboseLevel
Definition: G4VProcess.hh:368
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214

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