Geant4-11
G4HadProcesses.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// ClassName: G4HadProcesses
29//
30// Author: 8 July 2020 V.Ivanchenko
31//
32// Modified:
33//
34//----------------------------------------------------------------------------
35//
36
37#include "G4HadProcesses.hh"
38#include "G4SystemOfUnits.hh"
39#include "G4PhysListUtil.hh"
40#include "G4ParticleTable.hh"
41#include "G4Neutron.hh"
47
49{
51}
52
54{
56}
57
59{
61}
62
64{
66}
67
69{
71}
72
74{
76}
77
79{
81}
82
84{
85 G4CrossSectionInelastic* xs = nullptr;
87 if( comp != nullptr ) {
88 xs = new G4CrossSectionInelastic(comp);
89 } else if( "Glauber-Gribov" == compName ) {
91 } else if( "Glauber-Gribov Nucl-nucl" == compName ) {
93 } else if( "AntiAGlauber" == compName ) {
95 }
96 return xs;
97}
98
100{
101 G4CrossSectionElastic* xs = nullptr;
103 if( comp != nullptr ) {
104 xs = new G4CrossSectionElastic(comp);
105 } else if( "Glauber-Gribov" == compName ) {
107 } else if( "Glauber-Gribov Nucl-nucl" == compName ) {
109 } else if( "AntiAGlauber" == compName ) {
111 }
112 return xs;
113}
114
117{
118 G4bool isOK(false);
119 if( ptr != nullptr ) {
121 if( had != nullptr ) {
122 isOK = true;
123 had->AddDataSet( xs );
124 }
125 }
126 return isOK;
127}
128
130{
132}
133
135{
136 G4bool isOK(false);
137 if( ptr != nullptr ) {
139 if( had != nullptr ) {
140 isOK = true;
141 had->AddDataSet( xs );
142 }
143 }
144 return isOK;
145}
146
148{
150}
151
153{
154 G4bool isOK(false);
156 if( had != nullptr ) {
157 isOK = true;
158 had->AddDataSet( xs );
159 }
160 return isOK;
161}
162
164{
165 G4bool isOK(false);
167 if( had != nullptr ) {
168 isOK = true;
169 had->AddDataSet( xs );
170 }
171 return isOK;
172}
bool G4bool
Definition: G4Types.hh:86
G4VComponentCrossSection * GetComponentCrossSection(const G4String &name)
static G4CrossSectionDataSetRegistry * Instance()
static G4bool AddElasticCrossSection(const G4ParticleDefinition *, G4VCrossSectionDataSet *)
static G4CrossSectionElastic * ElasticXS(const G4String &componentName)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
static const G4ParticleDefinition * FindParticle(const G4String &)
static G4bool AddFissionCrossSection(G4VCrossSectionDataSet *)
static G4HadronicProcess * FindCaptureProcess()
static G4HadronicProcess * FindInelasticProcess(const G4String &)
static G4bool AddInelasticCrossSection(const G4ParticleDefinition *, G4VCrossSectionDataSet *)
static G4bool AddCaptureCrossSection(G4VCrossSectionDataSet *)
static G4HadronicProcess * FindFissionProcess()
static G4CrossSectionInelastic * InelasticXS(const G4String &componentName)
static G4HadronicProcess * FindElasticProcess(const G4ParticleDefinition *)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:103
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
static G4HadronicProcess * FindElasticProcess(const G4ParticleDefinition *)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
static G4HadronicProcess * FindCaptureProcess(const G4ParticleDefinition *)
static G4HadronicProcess * FindFissionProcess(const G4ParticleDefinition *)
string pname
Definition: eplot.py:33