Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PolarizedAnnihilation Class Reference

#include <G4PolarizedAnnihilation.hh>

Inheritance diagram for G4PolarizedAnnihilation:

Public Member Functions

 G4PolarizedAnnihilation (const G4String &name="pol-annihil")
virtual ~G4PolarizedAnnihilation () override
virtual void ProcessDescription (std::ostream &) const override
virtual void DumpInfo () const override
virtual G4double GetMeanFreePath (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
virtual void BuildPhysicsTable (const G4ParticleDefinition &) override
G4PolarizedAnnihilationoperator= (const G4PolarizedAnnihilation &right)=delete
 G4PolarizedAnnihilation (const G4PolarizedAnnihilation &)=delete
Public Member Functions inherited from G4eplusAnnihilation
 G4eplusAnnihilation (const G4String &name="annihil")
 ~G4eplusAnnihilation () override
G4bool IsApplicable (const G4ParticleDefinition &p) final
G4VParticleChangeAtRestDoIt (const G4Track &track, const G4Step &stepData) override
G4double AtRestGetPhysicalInteractionLength (const G4Track &track, G4ForceCondition *condition) override
G4eplusAnnihilationoperator= (const G4eplusAnnihilation &right)=delete
 G4eplusAnnihilation (const G4eplusAnnihilation &)=delete
Public Member Functions inherited from G4VEmProcess
 G4VEmProcess (const G4String &name, G4ProcessType type=fElectromagnetic)
 ~G4VEmProcess () override
void ProcessDescription (std::ostream &outFile) const override
void PreparePhysicsTable (const G4ParticleDefinition &) override
void BuildPhysicsTable (const G4ParticleDefinition &) override
void StartTracking (G4Track *) override
G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &) override
G4bool StorePhysicsTable (const G4ParticleDefinition *, const G4String &directory, G4bool ascii=false) override
G4bool RetrievePhysicsTable (const G4ParticleDefinition *, const G4String &directory, G4bool ascii) override
virtual G4VEmProcessGetEmProcess (const G4String &name)
G4double GetLambda (G4double kinEnergy, const G4MaterialCutsCouple *couple, G4double logKinEnergy)
G4double GetCrossSection (const G4double kinEnergy, const G4MaterialCutsCouple *couple) override
G4double ComputeCrossSectionPerAtom (G4double kineticEnergy, G4double Z, G4double A=0., G4double cut=0.0)
G4double MeanFreePath (const G4Track &track)
void SetLambdaBinning (G4int nbins)
void SetMinKinEnergy (G4double e)
void SetMinKinEnergyPrim (G4double e)
void SetMaxKinEnergy (G4double e)
G4PhysicsTableLambdaTable () const
G4PhysicsTableLambdaTablePrim () const
void SetLambdaTable (G4PhysicsTable *)
void SetLambdaTablePrim (G4PhysicsTable *)
std::vector< G4double > * EnergyOfCrossSectionMax () const
void SetEnergyOfCrossSectionMax (std::vector< G4double > *)
G4CrossSectionType CrossSectionType () const
void SetCrossSectionType (G4CrossSectionType val)
const G4ParticleDefinitionParticle () const
const G4ParticleDefinitionSecondaryParticle () const
G4VEmModelSelectModelForMaterial (G4double kinEnergy, std::size_t idxCouple) const
void AddEmModel (G4int, G4VEmModel *, const G4Region *region=nullptr)
void SetEmModel (G4VEmModel *, G4int index=0)
G4int NumberOfModels () const
G4VEmModelEmModel (std::size_t index=0) const
const G4VEmModelGetCurrentModel () const
G4VEmModelGetModelByIndex (G4int idx=0, G4bool ver=false) const
const G4ElementGetCurrentElement () const
void SetCrossSectionBiasingFactor (G4double f, G4bool flag=true)
G4double CrossSectionBiasingFactor () const
void ActivateForcedInteraction (G4double length=0.0, const G4String &r="", G4bool flag=true)
void ActivateSecondaryBiasing (const G4String &region, G4double factor, G4double energyLimit)
void SetEmMasterProcess (const G4VEmProcess *)
void SetBuildTableFlag (G4bool val)
void CurrentSetup (const G4MaterialCutsCouple *, G4double energy)
G4bool UseBaseMaterial () const
void BuildLambdaTable ()
void StreamInfo (std::ostream &outFile, const G4ParticleDefinition &, G4bool rst=false) const
 G4VEmProcess (G4VEmProcess &)=delete
G4VEmProcessoperator= (const G4VEmProcess &right)=delete
Public Member Functions inherited from G4VDiscreteProcess
 G4VDiscreteProcess (const G4String &aName, G4ProcessType aType=fNotDefined)
 G4VDiscreteProcess (G4VDiscreteProcess &)
