Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4RKFieldIntegrator Class Reference

#include <G4RKFieldIntegrator.hh>

Inheritance diagram for G4RKFieldIntegrator:
G4FieldPropagation

Public Member Functions

 G4RKFieldIntegrator ()
 
 G4RKFieldIntegrator (const G4RKFieldIntegrator &)
 
 ~G4RKFieldIntegrator ()
 
const G4RKFieldIntegratoroperator= (const G4RKFieldIntegrator &)
 
int operator== (const G4RKFieldIntegrator &) const
 
int operator!= (const G4RKFieldIntegrator &) const
 
void Transport (G4KineticTrackVector &theActive, const G4KineticTrackVector &theSpectators, G4double theTimeStep)
 
G4double GetExcitationEnergy (G4int nHitNucleons, const G4KineticTrackVector &theParticles)
 
void Init (G4int z, G4int a)
 
G4double GetNeutronPotential (G4double radius)
 
G4double GetNeutronPotential (G4ThreeVector &aPosition)
 
G4double GetProtonPotential (G4double radius)
 
G4double GetProtonPotential (G4ThreeVector &aPosition)
 
G4double GetAntiprotonPotential (G4double radius)
 
G4double GetAntiprotonPotential (G4ThreeVector &aPosition)
 
G4double GetKaonPotential (G4double radius)
 
G4double GetKaonPotential (G4ThreeVector &aPosition)
 
G4double GetPionPotential (G4double radius)
 
G4double GetPionPotential (G4ThreeVector &aPosition)
 
- Public Member Functions inherited from G4FieldPropagation
 G4FieldPropagation ()
 
 G4FieldPropagation (const G4FieldPropagation &)
 
virtual ~G4FieldPropagation ()
 

Detailed Description

Definition at line 31 of file G4RKFieldIntegrator.hh.

Constructor & Destructor Documentation

G4RKFieldIntegrator::G4RKFieldIntegrator ( )
inline

Definition at line 34 of file G4RKFieldIntegrator.hh.

34 {}
G4RKFieldIntegrator::G4RKFieldIntegrator ( const G4RKFieldIntegrator )
inline

Definition at line 35 of file G4RKFieldIntegrator.hh.

G4RKFieldIntegrator::~G4RKFieldIntegrator ( )
inline

Definition at line 37 of file G4RKFieldIntegrator.hh.

37 {}

Member Function Documentation

G4double G4RKFieldIntegrator::GetAntiprotonPotential ( G4double  radius)
virtual

Implements G4FieldPropagation.

Definition at line 293 of file G4RKFieldIntegrator.cc.

294 {
295  /*
296  //G4double theM = G4NucleiProperties::GetAtomicMass(theA, theZ);
297  G4double theM = theZ * G4Proton::Proton()->GetPDGMass()
298  + (theA - theZ) * G4Neutron::Neutron()->GetPDGMass()
299  + G4CreateNucleus::GetBindingEnergy(theZ, theA);
300 
301  const G4double Mp = 938.27231 * MeV; // mass of proton
302  G4double mu = (theM * Mp)/(theM + Mp);
303 
304  // antiproton's potential coefficient
305  // V = coeff_antiproton * nucleus_density
306  G4double coeff_antiproton = -2.*pi/mu * (1. + Mp) * a_antiproton;
307 
308  G4VNuclearDensity *theDencity;
309  if(theA < 17) theDencity = new G4NuclearShellModelDensity(theA, theZ);
310  else theDencity = new G4NuclearFermiDensity(theA, theZ);
311 
312  // GetDencity() accepts only G4ThreeVector so build it:
313  G4ThreeVector aPosition(0.0, 0.0, radius);
314  G4double density = theDencity->GetDensity(aPosition);
315  delete theDencity;
316 
317  return coeff_antiproton * density;
318  */
319 
320  return 0.0;
321 }
G4double G4RKFieldIntegrator::GetAntiprotonPotential ( G4ThreeVector aPosition)
inlinevirtual

Implements G4FieldPropagation.

Definition at line 61 of file G4RKFieldIntegrator.hh.

References GetAntiprotonPotential(), and CLHEP::Hep3Vector::mag().

Referenced by GetAntiprotonPotential().

61 {return GetAntiprotonPotential(aPosition.mag());};
double mag() const
G4double GetAntiprotonPotential(G4double radius)
G4double G4RKFieldIntegrator::GetExcitationEnergy ( G4int  nHitNucleons,
const G4KineticTrackVector theParticles 
)
virtual

Implements G4FieldPropagation.

Definition at line 182 of file G4RKFieldIntegrator.cc.

References G4UniformRand.

