Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4LENDBertiniGammaElectroNuclearBuilder.cc
이 파일의 문서화 페이지로 가기
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // $Id: G4BertiniElectroNuclearBuilder.cc 104018 2017-05-08 07:32:45Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4LENDBertiniGammaElectroNuclearBuilder
31 //
32 // Author: 2017 Oct. T. Koi
33 //
34 // Modified:
35 //----------------------------------------------------------------------------
36 //
37 
39 #include "G4LENDorBERTModel.hh"
41 
42 #include "globals.hh"
43 #include "G4ios.hh"
44 #include "G4SystemOfUnits.hh"
45 
46 #include "G4ParticleDefinition.hh"
47 #include "G4ParticleTable.hh"
48 #include "G4Gamma.hh"
49 #include "G4Electron.hh"
50 #include "G4Positron.hh"
51 #include "G4ProcessManager.hh"
52 
55 /*
56  thePhotoNuclearProcess(nullptr), theElectronNuclearProcess(nullptr),
57  thePositronNuclearProcess(nullptr), theElectroReaction(nullptr),
58  theGammaReaction(nullptr), theModel(nullptr), theCascade(nullptr),
59  theStringModel(nullptr), theFragmentation(nullptr), theStringDecay(nullptr),
60  wasActivated(false), eActivated(eNucl)*/
61 {
62 }
63 
65 {
66  if ( wasActivated ) {
67  delete theFragmentation;
68  delete theStringDecay;
69  }
70 }
71 
73 {
74  //G4cout << "G4LENDBertiniGammaElectroNuclearBuilder::Build()" << G4endl;
75 
76  base::Build();
77 
78  if ( getenv ("G4LENDDATA") == NULL ) {
79  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";
80  G4Exception( "G4LENDBertiniGammaElectroNuclearBuilder::Build()"
81  , "G4LENDBertiniGammaElectroNuclearBuilder001"
82  , JustWarning , message);
83  return;
84  }
85 
87  G4LENDorBERTModel* theGammaReactionLowE = new G4LENDorBERTModel( G4Gamma::Gamma() );
88  theGammaReactionLowE->DumpLENDTargetInfo(true);
89  G4LENDCombinedCrossSection* theGammaCrossSectionLowE = new G4LENDCombinedCrossSection( G4Gamma::Gamma() );
90  theGammaReactionLowE->SetMaxEnergy(20*MeV);
91  thePhotoNuclearProcess->RegisterMe(theGammaReactionLowE);
92  thePhotoNuclearProcess->AddDataSet(theGammaCrossSectionLowE);
93 
94 }
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static constexpr double MeV
Definition: G4SIunits.hh:214
void RegisterMe(G4HadronicInteraction *a)
void message(RunManager *runmanager)
Definition: ts_scorers.cc:72
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
bool G4bool
Definition: G4Types.hh:79
void DumpLENDTargetInfo(G4bool force=false)
Definition: G4LENDModel.cc:275
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.hh:65
void AddDataSet(G4VCrossSectionDataSet *aDataSet)