virtual ~G4VDiscreteProcess ()
G4VDiscreteProcessoperator= (const G4VDiscreteProcess &)=delete
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
virtual G4VParticleChangeAlongStepDoIt (const G4Track &, const G4Step &)
virtual G4double MinPrimaryEnergy (const G4ParticleDefinition *, const G4Material *)
Public Member Functions inherited from G4VProcess
 G4VProcess (const G4String &aName="NoName", G4ProcessType aType=fNotDefined)
 G4VProcess (const G4VProcess &right)
virtual ~G4VProcess ()
G4VProcessoperator= (const G4VProcess &)=delete
G4bool operator== (const G4VProcess &right) const
G4bool 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)
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 const G4VProcessGetCreatorProcess () const
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
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 G4eplusAnnihilation
void InitialiseProcess (const G4ParticleDefinition *) override
void StreamProcessInfo (std::ostream &outFile) const override
Protected Member Functions inherited from G4VEmProcess
G4VEmModelSelectModel (G4double kinEnergy, std::size_t)
G4double GetMeanFreePath (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
G4PhysicsVectorLambdaPhysicsVector (const G4MaterialCutsCouple *)
void DefineMaterial (const G4MaterialCutsCouple *couple)
G4int LambdaBinning () const
G4double MinKinEnergy () const
G4double MaxKinEnergy () const
G4double PolarAngleLimit () const
G4ParticleChangeForGammaGetParticleChange ()
void SetParticle (const G4ParticleDefinition *p)
void SetSecondaryParticle (const G4ParticleDefinition *p)
std::size_t CurrentMaterialCutsCoupleIndex () const
const G4MaterialCutsCoupleMaterialCutsCouple () const
G4bool ApplyCuts () const
G4double GetGammaEnergyCut ()
G4double GetElectronEnergyCut ()
void SetStartFromNullFlag (G4bool val)
void SetSplineFlag (G4bool val)
const G4ElementGetTargetElement () const
const G4IsotopeGetTargetIsotope () const
G4int DensityIndex (G4int idx) const
G4double DensityFactor (G4int idx) const
Protected Member Functions inherited from G4VProcess
void SubtractNumberOfInteractionLengthLeft (G4double prevStepSize)
void ClearNumberOfInteractionLengthLeft ()
Protected Attributes inherited from G4VEmProcess
const G4MaterialCutsCouplecurrentCouple = nullptr
const G4MaterialcurrentMaterial = nullptr
G4EmBiasingManagerbiasManager = nullptr
std::vector< G4double > * theEnergyOfCrossSectionMax = nullptr
G4double mfpKinEnergy = DBL_MAX
G4double preStepKinEnergy = 0.0
G4double preStepLambda = 0.0
G4int mainSecondaries = 1
G4int secID = _EM
G4int fluoID = _Fluorescence
G4int augerID = _AugerElectron
G4int biasID = _EM
G4int tripletID = _TripletElectron
std::size_t currentCoupleIndex = 0
std::size_t basedCoupleIndex = 0
std::size_t coupleIdxLambda = 0
std::size_t idxLambda = 0
G4bool isTheMaster = false
G4bool baseMat = false
std::vector< G4DynamicParticle * > secParticles
G4ParticleChangeForGamma fParticleChange
Protected Attributes inherited from G4VProcess
const G4ProcessManageraProcessManager = nullptr
G4VParticleChangepParticleChange = nullptr
G4ParticleChange aParticleChange
G4double theNumberOfInteractionLengthLeft = -1.0
G4double currentInteractionLength = -1.0
G4double theInitialNumberOfInteractionLength = -1.0
G4String theProcessName
G4String thePhysicsTableFileName
G4ProcessType theProcessType = fNotDefined
G4int theProcessSubType = -1
G4double thePILfactor = 1.0
G4int verboseLevel = 0
G4bool enableAtRestDoIt = true
G4bool enableAlongStepDoIt = true
G4bool enablePostStepDoIt = true

Detailed Description

Definition at line 47 of file G4PolarizedAnnihilation.hh.

Constructor & Destructor Documentation

◆ G4PolarizedAnnihilation() [1/2]

G4PolarizedAnnihilation::G4PolarizedAnnihilation ( const G4String & name = "pol-annihil")
explicit

Definition at line 51 of file G4PolarizedAnnihilation.cc.

53 , fAsymmetryTable(nullptr)
54 , fTransverseAsymmetryTable(nullptr)
55{
56 fEmModel = new G4PolarizedAnnihilationModel();
57 SetEmModel(fEmModel);
58}
void SetEmModel(G4VEmModel *, G4int index=0)
G4eplusAnnihilation(const G4String &name="annihil")

Referenced by G4PolarizedAnnihilation(), and operator=().

◆ ~G4PolarizedAnnihilation()

G4PolarizedAnnihilation::~G4PolarizedAnnihilation ( )
overridevirtual

Definition at line 61 of file G4PolarizedAnnihilation.cc.

61{ CleanTables(); }

◆ G4PolarizedAnnihilation() [2/2]

G4PolarizedAnnihilation::G4PolarizedAnnihilation ( const G4PolarizedAnnihilation & )
delete

Member Function Documentation

◆ BuildPhysicsTable()

void G4PolarizedAnnihilation::BuildPhysicsTable ( const G4ParticleDefinition & part)
overridevirtual

Reimplemented from G4VProcess.

Definition at line 225 of file G4PolarizedAnnihilation.cc.

227{
229 if(isTheMaster)
230 {
231 BuildAsymmetryTables(part);
232 }
233}
void BuildPhysicsTable(const G4ParticleDefinition &) override

◆ DumpInfo()

virtual void G4PolarizedAnnihilation::DumpInfo ( ) const
inlineoverridevirtual

Reimplemented from G4VProcess.

Definition at line 55 of file G4PolarizedAnnihilation.hh.

G4GLOB_DLL std::ostream G4cout
virtual void ProcessDescription(std::ostream &) const override

◆ GetMeanFreePath()

G4double G4PolarizedAnnihilation::GetMeanFreePath ( const G4Track & track,
G4double previousStepSize,
G4ForceCondition * condition )
overridevirtual

Implements G4VDiscreteProcess.

Definition at line 81 of file G4PolarizedAnnihilation.cc.

84{
85 G4double mfp =
86 G4VEmProcess::GetMeanFreePath(track, previousStepSize, condition);
87
88 if(nullptr != fAsymmetryTable && nullptr != fTransverseAsymmetryTable && mfp < DBL_MAX)
89 {
90 mfp *= ComputeSaturationFactor(track);
91 }
92 if(verboseLevel >= 2)
93 {
94 G4cout << "G4PolarizedAnnihilation::MeanFreePath: " << mfp / mm << " mm "
95 << G4endl;
96 }
97 return mfp;
98}
G4double condition(const G4ErrorSymMatrix &m)
double G4double
Definition G4Types.hh:83
#define G4endl
Definition G4ios.hh:67
G4double GetMeanFreePath(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
G4int verboseLevel
#define DBL_MAX
Definition templates.hh:62

◆ operator=()

G4PolarizedAnnihilation & G4PolarizedAnnihilation::operator= ( const G4PolarizedAnnihilation & right)
delete

◆ PostStepGetPhysicalInteractionLength()

G4double G4PolarizedAnnihilation::PostStepGetPhysicalInteractionLength ( const G4Track & track,
G4double previousStepSize,
G4ForceCondition * condition )
overridevirtual

Reimplemented from G4VDiscreteProcess.

Definition at line 101 of file G4PolarizedAnnihilation.cc.

103{
104 // save previous values
107
108 // *** compute unpolarized step limit ***
109 // this changes theNumberOfInteractionLengthLeft and currentInteractionLength
111 track, previousStepSize, condition);
112 G4double x0 = x;
113 G4double satFact = 1.0;
114
115 // *** add corrections on polarisation ***
116 if(nullptr != fAsymmetryTable && nullptr != fTransverseAsymmetryTable && x < DBL_MAX)
117 {
118 satFact = ComputeSaturationFactor(track);
119 G4double curLength = currentInteractionLength * satFact;
120 G4double prvLength = iLength * satFact;
121 if(nLength > 0.0)
122 {
124 std::max(nLength - previousStepSize / prvLength, 0.0);
125 }
126 x = theNumberOfInteractionLengthLeft * curLength;
127 }
128 if(verboseLevel >= 2)
129 {
130 G4cout << "G4PolarizedAnnihilation::PostStepGPIL: " << std::setprecision(8)
131 << x / mm << " mm;" << G4endl
132 << " unpolarized value: "
133 << std::setprecision(8) << x0 / mm << " mm." << G4endl;
134 }
135 return x;
136}
G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
G4double currentInteractionLength
G4double theNumberOfInteractionLengthLeft

◆ ProcessDescription()

void G4PolarizedAnnihilation::ProcessDescription ( std::ostream & out) const
overridevirtual

Reimplemented from G4eplusAnnihilation.

Definition at line 320 of file G4PolarizedAnnihilation.cc.

321{
322 out << "Polarized model for positron annihilation into 2 photons.\n";
323}

Referenced by DumpInfo().


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