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

#include <G4LENDBertiniGammaElectroNuclearBuilder.hh>

+ Inheritance diagram for G4LENDBertiniGammaElectroNuclearBuilder:

Public Member Functions

 G4LENDBertiniGammaElectroNuclearBuilder (G4bool eNucl)
 
virtual ~G4LENDBertiniGammaElectroNuclearBuilder ()
 
virtual void Build ()
 
- Public Member Functions inherited from G4BertiniElectroNuclearBuilder
 G4BertiniElectroNuclearBuilder (G4bool eNucl)
 
virtual ~G4BertiniElectroNuclearBuilder ()
 
virtual void Build ()
 

Additional Inherited Members

- Protected Attributes inherited from G4BertiniElectroNuclearBuilder
G4PhotoNuclearProcessthePhotoNuclearProcess
 
G4ElectronNuclearProcesstheElectronNuclearProcess
 
G4PositronNuclearProcessthePositronNuclearProcess
 
G4ElectroVDNuclearModeltheElectroReaction
 
G4CascadeInterfacetheGammaReaction
 
G4TheoFSGeneratortheModel
 
G4GeneratorPrecompoundInterfacetheCascade
 
G4QGSModel< G4GammaParticipants > * theStringModel
 
G4QGSMFragmentationtheFragmentation
 
G4ExcitedStringDecaytheStringDecay
 
G4bool wasActivated
 
G4bool eActivated
 

Detailed Description

Definition at line 49 of file G4LENDBertiniGammaElectroNuclearBuilder.hh.

Constructor & Destructor Documentation

◆ G4LENDBertiniGammaElectroNuclearBuilder()

G4LENDBertiniGammaElectroNuclearBuilder::G4LENDBertiniGammaElectroNuclearBuilder ( G4bool  eNucl)

◆ ~G4LENDBertiniGammaElectroNuclearBuilder()

G4LENDBertiniGammaElectroNuclearBuilder::~G4LENDBertiniGammaElectroNuclearBuilder ( )
virtual

Definition at line 57 of file G4LENDBertiniGammaElectroNuclearBuilder.cc.

58{
59/*
60 DHW 13 Jan 2020 - fix double deletion error; these deletes are already done in the base class dtor
61 (Coverity bugs 101609 and 101727)
62 if ( wasActivated ) {
63 delete theFragmentation;
64 delete theStringDecay;
65 }
66*/
67}

Member Function Documentation

◆ Build()

void G4LENDBertiniGammaElectroNuclearBuilder::Build ( )
virtual

Reimplemented from G4BertiniElectroNuclearBuilder.

Definition at line 69 of file G4LENDBertiniGammaElectroNuclearBuilder.cc.

70{
71 //G4cout << "G4LENDBertiniGammaElectroNuclearBuilder::Build()" << G4endl;
72
74
75 if ( std::getenv ("G4LENDDATA") == NULL ) {
76 G4String message = "\n Skipping activation of Low Energy Nuclear Data (LEND) model for gamma nuclear interactions.\n The LEND model needs data files and they are available from ftp://gdo-nuclear.ucllnl.org/GND_after2013/GND_v1.3.tar.gz.\n Please set the environment variable G4LENDDATA to point to the directory named v1.3 extracted from the archive file.\n";
77 G4Exception( "G4LENDBertiniGammaElectroNuclearBuilder::Build()"
78 , "G4LENDBertiniGammaElectroNuclearBuilder001"
79 , JustWarning , message);
80 return;
81 }
82
84 G4LENDorBERTModel* theGammaReactionLowE = new G4LENDorBERTModel( G4Gamma::Gamma() );
85 theGammaReactionLowE->DumpLENDTargetInfo(true);
86 G4LENDCombinedCrossSection* theGammaCrossSectionLowE = new G4LENDCombinedCrossSection( G4Gamma::Gamma() );
87 theGammaReactionLowE->SetMaxEnergy(20*MeV);
88 thePhotoNuclearProcess->RegisterMe(theGammaReactionLowE);
89 thePhotoNuclearProcess->AddDataSet(theGammaCrossSectionLowE);
90
91}
@ JustWarning
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
static G4Gamma * Gamma()
Definition: G4Gamma.cc:85
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
void DumpLENDTargetInfo(G4bool force=false)
Definition: G4LENDModel.cc:275

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