G4GammaNuclearReaction Class Reference

#include <G4GammaNuclearReaction.hh>

Inheritance diagram for G4GammaNuclearReaction:

G4HadronicInteraction

Public Member Functions

 G4GammaNuclearReaction (const G4String &name="CHIPSGammaNuclear")
virtual ~G4GammaNuclearReaction ()
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
void Description () const

Detailed Description

Definition at line 44 of file G4GammaNuclearReaction.hh.


Constructor & Destructor Documentation

G4GammaNuclearReaction::G4GammaNuclearReaction ( const G4String name = "CHIPSGammaNuclear"  ) 

Definition at line 42 of file G4GammaNuclearReaction.cc.

References Description().

00042                                                                   : 
00043   G4HadronicInteraction(name)
00044 {
00045   Description();
00046 }

G4GammaNuclearReaction::~G4GammaNuclearReaction (  )  [virtual]

Definition at line 49 of file G4GammaNuclearReaction.cc.

00050 {}


Member Function Documentation

G4HadFinalState * G4GammaNuclearReaction::ApplyYourself ( const G4HadProjectile aTrack,
G4Nucleus aTargetNucleus 
) [virtual]

Implements G4HadronicInteraction.

Definition at line 84 of file G4GammaNuclearReaction.cc.

References G4ChiralInvariantPhaseSpace::ApplyYourself(), G4Gamma::GammaDefinition(), and G4HadProjectile::GetDefinition().

00087 {
00088   if(aTrack.GetDefinition() != G4Gamma::GammaDefinition())
00089   {
00090     throw G4HadronicException(__FILE__, __LINE__, 
00091                               "Called G4GammaNuclearReaction for particle other than gamma");
00092   }
00093   return theModel.ApplyYourself(aTrack, aTargetNucleus);
00094 }

void G4GammaNuclearReaction::Description (  )  const

Definition at line 53 of file G4GammaNuclearReaction.cc.

References G4HadronicInteraction::GetModelName().

Referenced by G4GammaNuclearReaction().

00054 {
00055   char* dirName = getenv("G4PhysListDocDir");
00056   if (dirName) {
00057     std::ofstream outFile;
00058     G4String outFileName = GetModelName() + ".html";
00059     G4String pathName = G4String(dirName) + "/" + outFileName;
00060 
00061     outFile.open(pathName);
00062     outFile << "<html>\n";
00063     outFile << "<head>\n";
00064 
00065     outFile << "<title>Description of CHIPS Gamma Nuclear Model</title>\n";
00066     outFile << "</head>\n";
00067     outFile << "<body>\n";
00068 
00069     outFile << "G4GammaNuclearReaction handles inelastic gamma scattering\n"
00070             << "using the Chiral Invariant Phase Space (CHIPS) model of\n"
00071             << "M. Kossov.  The incident gamma is interacted directly with\n"
00072             << "nucleons and clusters of nucleons within the target by\n"
00073             << "forming quasmons (or generalized excited hadrons) which then\n"
00074             << "decay into final state hadrons.  The model is valid for\n"
00075             << "incident gamma energies up to 3.5 GeV.\n";
00076 
00077     outFile << "</body>\n";
00078     outFile << "</html>\n";
00079     outFile.close();
00080   }
00081 }


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