Geant4  10.02.p03
G4ECDecay Class Reference

#include <G4ECDecay.hh>

Inheritance diagram for G4ECDecay:
Collaboration diagram for G4ECDecay:

Public Member Functions

 G4ECDecay (const G4ParticleDefinition *theParentNucleus, const G4double &theBR, const G4double &Qvalue, const G4double &excitation, const G4RadioactiveDecayMode &mode)
 
virtual ~G4ECDecay ()
 
virtual G4DecayProductsDecayIt (G4double)
 
virtual void DumpNuclearInfo ()
 
void SetARM (G4bool onoff)
 
- Public Member Functions inherited from G4NuclearDecay
 G4NuclearDecay (const G4String &channelName, const G4RadioactiveDecayMode &mode, const G4double &excitation)
 
virtual ~G4NuclearDecay ()
 
G4RadioactiveDecayMode GetDecayMode ()
 
G4double GetDaughterExcitation ()
 
G4ParticleDefinitionGetDaughterNucleus ()
 
void SetHLThreshold (G4double HLT)
 
G4double GetHLThreshold ()
 
- 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="")
 
virtual ~G4VDecayChannel ()
 
G4int operator== (const G4VDecayChannel &right) const
 
G4int operator!= (const G4VDecayChannel &right) const
 
G4int 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)
 
virtual G4bool IsOKWithParentMass (G4double parentMass)
 
void SetPolarization (const G4ThreeVector &)
 
const G4ThreeVectorGetPolarization () const
 

Private Attributes

const G4double transitionQ
 
G4bool applyARM
 

Additional Inherited Members

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

Detailed Description

Definition at line 42 of file G4ECDecay.hh.

Constructor & Destructor Documentation

◆ G4ECDecay()

G4ECDecay::G4ECDecay ( const G4ParticleDefinition theParentNucleus,
const G4double theBR,
const G4double Qvalue,
const G4double excitation,
const G4RadioactiveDecayMode mode 
)

Definition at line 47 of file G4ECDecay.cc.

51  : G4NuclearDecay("electron capture", mode, excitationE), transitionQ(Qvalue),
52  applyARM(true)
53 {
54  SetParent(theParentNucleus); // Store name of parent nucleus, delete G4MT_parent
55  SetBR(branch);
56 
58  G4IonTable* theIonTable =
60  G4int daughterZ = theParentNucleus->GetAtomicNumber() - 1;
61  G4int daughterA = theParentNucleus->GetAtomicMass();
62  SetDaughter(0, theIonTable->GetIon(daughterZ, daughterA, excitationE) );
63  SetDaughter(1, "nu_e");
64 }
void SetBR(G4double value)
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
Definition: G4IonTable.cc:491
int G4int
Definition: G4Types.hh:78
G4IonTable * GetIonTable() const
void SetNumberOfDaughters(G4int value)
G4bool applyARM
Definition: G4ECDecay.hh:59
G4int GetAtomicNumber() const
const G4double transitionQ
Definition: G4ECDecay.hh:58
static G4ParticleTable * GetParticleTable()
G4NuclearDecay(const G4String &channelName, const G4RadioactiveDecayMode &mode, const G4double &excitation)
void SetParent(const G4ParticleDefinition *particle_type)
void SetDaughter(G4int anIndex, const G4ParticleDefinition *particle_type)
G4int GetAtomicMass() const
Here is the call graph for this function:

◆ ~G4ECDecay()

G4ECDecay::~G4ECDecay ( )
virtual

Definition at line 67 of file G4ECDecay.cc.

68 {}

Member Function Documentation

◆ DecayIt()

G4DecayProducts * G4ECDecay::DecayIt ( G4double  )
virtual

Implements G4VDecayChannel.

Definition at line 71 of file G4ECDecay.cc.

