Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ASCCrossSection Class Reference

#include <G4ASCCrossSection.hh>

+ Inheritance diagram for G4ASCCrossSection:

Public Member Functions

 G4ASCCrossSection (G4int, G4int, G4double, G4double, G4double, G4double)
 
G4bool InCharge (G4int aCode, G4int bCode)
 
G4double GetXsec (G4double S)
 
virtual G4bool InCharge (G4int aCode, G4int bCode)=0
 
virtual G4double GetXsec (G4double s)=0
 

Detailed Description

Definition at line 32 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 28 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 57 of file G4ASCCrossSection.hh.

59{
60 G4double result = theX*std::pow(S, theEps) + theY*std::pow(S, -theEta);
61 return result;
62}
double G4double
Definition: G4Types.hh:64

◆ InCharge()

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

Implements G4VAnnihilationCrossSection.

Definition at line 49 of file G4ASCCrossSection.hh.

51{
52 G4bool result;
53 result = (aCode==theCode1&&bCode==theCode2)||(aCode==theCode2&&bCode==theCode1);
54 return result;
55}
bool G4bool
Definition: G4Types.hh:67

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