Geant4  10.02.p03
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 G4VParticleChange * PostStepDoIt (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 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 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 ()
 

Private Member Functions

 G4LowECapture (const G4LowECapture &)
 
G4LowECaptureoperator= (const G4LowECapture &right)
 

Private Attributes

G4double kinEnergyThreshold
 
G4int nRegions
 
std::vector< G4StringregionName
 
std::vector< const G4Region * > region
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VProcess
static const G4StringGetProcessTypeName (G4ProcessType)
 
- 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 64 of file G4LowECapture.hh.

Constructor & Destructor Documentation

◆ G4LowECapture() [1/2]

G4LowECapture::G4LowECapture ( G4double  ekinlimit = 0.0)

Definition at line 50 of file G4LowECapture.cc.

◆ ~G4LowECapture()

G4LowECapture::~G4LowECapture ( )
virtual

Definition at line 58 of file G4LowECapture.cc.

59 {}

◆ G4LowECapture() [2/2]

G4LowECapture::G4LowECapture ( const G4LowECapture )
private

Member Function Documentation

◆ AddRegion()

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
std::vector< G4String > regionName
int G4int
Definition: G4Types.hh:78
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

◆ BuildPhysicsTable()

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 }
G4double kinEnergyThreshold
G4int verboseLevel
Definition: G4VProcess.hh:368
std::vector< G4String > regionName
int G4int
Definition: G4Types.hh:78
static G4RegionStore * GetInstance()
G4GLOB_DLL std::ostream G4cout
std::vector< const G4Region * > region
#define G4endl
Definition: G4ios.hh:61
static const double keV
Definition: G4SIunits.hh:213
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
Here is the call graph for this function:

◆ GetMeanFreePath()

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

◆ IsApplicable()

G4bool G4LowECapture::IsApplicable ( const G4ParticleDefinition )
virtual

Reimplemented from G4VProcess.

Definition at line 107 of file G4LowECapture.cc.

108 {
109  return true;
110 }

◆ operator=()

G4LowECapture& G4LowECapture::operator= ( const G4LowECapture right)
private

◆ PostStepDoIt()

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);
134  pParticleChange->ProposeTrackStatus(fStopAndKill);
135  pParticleChange->ProposeLocalEnergyDeposit(aTrack.GetKineticEnergy());
136  return pParticleChange;
137 }
G4VParticleChange * pParticleChange
Definition: G4VProcess.hh:283

◆ PostStepGetPhysicalInteractionLength()

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 kinEnergyThreshold
G4double condition(const G4ErrorSymMatrix &m)
int G4int
Definition: G4Types.hh:78
std::vector< const G4Region * > region
double G4double
Definition: G4Types.hh:76
#define DBL_MAX
Definition: templates.hh:83

◆ SetKinEnergyLimit()

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) = "
69  }
70 }
G4double kinEnergyThreshold
static const double MeV
Definition: G4SIunits.hh:211
G4int verboseLevel
Definition: G4VProcess.hh:368
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Member Data Documentation

◆ kinEnergyThreshold

G4double G4LowECapture::kinEnergyThreshold
private

Definition at line 96 of file G4LowECapture.hh.

◆ nRegions

G4int G4LowECapture::nRegions
private

Definition at line 97 of file G4LowECapture.hh.

◆ region

std::vector<const G4Region*> G4LowECapture::region
private

Definition at line 99 of file G4LowECapture.hh.

◆ regionName

std::vector<G4String> G4LowECapture::regionName
private

Definition at line 98 of file G4LowECapture.hh.


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