#include <G4GammaAnnCrossSection.hh>
Inheritance diagram for G4GammaAnnCrossSection:
Public Member Functions | |
G4GammaAnnCrossSection () | |
G4bool | InCharge (G4int aCode, G4int bCode) |
G4double | GetXsec (G4double S) |
virtual | ~G4GammaAnnCrossSection () |
Definition at line 34 of file G4GammaAnnCrossSection.hh.
G4GammaAnnCrossSection::G4GammaAnnCrossSection | ( | ) |
Definition at line 30 of file G4GammaAnnCrossSection.cc.
00031 { 00032 // pho0 Nucleon 00033 theGammaNucXSections.push_back(new G4ASCCrossSection(113, 2212, 13.7, 35.9, 0.45, 0.079)); 00034 // omega0 Nucleon 00035 theGammaNucXSections.push_back(new G4ASCCrossSection(223, 2212, 13.7, 35.9, 0.45, 0.079)); 00036 // phi0 Nucleon 00037 theGammaNucXSections.push_back(new G4ASCCrossSection(333, 2212, 12.2, 26.4, 0.50, 0.079)); 00038 }
virtual G4GammaAnnCrossSection::~G4GammaAnnCrossSection | ( | ) | [inline, virtual] |
Implements G4VAnnihilationCrossSection.
Definition at line 56 of file G4GammaAnnCrossSection.cc.
00057 { 00058 G4double result = 0; 00059 // ratios from Phys.Lett.B40:121-126,1972; 22% assigned to higher resonances 00060 00061 typedef std::vector<G4ASCCrossSection*>::iterator iter; 00062 iter i; 00063 for(i=theGammaNucXSections.begin(); i!=theGammaNucXSections.end(); i++) 00064 { 00065 result += (*i)->GetXsec(S); 00066 } 00067 00068 // Account for higher resonances. 00069 result /= 0.78; 00070 00071 return result; 00072 }
Implements G4VAnnihilationCrossSection.
Definition at line 41 of file G4GammaAnnCrossSection.cc.
References G4Gamma::Gamma().
00042 { 00043 G4bool result = false; 00044 if(aCode==G4Gamma::Gamma()->GetPDGEncoding()) 00045 { 00046 result=true; 00047 } 00048 else if(bCode==G4Gamma::Gamma()->GetPDGEncoding()) 00049 { 00050 result = true; 00051 } 00052 return result; 00053 }