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  ,
G4int  ,
G4double  ,
G4double  ,
G4double  ,
G4double   
)

Definition at line 29 of file G4ASCCrossSection.cc.

00031 {
00032         theCode1 = aCode1;
00033         theCode2 = aCode2;
00034         theX = aX;
00035         theY = aY;
00036         theEta = aEta;
00037         theEps = aEps;
00038 }


Member Function Documentation

G4double G4ASCCrossSection::GetXsec ( G4double  S  )  [inline, virtual]

Implements G4VAnnihilationCrossSection.

Definition at line 58 of file G4ASCCrossSection.hh.

00059 {
00060         G4double result = theX*std::pow(S, theEps) + theY*std::pow(S, -theEta);
00061         return result;
00062 }

G4bool G4ASCCrossSection::InCharge ( G4int  aCode,
G4int  bCode 
) [inline, virtual]

Implements G4VAnnihilationCrossSection.

Definition at line 50 of file G4ASCCrossSection.hh.

00051 {
00052         G4bool result;
00053         result = (aCode==theCode1&&bCode==theCode2)||(aCode==theCode2&&bCode==theCode1);
00054         return result;
00055 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:28 2013 for Geant4 by  doxygen 1.4.7