183 {
184  const G4double MeanE = 50;
185  G4double Sum = 0;
186  for(G4int c1 = 0; c1 < nHitNucleons; c1++)
187  {
188  Sum += -MeanE*std::log(G4UniformRand());
189  }
190  return Sum;
191 }
int G4int
Definition: G4Types.hh:78
#define G4UniformRand()
Definition: Randomize.hh:87
double G4double
Definition: G4Types.hh:76
tuple c1
Definition: plottest35.py:14
G4double G4RKFieldIntegrator::GetKaonPotential ( G4double  radius)
virtual

Implements G4FieldPropagation.

Definition at line 323 of file G4RKFieldIntegrator.cc.

324 {
325  /*
326  //G4double theM = G4NucleiProperties::GetAtomicMass(theA, theZ);
327  G4double theM = theZ * G4Proton::Proton()->GetPDGMass()
328  + (theA - theZ) * G4Neutron::Neutron()->GetPDGMass()
329  + G4CreateNucleus::GetBindingEnergy(theZ, theA);
330 
331  const G4double Mk = 496. * MeV; // mass of "kaon"
332  G4double mu = (theM * Mk)/(theM + Mk);
333 
334  // kaon's potential coefficient
335  // V = coeff_kaon * nucleus_density
336  G4double coeff_kaon = -2.*pi/mu * (1. + Mk/theM) * a_kaon;
337 
338  G4VNuclearDensity *theDencity;
339  if(theA < 17) theDencity = new G4NuclearShellModelDensity(theA, theZ);
340  else theDencity = new G4NuclearFermiDensity(theA, theZ);
341 
342  // GetDencity() accepts only G4ThreeVector so build it:
343  G4ThreeVector aPosition(0.0, 0.0, radius);
344  G4double density = theDencity->GetDensity(aPosition);
345  delete theDencity;
346 
347  return coeff_kaon * density;
348  */
349 
350  return 0.0;
351 }
G4double G4RKFieldIntegrator::GetKaonPotential ( G4ThreeVector aPosition)
inlinevirtual

Implements G4FieldPropagation.

Definition at line 64 of file G4RKFieldIntegrator.hh.

References GetKaonPotential(), and CLHEP::Hep3Vector::mag().

Referenced by GetKaonPotential().

64 {return GetKaonPotential(aPosition.mag());}
G4double GetKaonPotential(G4double radius)
double mag() const
G4double G4RKFieldIntegrator::GetNeutronPotential ( G4double  radius)
virtual

Implements G4FieldPropagation.

Definition at line 236 of file G4RKFieldIntegrator.cc.

237 {
238  /*
239  const G4double Mn = 939.56563 * MeV; // mass of nuetron
240 
241  G4VNuclearDensity *theDencity;
242  if(theA < 17) theDencity = new G4NuclearShellModelDensity(theA, theZ);
243  else theDencity = new G4NuclearFermiDensity(theA, theZ);
244 
245  // GetDencity() accepts only G4ThreeVector so build it:
246  G4ThreeVector aPosition(0.0, 0.0, radius);
247  G4double density = theDencity->GetDensity(aPosition);
248  delete theDencity;
249 
250  G4FermiMomentum *fm = new G4FermiMomentum();
251  fm->Init(theA, theZ);
252  G4double fermiMomentum = fm->GetFermiMomentum(density);
253  delete fm;
254 
255  return sqr(fermiMomentum)/(2 * Mn)
256  + G4CreateNucleus::GetBindingEnergy(theZ, theA)/theA;
257  //+ G4NucleiProperties::GetBindingEnergy(theZ, theA)/theA;
258  */
259 
260  return 0.0;
261 }
G4double G4RKFieldIntegrator::GetNeutronPotential ( G4ThreeVector aPosition)
inlinevirtual

Implements G4FieldPropagation.

Definition at line 55 of file G4RKFieldIntegrator.hh.

References GetNeutronPotential(), and CLHEP::Hep3Vector::mag().

Referenced by GetNeutronPotential().

55 {return GetNeutronPotential(aPosition.mag());}
G4double GetNeutronPotential(G4double radius)
double mag() const
G4double G4RKFieldIntegrator::GetPionPotential ( G4double  radius)
virtual

Implements G4FieldPropagation.

Definition at line 353 of file G4RKFieldIntegrator.cc.

