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

#include <G4SFDecay.hh>

+ Inheritance diagram for G4SFDecay:

Public Member Functions

 G4SFDecay (const G4ParticleDefinition *theParentNucleus, const G4double &theBR, const G4double &Qvalue, const G4double &excitation, const G4Ions::G4FloatLevelBase &flb)
 
virtual ~G4SFDecay ()
 
virtual G4DecayProductsDecayIt (G4double)
 
virtual void DumpNuclearInfo ()
 
- Public Member Functions inherited from G4NuclearDecay
 G4NuclearDecay (const G4String &channelName, const G4RadioactiveDecayMode &mode, const G4double &excitation, const G4Ions::G4FloatLevelBase &floatingLevel)
 
 ~G4NuclearDecay () override=default
 
G4bool IsOKWithParentMass (G4double parentMass) override
 
G4RadioactiveDecayMode GetDecayMode () const
 
G4double GetDaughterExcitation () const
 
G4Ions::G4FloatLevelBase GetFloatingLevel () const
 
G4ParticleDefinitionGetDaughterNucleus ()
 
- Public Member Functions inherited from G4VDecayChannel
 G4VDecayChannel (const G4String &aName, G4int Verbose=1)
 
 G4VDecayChannel (const G4String &aName, const G4String &theParentName, G4double theBR, G4int theNumberOfDaughters, const G4String &theDaughterName1, const G4String &theDaughterName2="", const G4String &theDaughterName3="", const G4String &theDaughterName4="", const G4String &theDaughterName5="")
 
virtual ~G4VDecayChannel ()
 
G4bool operator== (const G4VDecayChannel &r) const
 
G4bool operator!= (const G4VDecayChannel &r) const
 
G4bool operator< (const G4VDecayChannel &right) const
 
const G4StringGetKinematicsName () const
 
G4double GetBR () const
 
G4int GetNumberOfDaughters () const
 
G4ParticleDefinitionGetParent ()
 
G4ParticleDefinitionGetDaughter (G4int anIndex)
 
G4int GetAngularMomentum ()
 
const G4StringGetParentName () const
 
const G4StringGetDaughterName (G4int anIndex) const
 
G4double GetParentMass () const
 
G4double GetDaughterMass (G4int anIndex) const
 
void SetParent (const G4ParticleDefinition *particle_type)
 
void SetParent (const G4String &particle_name)
 
void SetBR (G4double value)
 
void SetNumberOfDaughters (G4int value)
 
void SetDaughter (G4int anIndex, const G4ParticleDefinition *particle_type)
 
void SetDaughter (G4int anIndex, const G4String &particle_name)
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
void DumpInfo ()
 
G4double GetRangeMass () const
 
void SetRangeMass (G4double val)
 
void SetPolarization (const G4ThreeVector &)
 
const G4ThreeVectorGetPolarization () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VDecayChannel
 G4VDecayChannel ()
 
 G4VDecayChannel (const G4VDecayChannel &)
 
G4VDecayChanneloperator= (const G4VDecayChannel &)
 
void ClearDaughtersName ()
 
void CheckAndFillDaughters ()
 
void CheckAndFillParent ()
 
G4double DynamicalMass (G4double massPDG, G4double width, G4double maxDev=1.0) const
 
- Protected Attributes inherited from G4NuclearDecay
const G4RadioactiveDecayMode theMode
 
- Protected Attributes inherited from G4VDecayChannel
G4String kinematics_name = ""
 
G4double rbranch = 0.0
 
G4Stringparent_name = nullptr
 
G4String ** daughters_name = nullptr
 
G4double rangeMass = 2.5
 
G4ThreeVector parent_polarization
 
G4ParticleTableparticletable = nullptr
 
G4ParticleDefinitionG4MT_parent = nullptr
 
G4ParticleDefinition ** G4MT_daughters = nullptr
 
G4double G4MT_parent_mass = 0.0
 
G4doubleG4MT_daughters_mass = nullptr
 
G4doubleG4MT_daughters_width = nullptr
 
G4Mutex daughtersMutex
 
G4Mutex parentMutex
 
G4int numberOfDaughters = 0
 
G4int verboseLevel = 1
 
- Static Protected Attributes inherited from G4VDecayChannel
static const G4String noName = " "
 

Detailed Description

Definition at line 44 of file G4SFDecay.hh.

Constructor & Destructor Documentation

◆ G4SFDecay()

G4SFDecay::G4SFDecay ( const G4ParticleDefinition * theParentNucleus,
const G4double & theBR,
const G4double & Qvalue,
const G4double & excitation,
const G4Ions::G4FloatLevelBase & flb )

Definition at line 47 of file G4SFDecay.cc.

