Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ASCCrossSection Class Reference

#include <G4ASCCrossSection.hh>

Inheritance diagram for G4ASCCrossSection:
Collaboration diagram for G4ASCCrossSection:

Public Member Functions

 G4ASCCrossSection (G4int, G4int, G4double, G4double, G4double, G4double)
 
G4bool InCharge (G4int aCode, G4int bCode)
 
G4double GetXsec (G4double S)
 

Detailed Description

Definition at line 35 of file G4ASCCrossSection.hh.

Constructor & Destructor Documentation

G4ASCCrossSection::G4ASCCrossSection ( G4int  aCode1,
G4int  aCode2,
G4double  aX,
G4double  aY,
G4double  aEta,
G4double  aEps 
)

Definition at line 29 of file G4ASCCrossSection.cc.

31 {
32  theCode1 = aCode1;
33  theCode2 = aCode2;
34  theX = aX;
35  theY = aY;
36  theEta = aEta;
37  theEps = aEps;
38 }

Member Function Documentation

G4double G4ASCCrossSection::GetXsec ( G4double  S)
inlinevirtual

Implements G4VAnnihilationCrossSection.

Definition at line 59 of file G4ASCCrossSection.hh.

60 {
61  G4double result = theX*G4Pow::GetInstance()->powA(S, theEps) +
62  theY*G4Pow::GetInstance()->powA(S, -theEta);
63  return result;
64 }
G4double G4ParticleHPJENDLHEData::G4double result
static G4Pow * GetInstance()
Definition: G4Pow.cc:55
G4double powA(G4double A, G4double y) const
Definition: G4Pow.hh:259
double S(double temp)
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

G4bool G4ASCCrossSection::InCharge ( G4int  aCode,
G4int  bCode 
)
inlinevirtual

Implements G4VAnnihilationCrossSection.

Definition at line 52 of file G4ASCCrossSection.hh.

53 {
54  G4bool result;
55  result = (aCode==theCode1&&bCode==theCode2)||(aCode==theCode2&&bCode==theCode1);
56  return result;
57 }
G4double G4ParticleHPJENDLHEData::G4double result
bool G4bool
Definition: G4Types.hh:79

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