G4GammaAnnCrossSection Class Reference

#include <G4GammaAnnCrossSection.hh>

Inheritance diagram for G4GammaAnnCrossSection:

G4VAnnihilationCrossSection

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.

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]

Definition at line 40 of file G4GammaAnnCrossSection.hh.

00040 {}


Member Function Documentation

G4double G4GammaAnnCrossSection::GetXsec ( G4double  S  )  [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 }

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

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 }    


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