Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4BGGNucleonElasticXS Class Reference

#include <G4BGGNucleonElasticXS.hh>

Inheritance diagram for G4BGGNucleonElasticXS:
Collaboration diagram for G4BGGNucleonElasticXS:

Public Member Functions

 G4BGGNucleonElasticXS (const G4ParticleDefinition *)
 
virtual ~G4BGGNucleonElasticXS ()
 
virtual G4bool IsElementApplicable (const G4DynamicParticle *, G4int Z, const G4Material *mat=0)
 
virtual G4bool IsIsoApplicable (const G4DynamicParticle *, G4int Z, G4int A, const G4Element *elm=0, const G4Material *mat=0)
 
virtual G4double GetElementCrossSection (const G4DynamicParticle *, G4int Z, const G4Material *mat=0)
 
virtual G4double GetIsoCrossSection (const G4DynamicParticle *, G4int Z, G4int A, const G4Isotope *iso=0, const G4Element *elm=0, const G4Material *mat=0)
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
virtual void CrossSectionDescription (std::ostream &) const
 
void SetLowestCrossSection (G4double val)
 
- Public Member Functions inherited from G4VCrossSectionDataSet
 G4VCrossSectionDataSet (const G4String &nam="")
 
virtual ~G4VCrossSectionDataSet ()
 
G4double GetCrossSection (const G4DynamicParticle *, const G4Element *, const G4Material *mat=0)
 
G4double ComputeCrossSection (const G4DynamicParticle *, const G4Element *, const G4Material *mat=0)
 
virtual G4Isotope * SelectIsotope (const G4Element *, G4double kinEnergy)
 
virtual void DumpPhysicsTable (const G4ParticleDefinition &)
 
virtual G4int GetVerboseLevel () const
 
virtual void SetVerboseLevel (G4int value)
 
G4double GetMinKinEnergy () const
 
void SetMinKinEnergy (G4double value)
 
G4double GetMaxKinEnergy () const
 
void SetMaxKinEnergy (G4double value)
 
const G4String & GetName () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VCrossSectionDataSet
void SetName (const G4String &)
 
- Protected Attributes inherited from G4VCrossSectionDataSet
G4int verboseLevel
 

Detailed Description

Definition at line 65 of file G4BGGNucleonElasticXS.hh.

Constructor & Destructor Documentation

G4BGGNucleonElasticXS::G4BGGNucleonElasticXS ( const G4ParticleDefinition *  p)

Definition at line 60 of file G4BGGNucleonElasticXS.cc.

61  : G4VCrossSectionDataSet("Barashenkov-Glauber")
62 {
63  verboseLevel = 0;
64  fGlauberEnergy = 91.*GeV;
65  fPDGEnergy = 5*GeV;
66  fLowEnergy = 14.*MeV;
67  fSAIDLowEnergyLimit = 1*MeV;
68  fSAIDHighEnergyLimit = 1.3*GeV;
69  fLowestXSection = millibarn;
70  for (G4int i = 0; i < 93; ++i) {
71  theGlauberFac[i] = 0.0;
72  theCoulombFac[i] = 0.0;
73  theA[i] = 1;
74  }
75  fNucleon = 0;
76  fGlauber = 0;
77  fHadron = 0;
78  fSAID = 0;
79  particle = p;
80  theProton= G4Proton::Proton();
81  isProton = false;
82  isInitialized = false;
83 }
G4VCrossSectionDataSet(const G4String &nam="")
const char * p
Definition: xmltok.h:285
int G4int
Definition: G4Types.hh:78
static G4Proton * Proton()
Definition: G4Proton.cc:93
static constexpr double GeV
Definition: G4SIunits.hh:217
static constexpr double MeV
Definition: G4SIunits.hh:214
G4bool isInitialized()
static constexpr double millibarn
Definition: G4SIunits.hh:106

Here is the call graph for this function:

G4BGGNucleonElasticXS::~G4BGGNucleonElasticXS ( )
virtual

Definition at line 87 of file G4BGGNucleonElasticXS.cc.

88 {
89  delete fSAID;
90  delete fHadron;
91  // The cross section registry will delete fNucleon
92  delete fGlauber;
93 }

Member Function Documentation

void G4BGGNucleonElasticXS::BuildPhysicsTable ( const G4ParticleDefinition &  p)
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 196 of file G4BGGNucleonElasticXS.cc.

