Geant4  10.01.p03
G4NeutronRadCapture.cc
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // $Id: G4NeutronRadCapture.cc 91067 2015-06-17 09:22:30Z gcosmo $
27 //
28 //
29 // Physics model class G4NeutronRadCapture
30 // Created: 31 August 2009
31 // Author V.Ivanchenko
32 //
33 // Modified:
34 // 09.09.2010 V.Ivanchenko added usage of G4PhotonEvaporation
35 //
36 
37 #include "G4NeutronRadCapture.hh"
38 #include "G4SystemOfUnits.hh"
39 #include "G4ParticleDefinition.hh"
40 #include "G4Fragment.hh"
41 #include "G4FragmentVector.hh"
42 #include "G4NucleiProperties.hh"
43 #include "G4VEvaporationChannel.hh"
44 #include "G4PhotonEvaporation.hh"
46 #include "G4DynamicParticle.hh"
47 #include "G4ParticleTable.hh"
48 #include "G4IonTable.hh"
49 #include "G4Deuteron.hh"
50 #include "G4Triton.hh"
51 #include "G4He3.hh"
52 #include "G4Alpha.hh"
53 
55  : G4HadronicInteraction("nRadCapture"),
56  lab4mom(0.,0.,0.,0.)
57 {
58  lowestEnergyLimit = 10*eV;
59  minExcitation = 1*keV;
60  SetMinEnergy( 0.0*GeV );
61  SetMaxEnergy( 100.*TeV );
62 
65 
67 }
68 
70 {
71  delete photonEvaporation;
72 }
73 
75  const G4HadProjectile& aTrack, G4Nucleus& theNucleus)
76 {
79 
80  G4int A = theNucleus.GetA_asInt();
81  G4int Z = theNucleus.GetZ_asInt();
82 
83  G4double time = aTrack.GetGlobalTime();
84 
85  // Create initial state
86  lab4mom.set(0.,0.,0.,G4NucleiProperties::GetNuclearMass(A, Z));
87  lab4mom += aTrack.Get4Momentum();
88 
89  G4double M = lab4mom.mag();
90  ++A;
92  //G4cout << "Capture start: Z= " << Z << " A= " << A
93  // << " LabM= " << M << " Mcompound= " << mass << G4endl;
94 
95  // simplified method of 1 gamma emission
96  if(A <= 4) {
97 
98  G4ThreeVector bst = lab4mom.boostVector();
99 
100  if(M - mass <= lowestEnergyLimit) {
101  return &theParticleChange;
102  }
103 
104  if (verboseLevel > 1) {
105  G4cout << "G4NeutronRadCapture::DoIt: Eini(MeV)="
106  << aTrack.GetKineticEnergy()/MeV << " Eexc(MeV)= "
107  << (M - mass)/MeV
108  << " Z= " << Z << " A= " << A << G4endl;
109  }
110  G4double e1 = (M - mass)*(M + mass)/(2*M);
111 
112  G4double cost = 2.0*G4UniformRand() - 1.0;
113  if(cost > 1.0) {cost = 1.0;}
114  else if(cost < -1.0) {cost = -1.0;}
115  G4double sint = std::sqrt((1. - cost)*(1.0 + cost));
116  G4double phi = G4UniformRand()*CLHEP::twopi;
117 
118  G4LorentzVector lv2(e1*sint*std::cos(phi),e1*sint*std::sin(phi),
119  e1*cost,e1);
120  lv2.boost(bst);
121  G4HadSecondary* news =
123  news->SetTime(time);
125  delete news;
126 
127  const G4ParticleDefinition* theDef = 0;
128 
129  lab4mom -= lv2;
130  if (Z == 1 && A == 2) {theDef = G4Deuteron::Deuteron();}
131  else if (Z == 1 && A == 3) {theDef = G4Triton::Triton();}
132  else if (Z == 2 && A == 3) {theDef = G4He3::He3();}
133  else if (Z == 2 && A == 4) {theDef = G4Alpha::Alpha();}
134  else { theDef = theTableOfIons->GetIon(Z,A,0.0); }
135 
136  if (verboseLevel > 1) {
137  G4cout << "Gamma 4-mom: " << lv2 << " "
138  << theDef->GetParticleName() << " " << lab4mom << G4endl;
139  }
140  if(theDef) {
141  news = new G4HadSecondary(new G4DynamicParticle(theDef, lab4mom));
142  news->SetTime(time);
144  delete news;
145  }
146 
147  // Use photon evaporation
148  } else {
149 
150  // protection against wrong kinematic
151  if(M < mass) {
152  G4double etot = std::max(mass, lab4mom.e());
153  G4double ptot = sqrt((etot - mass)*(etot + mass));
154  G4ThreeVector v = lab4mom.vect().unit();
155  lab4mom.set(v.x()*ptot,v.y()*ptot,v.z()*ptot,etot);
156  }
157 
158  G4Fragment* aFragment = new G4Fragment(A, Z, lab4mom);
159 
160  if (verboseLevel > 1) {
161  G4cout << "G4NeutronRadCapture::ApplyYourself initial G4Fragmet:"
162  << G4endl;
163  G4cout << aFragment << G4endl;
164  }
165 
166  //
167  // Sample final state
168  //
170  if(!fv) { fv = new G4FragmentVector(); }
171  fv->push_back(aFragment);
172  size_t n = fv->size();
173 
174  if (verboseLevel > 1) {
175  G4cout << "G4NeutronRadCapture: " << n << " final particle" << G4endl;
176  }
177  for(size_t i=0; i<n; ++i) {
178 
179  G4Fragment* f = (*fv)[i];
180  G4double etot = f->GetMomentum().e();
181 
182  Z = f->GetZ_asInt();
183  A = f->GetA_asInt();
184 
185  const G4ParticleDefinition* theDef;
186  if(0 == Z && 0 == A) {theDef = f->GetParticleDefinition();}
187  else if (Z == 1 && A == 2) {theDef = G4Deuteron::Deuteron();}
188  else if (Z == 1 && A == 3) {theDef = G4Triton::Triton();}
189  else if (Z == 2 && A == 3) {theDef = G4He3::He3();}
190  else if (Z == 2 && A == 4) {theDef = G4Alpha::Alpha();}
191  else {
192  G4double eexc = f->GetExcitationEnergy();
193  if(eexc <= minExcitation) { eexc = 0.0; }
194  theDef = theTableOfIons->GetIon(Z, A, eexc);
195  /*
196  G4cout << "### Find ion Z= " << Z << " A= " << A
197  << " Eexc(MeV)= " << eexc/MeV << " "
198  << theDef << G4endl;
199  */
200  }
201  G4double ekin = std::max(0.0,etot - theDef->GetPDGMass());
202  if (verboseLevel > 1) {
203  G4cout << i << ". " << theDef->GetParticleName()
204  << " Ekin(MeV)= " << etot/MeV
205  << " p: " << f->GetMomentum().vect()
206  << G4endl;
207  }
208  G4HadSecondary* news = new G4HadSecondary(
209  new G4DynamicParticle(theDef,
210  f->GetMomentum().vect().unit(),
211  ekin));
212  G4double timeF = f->GetCreationTime();
213  if(timeF < 0.0) { timeF = 0.0; }
214  news->SetTime(time + timeF);
216  delete news;
217  delete f;
218  }
219  delete fv;
220  }
221  return &theParticleChange;
222 }
223 
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
G4int GetA_asInt() const
Definition: G4Nucleus.hh:109
static const double MeV
Definition: G4SIunits.hh:193
static G4double GetNuclearMass(const G4double A, const G4double Z)
CLHEP::Hep3Vector G4ThreeVector
G4PhotonEvaporation * photonEvaporation
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
Definition: G4IonTable.cc:463
const G4ParticleDefinition * GetParticleDefinition() const
Definition: G4Fragment.hh:403
int G4int
Definition: G4Types.hh:78
const G4String & GetParticleName() const
void SetStatusChange(G4HadFinalStateStatus aS)
void SetMinEnergy(G4double anEnergy)
G4IonTable * GetIonTable() const
#define G4UniformRand()
Definition: Randomize.hh:93
G4GLOB_DLL std::ostream G4cout
G4int GetA_asInt() const
Definition: G4Fragment.hh:243
G4double GetCreationTime() const
Definition: G4Fragment.hh:413
const G4LorentzVector & GetMomentum() const
Definition: G4Fragment.hh:276
G4double GetKineticEnergy() const
G4double GetGlobalTime() const
std::vector< G4Fragment * > G4FragmentVector
Definition: G4Fragment.hh:65
static G4Triton * Triton()
Definition: G4Triton.cc:95
static const double GeV
Definition: G4SIunits.hh:196
const G4int n
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static const G4double A[nN]
const G4LorentzVector & Get4Momentum() const
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static const G4double e1
void SetTime(G4double aT)
static const double eV
Definition: G4SIunits.hh:194
G4double GetPDGMass() const
static G4ParticleTable * GetParticleTable()
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4int GetZ_asInt() const
Definition: G4Nucleus.hh:115
G4int GetZ_asInt() const
Definition: G4Fragment.hh:248
void SetMaxEnergy(const G4double anEnergy)
#define G4endl
Definition: G4ios.hh:61
static const double TeV
Definition: G4SIunits.hh:197
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
static const double keV
Definition: G4SIunits.hh:195
virtual G4FragmentVector * BreakUpFragment(G4Fragment *theNucleus)
double G4double
Definition: G4Types.hh:76
static G4He3 * He3()
Definition: G4He3.cc:94
G4double GetExcitationEnergy() const
Definition: G4Fragment.hh:260
CLHEP::HepLorentzVector G4LorentzVector