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

#include <G4ASCCrossSection.hh>

Inheritance diagram for G4ASCCrossSection:
G4VAnnihilationCrossSection

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 32 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 58 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:76
G4bool G4ASCCrossSection::InCharge ( G4int  aCode,
G4int  bCode 
)
inlinevirtual

Implements G4VAnnihilationCrossSection.

Definition at line 50 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:79

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