Geant4  10.02.p03
G4XNNTotalLowE Class Reference

#include <G4XNNTotalLowE.hh>

Inheritance diagram for G4XNNTotalLowE:
Collaboration diagram for G4XNNTotalLowE:

Public Member Functions

 G4XNNTotalLowE ()
 
virtual ~G4XNNTotalLowE ()
 
virtual G4double CrossSection (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
virtual const G4CrossSectionVectorGetComponents () const
 
virtual G4bool IsValid (G4double e) const
 
virtual G4String Name () const
 
virtual G4double HighLimit () const
 
- Public Member Functions inherited from G4VCrossSectionSource
 G4VCrossSectionSource ()
 
virtual ~G4VCrossSectionSource ()
 
G4bool operator== (const G4VCrossSectionSource &right) const
 
G4bool operator!= (const G4VCrossSectionSource &right) const
 
virtual void Print () const
 
virtual void PrintAll (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
virtual G4double LowLimit () const
 

Private Types

typedef std::map< const G4ParticleDefinition *, G4LowEXsection *, std::less< const G4ParticleDefinition * > > LowEMap
 

Private Member Functions

 G4XNNTotalLowE (const G4XNNTotalLowE &right)
 
const G4XNNTotalLowEoperator= (const G4XNNTotalLowE &right)
 

Private Attributes

std::map< const G4ParticleDefinition *, G4LowEXsection *, std::less< const G4ParticleDefinition * > > theCrossSections
 

Static Private Attributes

static const G4double ppTot [29]
 
static const G4double ss [29]
 
static const G4double npTot [29]
 
static const G4int tableSize = 29
 

Additional Inherited Members

- Protected Member Functions inherited from G4VCrossSectionSource
G4bool InLimits (G4double e, G4double eLow, G4double eHigh) const
 
const G4ParticleDefinitionFindLightParticle (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
G4double FcrossX (G4double e, G4double e0, G4double sigma, G4double eParam, G4double power) const
 
const G4ParticleDefinitionFindKeyParticle (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 

Detailed Description

Definition at line 40 of file G4XNNTotalLowE.hh.

Member Typedef Documentation

◆ LowEMap

typedef std::map<const G4ParticleDefinition *, G4LowEXsection*, std::less<const G4ParticleDefinition *> > G4XNNTotalLowE::LowEMap
private

Definition at line 72 of file G4XNNTotalLowE.hh.

Constructor & Destructor Documentation

◆ G4XNNTotalLowE() [1/2]

G4XNNTotalLowE::G4XNNTotalLowE ( )

Definition at line 53 of file G4XNNTotalLowE.cc.

54 {
55 
57  G4LowEXsection* np = new G4LowEXsection();
58 
59  G4int i;
60  for (i=0; i<tableSize; i++)
61  {
62  std::pair<double,double> it;
63  it.first=ss[i];
64  it.second=ppTot[i]; pp->push_back(it);
65  it.second=npTot[i]; np->push_back(it);
66  }
69 }
static const G4double ppTot[29]
static G4Proton * ProtonDefinition()
Definition: G4Proton.cc:88
int G4int
Definition: G4Types.hh:78
static const G4int tableSize
std::map< const G4ParticleDefinition *, G4LowEXsection *, std::less< const G4ParticleDefinition * > > theCrossSections
static const G4double npTot[29]
static const G4double ss[29]
static G4Neutron * NeutronDefinition()
Definition: G4Neutron.cc:99
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~G4XNNTotalLowE()

G4XNNTotalLowE::~G4XNNTotalLowE ( )
virtual

Definition at line 72 of file G4XNNTotalLowE.cc.

73 {
74 
77 }
static G4Proton * ProtonDefinition()
Definition: G4Proton.cc:88
std::map< const G4ParticleDefinition *, G4LowEXsection *, std::less< const G4ParticleDefinition * > > theCrossSections
static G4Neutron * NeutronDefinition()
Definition: G4Neutron.cc:99
Here is the call graph for this function:

◆ G4XNNTotalLowE() [2/2]

G4XNNTotalLowE::G4XNNTotalLowE ( const G4XNNTotalLowE right)
private

Member Function Documentation

◆ CrossSection()

G4double G4XNNTotalLowE::CrossSection ( const G4KineticTrack trk1,
const G4KineticTrack trk2 
) const
virtual

Implements G4VCrossSectionSource.

Definition at line 79 of file G4XNNTotalLowE.cc.

80 {
81  G4double result = 0.;
82  G4double sqrtS = (trk1.Get4Momentum() + trk2.Get4Momentum()).mag();
83  const G4ParticleDefinition * key = FindKeyParticle(trk1,trk2);
84 
85  if (theCrossSections.find(key)!= theCrossSections.end())
86  {
87  LowEMap::const_iterator iter;
88  for (iter = theCrossSections.begin(); iter != theCrossSections.end(); ++iter)
89  {
90  if ((*iter).first == key)
91  {
92  result = (*iter).second->CrossSection(sqrtS);
93  }
94  }
95  }
96  else
97  {
98  throw G4HadronicException(__FILE__, __LINE__, "G4XNNTotalLowE: particle key out of range");
99  }
100 
101  return result;
102 }
const G4ParticleDefinition * FindKeyParticle(const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
std::map< const G4ParticleDefinition *, G4LowEXsection *, std::less< const G4ParticleDefinition * > > theCrossSections
double G4double
Definition: G4Types.hh:76
const G4LorentzVector & Get4Momentum() const
Here is the call graph for this function:

◆ GetComponents()

virtual const G4CrossSectionVector* G4XNNTotalLowE::GetComponents ( ) const
inlinevirtual

Implements G4VCrossSectionSource.

Definition at line 50 of file G4XNNTotalLowE.hh.

50 { return 0; }
Here is the call graph for this function:

◆ HighLimit()

virtual G4double G4XNNTotalLowE::HighLimit ( ) const
inlinevirtual

Reimplemented from G4VCrossSectionSource.

Definition at line 54 of file G4XNNTotalLowE.hh.

54 { return 3.*CLHEP::GeV; }
static const double GeV
Here is the call graph for this function:

◆ IsValid()

G4bool G4XNNTotalLowE::IsValid ( G4double  e) const
virtual

Reimplemented from G4VCrossSectionSource.

Definition at line 111 of file G4XNNTotalLowE.cc.

112 {
113  G4bool result = e>0&&e<3*GeV;
114  return result;
115 }
bool G4bool
Definition: G4Types.hh:79
static const double GeV
Definition: G4SIunits.hh:214
Here is the caller graph for this function:

◆ Name()

G4String G4XNNTotalLowE::Name ( ) const
virtual

Implements G4VCrossSectionSource.

Definition at line 104 of file G4XNNTotalLowE.cc.

105 {
106  G4String name("NNTotalLowE");
107  return name;
108 }
G4String name
Definition: TRTMaterials.hh:40
Here is the caller graph for this function:

◆ operator=()

const G4XNNTotalLowE& G4XNNTotalLowE::operator= ( const G4XNNTotalLowE right)
private
Here is the caller graph for this function:

Member Data Documentation

◆ npTot

const G4double G4XNNTotalLowE::npTot
staticprivate
Initial value:
=
{
4250, 1380, 770, 585, 465, 300, 232, 175, 140, 100, 80, 63, 50, 40, 35, 34, 34, 36.5, 37., 37.7, 38, 39, 39.8, 40.5, 40.7, 41, 41.2, 41.5, 41.5
}

Definition at line 67 of file G4XNNTotalLowE.hh.

◆ ppTot

const G4double G4XNNTotalLowE::ppTot
staticprivate
Initial value:
=
{
2000, 600, 250, 180, 138, 92, 75, 57, 46, 35, 29.5, 25.5, 25, 24, 23.7, 25, 29, 39, 44, 47, 48, 48, 47.5, 47, 45.6, 45, 43.3, 42.9, 42.9
}

Definition at line 65 of file G4XNNTotalLowE.hh.

◆ ss

const G4double G4XNNTotalLowE::ss
staticprivate
Initial value:
=
{
1877.05, 1879.58, 1882.69, 1884.8, 1886.95, 1891.89, 1895.27, 1899.9, 1904.67, 1913.36, 1921.18, 1933.56, 1949.82, 1990.11, 2025.14, 2059.03, 2101.89, 2166.47, 2201.01, 2236.36, 2289.27, 2377.17, 2426.86, 2500.18, 2602.91, 2733.62, 2925.49, 3002.71
}

Definition at line 66 of file G4XNNTotalLowE.hh.

◆ tableSize

const G4int G4XNNTotalLowE::tableSize = 29
staticprivate

Definition at line 68 of file G4XNNTotalLowE.hh.

◆ theCrossSections

std::map<const G4ParticleDefinition *, G4LowEXsection *, std::less<const G4ParticleDefinition *> > G4XNNTotalLowE::theCrossSections
private

Definition at line 71 of file G4XNNTotalLowE.hh.


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