72 {
73  // Fill G4MT_parent with theParentNucleus (stored by SetParent in ctor)
75 
76  // Fill G4MT_daughters with alpha and residual nucleus (stored by SetDaughter)
78 
79  // Get shell number of captured electron
80  G4int shellIndex = -1;
81  switch (theMode)
82  {
83  case KshellEC:
84  shellIndex = 0;
85  break;
86  case LshellEC:
87  shellIndex = G4int(G4UniformRand()*3) + 1;
88  break;
89  case MshellEC:
90  shellIndex = G4int(G4UniformRand()*3) + 4;
91  break;
92  default:
93  G4Exception("G4ECDecay::DecayIt()", "HAD_RDM_009",
94  FatalException, "Invalid electron shell selected");
95  }
96 
97  // Initialize decay products with parent nucleus at rest
98  G4DynamicParticle parentParticle(G4MT_parent, G4ThreeVector(0,0,0), 0.0);
99  G4DecayProducts* products = new G4DecayProducts(parentParticle);
100  G4double eBind = 0.0;
101 
102  // G4LossTableManager must already be initialized with G4UAtomicDeexcitation
103  // This is currently done in G4RadioactiveDecay::BuildPhysicsTable
104  G4VAtomDeexcitation* atomDeex =
106  std::vector<G4DynamicParticle*> armProducts;
107 
108  if (applyARM) {
109  if (atomDeex) {
112  if (shellIndex >= nShells) shellIndex = nShells;
114  const G4AtomicShell* shell = atomDeex->GetAtomicShell(aZ, as);
115  eBind = shell->BindingEnergy();
116  if (atomDeex->IsFluoActive() && aZ > 5 && aZ < 100) {
117  // Do atomic relaxation
118  // VI, SI
119  // Allows fixing of Bugzilla 1727
120  //const G4double deexLimit = 0.1*keV;
121  G4double deexLimit = 0.1*keV;
122  if (G4EmParameters::Instance()->DeexcitationIgnoreCut()) deexLimit =0.;
123  //
124  atomDeex->GenerateParticles(&armProducts, shell, aZ, deexLimit, deexLimit);
125  }
126 
127  G4double productEnergy = 0.;
128  for (G4int i = 0; i < G4int(armProducts.size()); i++)
129  productEnergy += armProducts[i]->GetKineticEnergy();
130 
131  G4double deficit = shell->BindingEnergy() - productEnergy;
132  if (deficit > 0.0) {
133  // Add a dummy electron to make up extra energy
134  G4double cosTh = 1.-2.*G4UniformRand();
135  G4double sinTh = std::sqrt(1.- cosTh*cosTh);
136  G4double phi = twopi*G4UniformRand();
137 
138  G4ThreeVector electronDirection(sinTh*std::sin(phi),
139  sinTh*std::cos(phi), cosTh);
140  G4DynamicParticle* extra =
141  new G4DynamicParticle(G4Electron::Electron(), electronDirection,
142  deficit);
143  armProducts.push_back(extra);
144  }
145  } // atomDeex
146  } // applyARM
147 
148  G4double daughterMass = G4MT_daughters[0]->GetPDGMass();
149 
150  // CM momentum using Q value corrected for binding energy of captured electron
151  G4double Q = transitionQ - eBind;
152  G4double cmMomentum = Q*(Q + 2.*daughterMass)/(Q + daughterMass)/2.;
153 
154  G4double costheta = 2.*G4UniformRand() - 1.0;
155  G4double sintheta = std::sqrt(1.0 - costheta*costheta);
157  G4ThreeVector direction(sintheta*std::cos(phi),sintheta*std::sin(phi),
158  costheta);
159  G4double KE = cmMomentum;
160  G4DynamicParticle* daughterParticle =
161  new G4DynamicParticle(G4MT_daughters[1], direction, KE, 0.0);
162  products->PushProducts(daughterParticle);
163 
164  KE = std::sqrt(cmMomentum*cmMomentum + daughterMass*daughterMass) - daughterMass;
165  daughterParticle =
166  new G4DynamicParticle(G4MT_daughters[0], -1.0*direction, KE, daughterMass);
167  products->PushProducts(daughterParticle);
168 
169  G4int nArm = armProducts.size();
170  if (nArm > 0) {
171  G4ThreeVector bst = daughterParticle->Get4Momentum().boostVector();
172  for (G4int i = 0; i < nArm; ++i) {
173  G4DynamicParticle* dp = armProducts[i];
174  G4LorentzVector lv = dp->Get4Momentum().boost(bst);
175  dp->Set4Momentum(lv);
176  products->PushProducts(dp);
177  }
178  }
179 
180  // Energy conservation check
181  /*
182  G4int newSize = products->entries();
183  G4DynamicParticle* temp = 0;
184  G4double KEsum = 0.0;
185  for (G4int i = 0; i < newSize; i++) {
186  temp = products->operator[](i);
187  KEsum += temp->GetKineticEnergy();
188  }
189 
190  G4double eCons = (transitionQ - KEsum)/keV;
191  G4cout << " EC check: Ediff (keV) = " << eCons << G4endl;
192  */
193  return products;
194 }
const G4RadioactiveDecayMode theMode
void CheckAndFillDaughters()
static G4LossTableManager * Instance()
G4bool DeexcitationIgnoreCut() const
CLHEP::Hep3Vector G4ThreeVector
G4int PushProducts(G4DynamicParticle *aParticle)
G4ParticleDefinition * G4MT_parent
G4ParticleDefinition ** G4MT_daughters
static double Q[]
int G4int
Definition: G4Types.hh:78
virtual const G4AtomicShell * GetAtomicShell(G4int Z, G4AtomicShellEnumerator shell)=0
#define G4UniformRand()
Definition: Randomize.hh:97
HepLorentzVector & boost(double, double, double)
static const double twopi
Definition: G4SIunits.hh:75
G4bool applyARM
Definition: G4ECDecay.hh:59
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
static const double rad
Definition: G4SIunits.hh:148
void Set4Momentum(const G4LorentzVector &momentum)
G4int GetAtomicNumber() const
const G4double transitionQ
Definition: G4ECDecay.hh:58
void GenerateParticles(std::vector< G4DynamicParticle *> *secVect, const G4AtomicShell *, G4int Z, G4int coupleIndex)
Hep3Vector boostVector() const
static G4EmParameters * Instance()
G4LorentzVector Get4Momentum() const
static G4Electron * Electron()
Definition: G4Electron.cc:94
G4VAtomDeexcitation * AtomDeexcitation()
static const double keV
Definition: G4SIunits.hh:213
double G4double
Definition: G4Types.hh:76
G4double BindingEnergy() const
G4AtomicShellEnumerator
static G4int GetNumberOfShells(G4int Z)
Here is the call graph for this function:

