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

#include <G4XNDeltaTable.hh>

Inheritance diagram for G4XNDeltaTable:
G4VXResonanceTable

Public Member Functions

 G4XNDeltaTable ()
 
 ~G4XNDeltaTable ()
 
virtual G4PhysicsVectorCrossSectionTable () const
 
G4bool operator== (const G4XNDeltaTable &right) const
 
G4bool operator!= (const G4XNDeltaTable &right) const
 
- Public Member Functions inherited from G4VXResonanceTable
 G4VXResonanceTable ()
 
virtual ~G4VXResonanceTable ()
 

Detailed Description

Definition at line 42 of file G4XNDeltaTable.hh.

Constructor & Destructor Documentation

G4XNDeltaTable::G4XNDeltaTable ( )

Definition at line 61 of file G4XNDeltaTable.cc.

61  : size(121)
62 { }
G4XNDeltaTable::~G4XNDeltaTable ( )

Definition at line 65 of file G4XNDeltaTable.cc.

66 { }

Member Function Documentation

G4PhysicsVector * G4XNDeltaTable::CrossSectionTable ( ) const
virtual

Implements G4VXResonanceTable.

Definition at line 69 of file G4XNDeltaTable.cc.

References energy(), python.hepunit::GeV, python.hepunit::millibarn, and G4PhysicsFreeVector::PutValue().

70 {
71  G4PhysicsFreeVector* sigma = new G4PhysicsFreeVector(size);
72 
73  G4int i;
74  for (i=0; i<size; i++)
75  {
76  G4double value = 0.5*sigmaND1232[i] * millibarn;
77  G4double energy = energyTable[i] * GeV;
78  sigma->PutValue(i,energy,value);
79  }
80  return sigma;
81 }
void PutValue(size_t binNumber, G4double binValue, G4double dataValue)
int G4int
Definition: G4Types.hh:78
int millibarn
Definition: hepunit.py:40
double precision function energy(A, Z)
Definition: dpm25nuc6.f:4106
const XML_Char int const XML_Char * value
double G4double
Definition: G4Types.hh:76
G4bool G4XNDeltaTable::operator!= ( const G4XNDeltaTable right) const
G4bool G4XNDeltaTable::operator== ( const G4XNDeltaTable right) const

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