354 {
355  /*
356  //G4double theM = G4NucleiProperties::GetAtomicMass(theA, theZ);
357  G4double theM = theZ * G4Proton::Proton()->GetPDGMass()
358  + (theA - theZ) * G4Neutron::Neutron()->GetPDGMass()
359  + G4CreateNucleus::GetBindingEnergy(theZ, theA);
360 
361  const G4double Mpi = 139. * MeV; // mass of "pion"
362  G4double mu = (theM * Mpi)/(theM + Mpi);
363 
364  // pion's potential coefficient
365  // V = coeff_pion * nucleus_density
366  G4double coeff_pion = -2.*pi/mu * (1. + Mpi) * a_pion;
367 
368  G4VNuclearDensity *theDencity;
369  if(theA < 17) theDencity = new G4NuclearShellModelDensity(theA, theZ);
370  else theDencity = new G4NuclearFermiDensity(theA, theZ);
371 
372  // GetDencity() accepts only G4ThreeVector so build it:
373  G4ThreeVector aPosition(0.0, 0.0, radius);
374  G4double density = theDencity->GetDensity(aPosition);
375  delete theDencity;
376 
377  return coeff_pion * density;
378  */
379 
380  return 0.0;
381 }
G4double G4RKFieldIntegrator::GetPionPotential ( G4ThreeVector aPosition)
inlinevirtual

Implements G4FieldPropagation.

Definition at line 67 of file G4RKFieldIntegrator.hh.

References GetPionPotential(), and CLHEP::Hep3Vector::mag().

Referenced by GetPionPotential().

67 {return GetPionPotential(aPosition.mag());}
G4double GetPionPotential(G4double radius)
double mag() const
G4double G4RKFieldIntegrator::GetProtonPotential ( G4double  radius)
virtual

Implements G4FieldPropagation.

Definition at line 263 of file G4RKFieldIntegrator.cc.

264 {
265  /*
266  // calculate Coulomb barrier value
267  G4double theCoulombBarrier = coulomb * theZ/(1. + std::pow(theA, 1./3.));
268  const G4double Mp = 938.27231 * MeV; // mass of proton
269 
270  G4VNuclearDensity *theDencity;
271  if(theA < 17) theDencity = new G4NuclearShellModelDensity(theA, theZ);
272  else theDencity = new G4NuclearFermiDensity(theA, theZ);
273 
274  // GetDencity() accepts only G4ThreeVector so build it:
275  G4ThreeVector aPosition(0.0, 0.0, radius);
276  G4double density = theDencity->GetDensity(aPosition);
277  delete theDencity;
278 
279  G4FermiMomentum *fm = new G4FermiMomentum();
280  fm->Init(theA, theZ);
281  G4double fermiMomentum = fm->GetFermiMomentum(density);
282  delete fm;
283 
284  return sqr(fermiMomentum)/ (2 * Mp)
285  + G4CreateNucleus::GetBindingEnergy(theZ, theA)/theA;
286  //+ G4NucleiProperties::GetBindingEnergy(theZ, theA)/theA
287  + theCoulombBarrier;
288  */
289 
290  return 0.0;
291 }
G4double G4RKFieldIntegrator::GetProtonPotential ( G4ThreeVector aPosition)
inlinevirtual

Implements G4FieldPropagation.

Definition at line 58 of file G4RKFieldIntegrator.hh.

References GetProtonPotential(), and CLHEP::Hep3Vector::mag().

Referenced by GetProtonPotential().

58 {return GetProtonPotential(aPosition.mag());}
G4double GetProtonPotential(G4double radius)
double mag() const
void G4RKFieldIntegrator::Init ( G4int  z,
G4int  a 
)
inlinevirtual

Implements G4FieldPropagation.

Definition at line 51 of file G4RKFieldIntegrator.hh.

References test::a, and z.

51 {theZ = z; theA = a;} // prepare potentials' functions
G4double z
Definition: TRTMaterials.hh:39
int G4RKFieldIntegrator::operator!= ( const G4RKFieldIntegrator ) const
inline

Definition at line 43 of file G4RKFieldIntegrator.hh.

43 {return 1;}
const G4RKFieldIntegrator& G4RKFieldIntegrator::operator= ( const G4RKFieldIntegrator )
inline

Definition at line 40 of file G4RKFieldIntegrator.hh.

40 {return *this;}
int G4RKFieldIntegrator::operator== ( const G4RKFieldIntegrator ) const
inline

Definition at line 42 of file G4RKFieldIntegrator.hh.

42 {return 1;}
void G4RKFieldIntegrator::Transport ( G4KineticTrackVector theActive,
const G4KineticTrackVector theSpectators,
G4double  theTimeStep 
)
virtual

Implements G4FieldPropagation.

Definition at line 42 of file G4RKFieldIntegrator.cc.

References void().

43 {
44  (void)theActive;
45  (void)theSpectators;
46  (void)theTimeStep;
47 }
typedef void(XMLCALL *XML_ElementDeclHandler)(void *userData

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