◆ DumpNuclearInfo()

void G4ECDecay::DumpNuclearInfo ( )
virtual

Implements G4NuclearDecay.

Definition at line 197 of file G4ECDecay.cc.

198 {
199  G4cout << " G4ECDecay of parent nucleus " << GetParentName() << " from ";
200  if (theMode == 3) {
201  G4cout << "K shell";
202  } else if (theMode == 4) {
203  G4cout << "L shell";
204  } else if (theMode == 5) {
205  G4cout << "M shell";
206  }
207  G4cout << G4endl;
208  G4cout << " to " << GetDaughterName(0) << " + " << GetDaughterName(1)
209  << " with branching ratio " << GetBR() << "% and Q value "
210  << transitionQ << G4endl;
211 }
const G4RadioactiveDecayMode theMode
const G4String & GetParentName() const
G4GLOB_DLL std::ostream G4cout
const G4double transitionQ
Definition: G4ECDecay.hh:58
#define G4endl
Definition: G4ios.hh:61
const G4String & GetDaughterName(G4int anIndex) const
G4double GetBR() const
Here is the call graph for this function:

◆ SetARM()

void G4ECDecay::SetARM ( G4bool  onoff)
inline

Definition at line 55 of file G4ECDecay.hh.

55 {applyARM = onoff;}
G4bool applyARM
Definition: G4ECDecay.hh:59
Here is the caller graph for this function:

Member Data Documentation

◆ applyARM

G4bool G4ECDecay::applyARM
private

Definition at line 59 of file G4ECDecay.hh.

◆ transitionQ

const G4double G4ECDecay::transitionQ
private

Definition at line 58 of file G4ECDecay.hh.


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