Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4GammaAnnCrossSection Class Reference

#include <G4GammaAnnCrossSection.hh>

Inheritance diagram for G4GammaAnnCrossSection:
Collaboration diagram for G4GammaAnnCrossSection:

Public Member Functions

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

Detailed Description

Definition at line 34 of file G4GammaAnnCrossSection.hh.

Constructor & Destructor Documentation

G4GammaAnnCrossSection::G4GammaAnnCrossSection ( )

Definition at line 30 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 }
virtual G4GammaAnnCrossSection::~G4GammaAnnCrossSection ( )
inlinevirtual

Definition at line 40 of file G4GammaAnnCrossSection.hh.

40 {}

Member Function Documentation

G4double G4GammaAnnCrossSection::GetXsec ( G4double  S)
virtual

Implements G4VAnnihilationCrossSection.

Definition at line 56 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 }
G4double G4ParticleHPJENDLHEData::G4double result
double S(double temp)
double G4double
Definition: G4Types.hh:76
G4bool G4GammaAnnCrossSection::InCharge ( G4int  aCode,
G4int  bCode 
)
virtual

Implements G4VAnnihilationCrossSection.

Definition at line 41 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 }
G4double G4ParticleHPJENDLHEData::G4double result
bool G4bool
Definition: G4Types.hh:79
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86

Here is the call graph for this function:


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