197 {
198  if(&p == theProton || &p == G4Neutron::Neutron()) {
199  particle = &p;
200 
201  } else {
202  G4cout << "### G4BGGNucleonElasticXS WARNING: is not applicable to "
203  << p.GetParticleName()
204  << G4endl;
205  throw G4HadronicException(__FILE__, __LINE__,
206  "G4BGGNucleonElasticXS::BuildPhysicsTable is used for wrong particle");
207  return;
208  }
209 
210  if(isInitialized) { return; }
211  isInitialized = true;
212 
214  fGlauber = new G4ComponentGGHadronNucleusXsc();
215  fHadron = new G4HadronNucleonXsc();
216  fSAID = new G4ComponentSAIDTotalXS();
217 
218  fNucleon->BuildPhysicsTable(*particle);
219  fGlauber->BuildPhysicsTable(*particle);
220 
221  if(particle == theProton) {
222  isProton = true;
223  fSAIDHighEnergyLimit = 3*GeV;
224  }
225 
226  G4ThreeVector mom(0.0,0.0,1.0);
227  G4DynamicParticle dp(particle, mom, fGlauberEnergy);
228 
230 
231  G4double csup, csdn;
232  G4int A;
233 
234  if(verboseLevel > 0) {
235  G4cout << "### G4BGGNucleonElasticXS::Initialise for "
236  << particle->GetParticleName() << G4endl;
237  }
238 
239  for(G4int iz=2; iz<93; iz++) {
240 
241  A = G4lrint(nist->GetAtomicMassAmu(iz));
242  theA[iz] = A;
243 
244  csup = fGlauber->GetElasticGlauberGribov(&dp, iz, A);
245  csdn = fNucleon->GetElasticCrossSection(&dp, iz);
246 
247  theGlauberFac[iz] = csdn/csup;
248  if(verboseLevel > 0) {
249  G4cout << "Z= " << iz << " A= " << A
250  << " factor= " << theGlauberFac[iz] << G4endl;
251  }
252  }
253 
254  theCoulombFac[0] =
255  fSAID->GetElasticIsotopeCrossSection(particle,fSAIDLowEnergyLimit,1,1)
256  /CoulombFactor(fSAIDLowEnergyLimit, 1);
257 
258  dp.SetKineticEnergy(fPDGEnergy);
259  fHadron->GetHadronNucleonXscPDG(&dp, theProton);
260  theCoulombFac[1] = fHadron->GetElasticHadronNucleonXsc();
261 
262  if(verboseLevel > 0) {
263  G4cout << "Z=1 A=1 " << " factor0= " << theCoulombFac[0]
264  << " factor1= " << theCoulombFac[1]
265  << G4endl;
266  }
267 
268  dp.SetKineticEnergy(fLowEnergy);
269  for(G4int iz=2; iz<93; iz++) {
270  theCoulombFac[iz] =
271  fNucleon->GetElasticCrossSection(&dp, iz)/CoulombFactor(fLowEnergy, iz);
272  if(verboseLevel > 0) {
273  G4cout << "Z= " << iz << " A= " << theA[iz]
274  << " factor= " << theCoulombFac[iz] << G4endl;
275  }
276  }
277 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4double GetElasticHadronNucleonXsc()
const char * p
Definition: xmltok.h:285
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
virtual G4double GetElasticIsotopeCrossSection(const G4ParticleDefinition *, G4double kinEnergy, G4int, G4int)
int G4int
Definition: G4Types.hh:78
static G4NistManager * Instance()
const G4String & GetParticleName() const
G4double GetElasticCrossSection(const G4DynamicParticle *aParticle, G4int Z)
G4GLOB_DLL std::ostream G4cout
double A(double temperature)
static G4CrossSectionDataSetRegistry * Instance()
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4double GetElasticGlauberGribov(const G4DynamicParticle *, G4int Z, G4int A)
int G4lrint(double ad)
Definition: templates.hh:163
G4double GetAtomicMassAmu(const G4String &symb) const
static constexpr double GeV
Definition: G4SIunits.hh:217
G4double GetHadronNucleonXscPDG(const G4DynamicParticle *, const G4ParticleDefinition *)
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
G4bool isInitialized()

Here is the call graph for this function:

void G4BGGNucleonElasticXS::CrossSectionDescription ( std::ostream &  outFile) const
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 308 of file G4BGGNucleonElasticXS.cc.

309 {
310  outFile << "The Barashenkov-Glauber-Gribov cross section handles elastic\n"
311  << "scattering of protons and neutrons from nuclei using the\n"
312  << "Barashenkov parameterization below 91 GeV and the Glauber-Gribov\n"
313  << "parameterization above 91 GeV. n";
314 }
G4double G4BGGNucleonElasticXS::GetElementCrossSection ( const G4DynamicParticle *  dp,
G4int  Z,
const G4Material *  mat = 0 
)
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 117 of file G4BGGNucleonElasticXS.cc.

119 {
120  // this method should be called only for Z > 1
121 
122  G4double cross = 0.0;
123  G4double ekin = dp->GetKineticEnergy();
124  G4int Z = ZZ;
125  if(1 == Z) {
126  cross = 1.0115*GetIsoCrossSection(dp,1,1);
127  } else {
128  if(Z > 92) { Z = 92; }
129 
130  if(ekin <= fLowEnergy) {
131  cross = theCoulombFac[Z]*CoulombFactor(ekin, Z);
132 
133  } else if(ekin > fGlauberEnergy) {
134  cross = theGlauberFac[Z]*fGlauber->GetElasticGlauberGribov(dp, Z, theA[Z]);
135  } else {
136  cross = fNucleon->GetElasticCrossSection(dp, Z);
137  }
138  }
139 
140  if(verboseLevel > 1) {
141  G4cout << "G4BGGNucleonElasticXS::GetElementCrossSection for "
142  << dp->GetDefinition()->GetParticleName()
143  << " Ekin(GeV)= " << dp->GetKineticEnergy()/CLHEP::GeV
144  << " in nucleus Z= " << Z << " A= " << theA[Z]
145  << " XS(b)= " << cross/barn
146  << G4endl;
147  }
148  //AR-04Dec2013 if(cross <= fLowestXSection) { cross = 0.0; }
149  return cross;
150 }
G4double GetKineticEnergy() const
G4ParticleDefinition * GetDefinition() const
int G4int
Definition: G4Types.hh:78
virtual G4double GetIsoCrossSection(const G4DynamicParticle *, G4int Z, G4int A, const G4Isotope *iso=0, const G4Element *elm=0, const G4Material *mat=0)
const G4String & GetParticleName() const
G4double GetElasticCrossSection(const G4DynamicParticle *aParticle, G4int Z)
G4GLOB_DLL std::ostream G4cout
G4double GetElasticGlauberGribov(const G4DynamicParticle *, G4int Z, G4int A)
static constexpr double GeV
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
static constexpr double barn
Definition: G4SIunits.hh:105

Here is the call graph for this function:

G4double G4BGGNucleonElasticXS::GetIsoCrossSection ( const G4DynamicParticle *  dp,
G4int  Z,
G4int  A,
const G4Isotope *  iso = 0,
const G4Element *  elm = 0,
const G4Material *  mat = 0 
)
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 155 of file G4BGGNucleonElasticXS.cc.

160 {
161  // this method should be called only for Z = 1
162 
163  G4double cross = 0.0;
164  G4double ekin = dp->GetKineticEnergy();
165 
166  if(ekin <= fSAIDLowEnergyLimit) {
167  cross = theCoulombFac[0]*CoulombFactor(ekin, 1);
168  } else if(ekin <= fSAIDHighEnergyLimit) {
169  cross = fSAID->GetElasticIsotopeCrossSection(particle, ekin, 1, 1);
170  } else if(ekin <= fPDGEnergy) {
171  G4double cross1 =
172  fSAID->GetElasticIsotopeCrossSection(particle, fPDGEnergy, 1, 1);
173  G4double cross2 = theCoulombFac[1];
174  cross = cross1 + (cross2 - cross1)*(ekin - fSAIDHighEnergyLimit)
175  /(fPDGEnergy - fSAIDHighEnergyLimit);
176  } else {
177  fHadron->GetHadronNucleonXscPDG(dp, theProton);
178  cross = fHadron->GetElasticHadronNucleonXsc();
179  }
180  cross *= A;
181 
182  if(verboseLevel > 1) {
183  G4cout << "G4BGGNucleonElasticXS::GetIsoCrossSection for "
184  << dp->GetDefinition()->GetParticleName()
185  << " Ekin(GeV)= " << dp->GetKineticEnergy()/CLHEP::GeV
186  << " in nucleus Z= " << Z << " A= " << A
187  << " XS(b)= " << cross/barn
188  << G4endl;
189  }
190  //AR-04Dec2013 if(cross <= fLowestXSection) { cross = 0.0; }
191  return cross;
192 }
G4double GetElasticHadronNucleonXsc()
G4double GetKineticEnergy() const
virtual G4double GetElasticIsotopeCrossSection(const G4ParticleDefinition *, G4double kinEnergy, G4int, G4int)
G4ParticleDefinition * GetDefinition() const
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
double A(double temperature)
static constexpr double GeV
G4double GetHadronNucleonXscPDG(const G4DynamicParticle *, const G4ParticleDefinition *)
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
static constexpr double barn
Definition: G4SIunits.hh:105

Here is the call graph for this function:

Here is the caller graph for this function:

G4bool G4BGGNucleonElasticXS::IsElementApplicable ( const G4DynamicParticle *  ,
G4int  Z,
const G4Material *  mat = 0 
)
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 98 of file G4BGGNucleonElasticXS.cc.

100 {
101  return true;
102 }
G4bool G4BGGNucleonElasticXS::IsIsoApplicable ( const G4DynamicParticle *  ,
G4int  Z,
G4int  A,
const G4Element *  elm = 0,
const G4Material *  mat = 0 
)
virtual

Reimplemented from G4VCrossSectionDataSet.

Definition at line 106 of file G4BGGNucleonElasticXS.cc.

110 {
111  return (1 == Z);
112 }
void G4BGGNucleonElasticXS::SetLowestCrossSection ( G4double  val)
inline

Definition at line 126 of file G4BGGNucleonElasticXS.hh.

127 {
128  fLowestXSection = val;
129 }

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