51 : G4NuclearDecay("SF decay", SpFission, excitationE, flb), transitionQ(Qvalue)
52{
53 SetParent(theParentNucleus); // Store name of parent nucleus, delete G4MT_parent
54 SetBR(branch);
55
56 parentZ = theParentNucleus->GetAtomicNumber();
57 parentA = theParentNucleus->GetAtomicMass();
58
59// SetNumberOfDaughters(0); doesn't seem to work
60// Set to 1 for now
61// When we later install proper fragment generation, set this to 2
62// and modify Z and A in DecayIt()
64 G4IonTable* theIonTable =
66 SetDaughter(0, theIonTable->GetIon(parentZ, parentA, excitationE, flb) );
67}
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
G4NuclearDecay(const G4String &channelName, const G4RadioactiveDecayMode &mode, const G4double &excitation, const G4Ions::G4FloatLevelBase &floatingLevel)
G4int GetAtomicNumber() const
G4int GetAtomicMass() const
static G4ParticleTable * GetParticleTable()
void SetBR(G4double value)
void SetNumberOfDaughters(G4int value)
void SetDaughter(G4int anIndex, const G4ParticleDefinition *particle_type)
void SetParent(const G4ParticleDefinition *particle_type)

◆ ~G4SFDecay()

G4SFDecay::~G4SFDecay ( )
virtual

Definition at line 70 of file G4SFDecay.cc.

71{}

Member Function Documentation

◆ DecayIt()

G4DecayProducts * G4SFDecay::DecayIt ( G4double )
virtual

Implements G4VDecayChannel.

Definition at line 74 of file G4SFDecay.cc.

75{
76 // Fill G4MT_parent with theParentNucleus (stored by SetParent in ctor)
78
79 // Set up final state
80 // parentParticle is set at rest here because boost with correct momentum
81 // is done later
83 G4ThreeVector(0.,0.,0.) );
84 G4DynamicParticle parentParticle(G4MT_parent, atRest);
85 G4DecayProducts* products = new G4DecayProducts(parentParticle);
86
87 // Generate LLNL code for parent nucleus
90
91 // Let G4fissionEvent do the decay
92 // Argument 2 : time, passed through to set time of secondary
93 // Argument 3 : nubar, when set to -1, selects spontaneous fission
94 // Argument 4 : energy used in Watt spectrum
95 G4fissionEvent aFission(code, 10.0, -1, 0.);
96 G4int nNeut = aFission.getNeutronNu();
97 G4int nGam = aFission.getPhotonNu();
98
99 G4DynamicParticle* dynPart = 0;
100 G4ThreeVector direction(0.,0.,0.);
101 G4double KE = 0.; // energy from generator is in MeV
102
103 if (nNeut > 0) {
104 // Put neutrons on the stack
105 for (G4int i = 0; i < nNeut; i++) {
106 KE = aFission.getNeutronEnergy(i);
107 direction.setX(aFission.getNeutronDircosu(i) );
108 direction.setY(aFission.getNeutronDircosv(i) );
109 direction.setZ(aFission.getNeutronDircosw(i) );
110
111 dynPart = new G4DynamicParticle(G4Neutron::Neutron(), direction, KE);
112
113 // Not needed - time comes from parent track
114 // dynPart->SetProperTime(aFission.getNeutronAge(i) );
115
116 products->PushProducts(dynPart);
117 }
118
119 // Put gammas on the stack
120 for (G4int i = 0; i < nGam; i++) {
121 KE = aFission.getPhotonEnergy(i);
122 direction.setX(aFission.getPhotonDircosu(i) );
123 direction.setY(aFission.getPhotonDircosv(i) );
124 direction.setZ(aFission.getPhotonDircosw(i) );
125
126 dynPart = new G4DynamicParticle(G4Gamma::Gamma(), direction, KE);
127
128 // Not needed - time comes from parent track
129 // dynPart->SetProperTime(aFission.getPhotonAge(i) );
130
131 products->PushProducts(dynPart);
132 // No residual nucleus in this model
133 }
134
135 } else {
136 // No data for this isotope, return parent nucleus for now
137// G4cout << " No fission data for this isotope " << G4endl;
138 G4DynamicParticle* parent =
140 products->PushProducts(parent);
141 }
142
143 // Energy conservation check not valid in this model
144
145 return products;
146}
CLHEP::Hep3Vector G4ThreeVector
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
G4int PushProducts(G4DynamicParticle *aParticle)
static G4Gamma * Gamma()
Definition G4Gamma.cc:81
static G4Neutron * Neutron()
Definition G4Neutron.cc:101
G4ParticleDefinition * G4MT_parent

◆ DumpNuclearInfo()

void G4SFDecay::DumpNuclearInfo ( )
virtual

Implements G4NuclearDecay.

Definition at line 149 of file G4SFDecay.cc.

150{
151 G4cout << " G4SFDecay for parent nucleus " << GetParentName() << G4endl;
152 G4cout << " decays to neutrons and gammas, with branching ratio " << GetBR()
153 << "% and Q value " << transitionQ << G4endl;
154}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
G4double GetBR() const
const G4String & GetParentName() const

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