LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
MyG4HadronPhysicsQGSP_BERT_ArHP.cc
Go to the documentation of this file.
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 //
27 //---------------------------------------------------------------------------
28 //
29 // ClassName: G4HadronPhysicsQGSP_BERT_HP
30 //
31 // Author: 2002 J.P. Wellisch
32 //
33 // Modified:
34 // 15.12.2005 G.Folger: migration to non static particles
35 // 08.06.2006 V.Ivanchenko: remove stopping
36 // 20.06.2006 G.Folger: Bertini applies to Kaons, i.e. use SetMinEnergy instead of SetMinPionEnergy
37 // 25.04.2007 G.Folger: Add code for quasielastic
38 // 31.10.2012 A.Ribon: Use G4MiscBuilder
39 // 19.03.2013 A.Ribon: Replace LEP with FTFP
40 // 19.01.2021 D.Rivera: imported into artg4tk based on :
41 // geant4.10.06.p01/source/physics_lists/constructors/hadron_inelastic/src/G4HadronPhysicsQGSP_BERT_HP.cc
42 // Provide our own copy of G4NeutronPHPBuilder.
43 //
44 //----------------------------------------------------------------------------
45 //
46 #include <iomanip>
47 
48 // -- artg4tk includes
51 
52 //#include "Geant4/G4HadronPhysicsQGSP_BERT_HP.hh"
53 
54 #include "Geant4/G4ParticleDefinition.hh"
55 #include "Geant4/G4ParticleTable.hh"
56 #include "Geant4/G4SystemOfUnits.hh"
57 #include "Geant4/G4ios.hh"
58 #include "Geant4/globals.hh"
59 
60 #include "Geant4/G4BertiniNeutronBuilder.hh"
61 #include "Geant4/G4FTFPNeutronBuilder.hh"
62 #include "Geant4/G4NeutronBuilder.hh"
63 #include "Geant4/G4QGSPNeutronBuilder.hh"
64 //#include "Geant4/G4NeutronPHPBuilder.hh"
65 
66 #include "Geant4/G4HadronCaptureProcess.hh"
67 #include "Geant4/G4LFission.hh"
68 #include "Geant4/G4NeutronCaptureXS.hh"
69 #include "Geant4/G4NeutronRadCapture.hh"
70 #include "Geant4/G4ParticleHPCaptureData.hh"
71 #include "Geant4/G4ProcessManager.hh"
72 #include "Geant4/G4ProcessVector.hh"
73 
74 #include "Geant4/G4CrossSectionDataSetRegistry.hh"
75 
76 #include "Geant4/G4PhysListUtil.hh"
77 
78 #include "Geant4/G4HadronicParameters.hh"
79 
80 // factoryGeant4/
81 #include "Geant4/G4PhysicsConstructorFactory.hh"
82 //
84 
86  : MyG4HadronPhysicsQGSP_BERT_ArHP("hInelastic MyQGSP_BERT_ArHP")
87 {}
88 
90  G4bool /*quasiElastic */)
91  : G4HadronPhysicsQGSP_BERT(name)
92 {
93  minBERT_neutron = 19.9 * MeV;
94 }
95 
96 void
98 {
99  auto neu = new G4NeutronBuilder(true); // Fission on
100  AddBuilder(neu);
101  auto qgs = new G4QGSPNeutronBuilder(QuasiElasticQGS);
102  AddBuilder(qgs);
103  qgs->SetMinEnergy(minQGSP_neutron);
104  neu->RegisterMe(qgs);
105  auto ftf = new G4FTFPNeutronBuilder(QuasiElasticFTF);
106  AddBuilder(ftf);
107  ftf->SetMinEnergy(minFTFP_neutron);
108  ftf->SetMaxEnergy(maxFTFP_neutron);
109  neu->RegisterMe(ftf);
110  auto bert = new G4BertiniNeutronBuilder;
111  AddBuilder(bert);
112  bert->SetMinEnergy(minBERT_neutron);
113  bert->SetMaxEnergy(maxBERT_neutron);
114  neu->RegisterMe(bert);
115  auto hp = new MyG4NeutronPHPBuilder;
116  AddBuilder(hp);
117  neu->RegisterMe(hp);
118  neu->Build();
119 }
120 
121 void
123 {
124  // --- Neutrons ---
125  const G4ParticleDefinition* neutron = G4Neutron::Neutron();
126  G4HadronicProcess* capture = G4PhysListUtil::FindCaptureProcess(neutron);
127  if (capture) {
128  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
129  theNeutronRadCapture->SetMinEnergy(minBERT_neutron);
130  capture->RegisterMe(theNeutronRadCapture);
131  }
132  G4HadronicProcess* fission = G4PhysListUtil::FindFissionProcess(neutron);
133  if (fission) {
134  G4LFission* theNeutronLEPFission = new G4LFission();
135  theNeutronLEPFission->SetMinEnergy(minBERT_neutron);
136  theNeutronLEPFission->SetMaxEnergy(G4HadronicParameters::Instance()->GetMaxEnergy());
137  fission->RegisterMe(theNeutronLEPFission);
138  }
139 }
G4_DECLARE_PHYSCONSTR_FACTORY(MyG4HadronPhysicsQGSP_BERT_ArHP)