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

#include <G4GammaAnnCrossSection.hh>

+ Inheritance diagram for G4GammaAnnCrossSection:

Public Member Functions

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

Detailed Description

Definition at line 34 of file G4GammaAnnCrossSection.hh.

Constructor & Destructor Documentation

◆ G4GammaAnnCrossSection()

G4GammaAnnCrossSection::G4GammaAnnCrossSection ( )

Definition at line 29 of file G4GammaAnnCrossSection.cc.

31{
32 // pho0 Nucleon
33 theGammaNucXSections.push_back(new G4ASCCrossSection(113, 2212, 13.7, 35.9, 0.45, 0.079));
34 // omega0 Nucleon
35 theGammaNucXSections.push_back(new G4ASCCrossSection(223, 2212, 13.7, 35.9, 0.45, 0.079));
36 // phi0 Nucleon
37 theGammaNucXSections.push_back(new G4ASCCrossSection(333, 2212, 12.2, 26.4, 0.50, 0.079));
38}

◆ ~G4GammaAnnCrossSection()

virtual G4GammaAnnCrossSection::~G4GammaAnnCrossSection ( )
inlinevirtual

Definition at line 40 of file G4GammaAnnCrossSection.hh.

40{}

Member Function Documentation

◆ GetXsec()

G4double G4GammaAnnCrossSection::GetXsec ( G4double  S)
virtual

Implements G4VAnnihilationCrossSection.

Definition at line 55 of file G4GammaAnnCrossSection.cc.

57{
58 G4double result = 0;
59 // ratios from Phys.Lett.B40:121-126,1972; 22% assigned to higher resonances
60
61 typedef std::vector<G4ASCCrossSection*>::iterator iter;
62 iter i;
63 for(i=theGammaNucXSections.begin(); i!=theGammaNucXSections.end(); i++)
64 {
65 result += (*i)->GetXsec(S);
66 }
67
68 // Account for higher resonances.
69 result /= 0.78;
70
71 return result;
72}
double G4double
Definition: G4Types.hh:64

◆ InCharge()

G4bool G4GammaAnnCrossSection::InCharge ( G4int  aCode,
G4int  bCode 
)
virtual

Implements G4VAnnihilationCrossSection.

Definition at line 40 of file G4GammaAnnCrossSection.cc.

42{
43 G4bool result = false;
44 if(aCode==G4Gamma::Gamma()->GetPDGEncoding())
45 {
46 result=true;
47 }
48 else if(bCode==G4Gamma::Gamma()->GetPDGEncoding())
49 {
50 result = true;
51 }
52 return result;
53}
bool G4bool
Definition: G4Types.hh:67
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86

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