Geant4  10.02.p03
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)
 

Private Attributes

G4int theCode1
 
G4int theCode2
 
G4double theX
 
G4double theY
 
G4double theEta
 
G4double theEps
 

Detailed Description

Definition at line 35 of file G4ASCCrossSection.hh.

Constructor & Destructor Documentation

◆ G4ASCCrossSection()

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

◆ GetXsec()

G4double G4ASCCrossSection::GetXsec ( G4double  S)
inlinevirtual

Implements G4VAnnihilationCrossSection.

Definition at line 61 of file G4ASCCrossSection.hh.

62 {
63  G4double result = theX*G4Pow::GetInstance()->powA(S, theEps) +
65  return result;
66 }
static G4Pow * GetInstance()
Definition: G4Pow.cc:55
double S(double temp)
G4double powA(G4double A, G4double y) const
Definition: G4Pow.hh:259
double G4double
Definition: G4Types.hh:76
Here is the call graph for this function:
Here is the caller graph for this function:

◆ InCharge()

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

Implements G4VAnnihilationCrossSection.

Definition at line 53 of file G4ASCCrossSection.hh.

54 {
55  G4bool result;
56  result = (aCode==theCode1&&bCode==theCode2)||(aCode==theCode2&&bCode==theCode1);
57  return result;
58 }
bool G4bool
Definition: G4Types.hh:79
Here is the call graph for this function:

Member Data Documentation

◆ theCode1

G4int G4ASCCrossSection::theCode1
private

Definition at line 43 of file G4ASCCrossSection.hh.

◆ theCode2

G4int G4ASCCrossSection::theCode2
private

Definition at line 44 of file G4ASCCrossSection.hh.

◆ theEps

G4double G4ASCCrossSection::theEps
private

Definition at line 48 of file G4ASCCrossSection.hh.

◆ theEta

G4double G4ASCCrossSection::theEta
private

Definition at line 47 of file G4ASCCrossSection.hh.

◆ theX

G4double G4ASCCrossSection::theX
private

Definition at line 45 of file G4ASCCrossSection.hh.

◆ theY

G4double G4ASCCrossSection::theY
private

Definition at line 46 of file G4ASCCrossSection.hh.


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