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

#include <G4GammaNuclearReaction.hh>

+ Inheritance diagram for G4GammaNuclearReaction:

Public Member Functions

 G4GammaNuclearReaction (const G4String &name="CHIPSGammaNuclear")
 
virtual ~G4GammaNuclearReaction ()
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
 
void Description () const
 
- Public Member Functions inherited from G4HadronicInteraction
 G4HadronicInteraction (const G4String &modelName="HadronicModel")
 
virtual ~G4HadronicInteraction ()
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)=0
 
virtual G4double SampleInvariantT (const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A)
 
virtual G4bool IsApplicable (const G4HadProjectile &, G4Nucleus &)
 
G4double GetMinEnergy () const
 
G4double GetMinEnergy (const G4Material *aMaterial, const G4Element *anElement) const
 
void SetMinEnergy (G4double anEnergy)
 
void SetMinEnergy (G4double anEnergy, const G4Element *anElement)
 
void SetMinEnergy (G4double anEnergy, const G4Material *aMaterial)
 
G4double GetMaxEnergy () const
 
G4double GetMaxEnergy (const G4Material *aMaterial, const G4Element *anElement) const
 
void SetMaxEnergy (const G4double anEnergy)
 
void SetMaxEnergy (G4double anEnergy, const G4Element *anElement)
 
void SetMaxEnergy (G4double anEnergy, const G4Material *aMaterial)
 
const G4HadronicInteractionGetMyPointer () const
 
G4int GetVerboseLevel () const
 
void SetVerboseLevel (G4int value)
 
const G4StringGetModelName () const
 
void DeActivateFor (const G4Material *aMaterial)
 
void ActivateFor (const G4Material *aMaterial)
 
void DeActivateFor (const G4Element *anElement)
 
void ActivateFor (const G4Element *anElement)
 
G4bool IsBlocked (const G4Material *aMaterial) const
 
G4bool IsBlocked (const G4Element *anElement) const
 
void SetRecoilEnergyThreshold (G4double val)
 
G4double GetRecoilEnergyThreshold () const
 
G4bool operator== (const G4HadronicInteraction &right) const
 
G4bool operator!= (const G4HadronicInteraction &right) const
 
virtual const std::pair< G4double, G4doubleGetFatalEnergyCheckLevels () const
 
virtual std::pair< G4double, G4doubleGetEnergyMomentumCheckLevels () const
 
void SetEnergyMomentumCheckLevels (G4double relativeLevel, G4double absoluteLevel)
 
virtual void ModelDescription (std::ostream &outFile) const
 

Additional Inherited Members

- Protected Member Functions inherited from G4HadronicInteraction
void SetModelName (const G4String &nam)
 
G4bool IsBlocked () const
 
void Block ()
 
- Protected Attributes inherited from G4HadronicInteraction
G4HadFinalState theParticleChange
 
G4int verboseLevel
 
G4double theMinEnergy
 
G4double theMaxEnergy
 
G4bool isBlocked
 

Detailed Description

Definition at line 44 of file G4GammaNuclearReaction.hh.

Constructor & Destructor Documentation

◆ G4GammaNuclearReaction()

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

◆ ~G4GammaNuclearReaction()

G4GammaNuclearReaction::~G4GammaNuclearReaction ( )
virtual

Definition at line 49 of file G4GammaNuclearReaction.cc.

50{}

Member Function Documentation

◆ ApplyYourself()

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

Implements G4HadronicInteraction.

Definition at line 84 of file G4GammaNuclearReaction.cc.

87{
89 {
90 throw G4HadronicException(__FILE__, __LINE__,
91 "Called G4GammaNuclearReaction for particle other than gamma");
92 }
93 return theModel.ApplyYourself(aTrack, aTargetNucleus);
94}
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus, G4HadFinalState *aChange=0)
static G4Gamma * GammaDefinition()
Definition: G4Gamma.cc:81
const G4ParticleDefinition * GetDefinition() const

◆ Description()

void G4GammaNuclearReaction::Description ( ) const

Definition at line 53 of file G4GammaNuclearReaction.cc.

54{
55 char* dirName = getenv("G4PhysListDocDir");
56 if (dirName) {
57 std::ofstream outFile;
58 G4String outFileName = GetModelName() + ".html";
59 G4String pathName = G4String(dirName) + "/" + outFileName;
60
61 outFile.open(pathName);
62 outFile << "<html>\n";
63 outFile << "<head>\n";
64
65 outFile << "<title>Description of CHIPS Gamma Nuclear Model</title>\n";
66 outFile << "</head>\n";
67 outFile << "<body>\n";
68
69 outFile << "G4GammaNuclearReaction handles inelastic gamma scattering\n"
70 << "using the Chiral Invariant Phase Space (CHIPS) model of\n"
71 << "M. Kossov. The incident gamma is interacted directly with\n"
72 << "nucleons and clusters of nucleons within the target by\n"
73 << "forming quasmons (or generalized excited hadrons) which then\n"
74 << "decay into final state hadrons. The model is valid for\n"
75 << "incident gamma energies up to 3.5 GeV.\n";
76
77 outFile << "</body>\n";
78 outFile << "</html>\n";
79 outFile.close();
80 }
81}
const G4String & GetModelName() const

Referenced by G4GammaNuclearReaction().


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