Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4HadronPhysicsQGSP_BIC_AllHP.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: G4HadronPhysicsQGSP_BIC_AllHP.cc 73040 2013-08-15 09:36:57Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4HadronPhysicsQGSP_BIC_AllHP
31 //
32 // Author: 2013 P. Arce
33 //
34 // based on G4HadronPhysicsQGSP_BIC_HP
35 //
36 //----------------------------------------------------------------------------
37 //
38 #include <iomanip>
39 
40 #include "G4SystemOfUnits.hh"
42 #include "G4ProtonPHPBuilder.hh"
43 
44 #include "G4ProtonBuilder.hh"
45 #include "G4FTFPProtonBuilder.hh"
46 #include "G4QGSPProtonBuilder.hh"
47 #include "G4BinaryProtonBuilder.hh"
48 #include "G4ProtonPHPBuilder.hh"
49 
50 #include "G4NeutronBuilder.hh"
51 #include "G4FTFPNeutronBuilder.hh"
52 #include "G4QGSPNeutronBuilder.hh"
54 #include "G4NeutronPHPBuilder.hh"
55 
56 
57 
58 
60 //
62 
64  : G4HadronPhysicsQGSP_BIC_AllHP("hInelastic QGSP_BIC_HP")
65 {}
66 
69 {
70  minBIC_neutron = 19.9*MeV;
71  maxHP_neutron = 20.*MeV;
72  minBIC_proton = 200.*MeV;
73  maxHP_proton = 200.*MeV;
74 }
75 
77 {
78  auto neu = new G4NeutronBuilder( true ); // Fission on
79  AddBuilder(neu);
80  auto qgs = new G4QGSPNeutronBuilder(QuasiElasticQGS);
81  AddBuilder(qgs);
82  qgs->SetMinEnergy(minQGSP_neutron);
83  neu->RegisterMe(qgs);
84  auto ftf = new G4FTFPNeutronBuilder(QuasiElasticFTF);
85  AddBuilder(ftf);
86  ftf->SetMinEnergy(minFTFP_neutron);
87  ftf->SetMaxEnergy(maxFTFP_neutron);
88  neu->RegisterMe(ftf);
89  auto bic = new G4BinaryNeutronBuilder;
90  AddBuilder(bic);
91  bic->SetMinEnergy(minBIC_neutron);
92  bic->SetMaxEnergy(maxBIC_neutron);
93  neu->RegisterMe(bic);
94  auto hp = new G4NeutronPHPBuilder;
95  AddBuilder(hp);
96  hp->SetMaxEnergy(maxHP_neutron);
97  neu->RegisterMe(hp);
98  neu->Build();
99 }
100 
102 {
103  auto pro = new G4ProtonBuilder;
104  AddBuilder(pro);
105  auto qgs = new G4QGSPProtonBuilder(QuasiElasticQGS);
106  AddBuilder(qgs);
107  qgs->SetMinEnergy(minQGSP_proton);
108  pro->RegisterMe(qgs);
109  auto ftf = new G4FTFPProtonBuilder(QuasiElasticFTF);
110  AddBuilder(ftf);
111  ftf->SetMinEnergy(minFTFP_proton);
112  ftf->SetMaxEnergy(maxFTFP_proton);
113  pro->RegisterMe(ftf);
114  auto bic = new G4BinaryProtonBuilder;
115  AddBuilder(bic);
116  bic->SetMaxEnergy(maxBIC_proton);
117  bic->SetMinEnergy(minBIC_proton);
118  pro->RegisterMe(bic);
119  auto hp = new G4ProtonPHPBuilder;
120  AddBuilder(hp);
121  hp->SetMaxEnergy(maxHP_proton);
122  pro->RegisterMe(hp);
123  pro->Build();
124 }
125 
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
const XML_Char * name
Definition: expat.h:151
static constexpr double MeV
Definition: G4SIunits.hh:214
bool G4bool
Definition: G4Types.hh:79
void AddBuilder(G4PhysicsBuilderInterface *bld)
int G4int
Definition: G4Types.hh:78