source: trunk/source/processes/hadronic/cross_sections/include/G4VComponentCrossSection.hh@ 1357

Last change on this file since 1357 was 1350, checked in by garnier, 15 years ago

update to last version 4.9.4

File size: 5.8 KB
RevLine 
[1350]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: G4VComponentCrossSection.hh,v 1.2 2010/10/24 13:04:21 vnivanch Exp $
27// GEANT4 tag $Name: hadr-cross-V09-03-12 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name: G4VComponentCrossSection
35//
36// Authors: G.Folger, V.Ivanchenko, D.Wright
37//
38// Modifications:
39//
40
41//
42// Class Description
43// This is a base class for hadronic cross section data source
44// Class Description - End
45
46#ifndef G4VComponentCrossSection_h
47#define G4VComponentCrossSection_h 1
48
49#include "G4ParticleDefinition.hh"
50#include "G4Element.hh"
51#include "globals.hh"
52
53class G4VComponentCrossSection
54{
55public: //with description
56
57 G4VComponentCrossSection(const G4String& nam = "");
58
59 virtual ~G4VComponentCrossSection();
60
61 inline
62 G4double GetTotalCrossSection(const G4ParticleDefinition*,
63 G4double kinEnergy,
64 const G4Element*);
65
66 virtual
67 G4double GetTotalZandACrossSection(const G4ParticleDefinition*,
68 G4double kinEnergy,
69 G4int /*Z*/, G4int /*N*/) = 0;
70
71 virtual
72 G4double ComputeTotalCrossSection(const G4ParticleDefinition*,
73 G4double kinEnergy,
74 G4int /*Z*/, G4double /*N*/) = 0;
75
76 inline
77 G4double GetInelasticCrossSection(const G4ParticleDefinition*,
78 G4double kinEnergy,
79 const G4Element*);
80
81 virtual
82 G4double GetInelasticZandACrossSection(const G4ParticleDefinition*,
83 G4double kinEnergy,
84 G4int /*Z*/, G4int /*N*/) = 0;
85
86 virtual
87 G4double ComputeInelasticCrossSection(const G4ParticleDefinition*,
88 G4double kinEnergy,
89 G4int /*Z*/, G4double /*N*/) = 0;
90
91 inline
92 G4double GetElasticCrossSection(const G4ParticleDefinition*,
93 G4double kinEnergy,
94 const G4Element*);
95
96 virtual
97 G4double GetElasticZandACrossSection(const G4ParticleDefinition*,
98 G4double kinEnergy,
99 G4int /*Z*/, G4int /*N*/) = 0;
100
101 virtual
102 G4double ComputeElasticCrossSection(const G4ParticleDefinition*,
103 G4double kinEnergy,
104 G4int /*Z*/, G4double /*N*/) = 0;
105
106 virtual
107 G4double ComputeQuasiElasticRatio(const G4ParticleDefinition*,
108 G4double kinEnergy,
109 G4int /*Z*/, G4int /*N*/);
110
111 virtual
112 void BuildPhysicsTable(const G4ParticleDefinition&);
113
114 virtual
115 void DumpPhysicsTable(const G4ParticleDefinition&);
116
117public:
118
119 inline void SetVerboseLevel(G4int value);
120
121 inline G4int GetVerboseLevel() const;
122
123 inline G4double GetMinKinEnergy() const;
124
125 inline void SetMinKinEnergy(G4double value);
126
127 inline G4double GetMaxKinEnergy() const;
128
129 inline void SetMaxKinEnergy(G4double value);
130
131 inline const G4String& GetName() const;
132
133private:
134
135 G4VComponentCrossSection & operator=(const G4VComponentCrossSection &right);
136 G4VComponentCrossSection(const G4VComponentCrossSection&);
137
138 G4int verboseLevel;
139
140 G4double minKinEnergy;
141 G4double maxKinEnergy;
142
143 const G4String name;
144};
145
146inline G4double
147G4VComponentCrossSection::GetTotalCrossSection(const G4ParticleDefinition* p,
148 G4double kinEnergy,
149 const G4Element* elm)
150{
151 return ComputeTotalCrossSection(p, kinEnergy, (G4int)elm->GetZ(), elm->GetN());
152}
153
154inline G4double
155G4VComponentCrossSection::GetInelasticCrossSection(const G4ParticleDefinition* p,
156 G4double kinEnergy,
157 const G4Element* elm)
158{
159 return ComputeInelasticCrossSection(p, kinEnergy, (G4int)elm->GetZ(), elm->GetN());
160}
161
162inline G4double
163G4VComponentCrossSection::GetElasticCrossSection(const G4ParticleDefinition* p,
164 G4double kinEnergy,
165 const G4Element* elm)
166{
167 return ComputeElasticCrossSection(p, kinEnergy, (G4int)elm->GetZ(), elm->GetN());
168}
169
170inline void G4VComponentCrossSection::SetVerboseLevel(G4int value)
171{
172 verboseLevel = value;
173}
174
175inline G4int G4VComponentCrossSection::GetVerboseLevel() const
176{
177 return verboseLevel;
178}
179
180inline void G4VComponentCrossSection::SetMinKinEnergy(G4double value)
181{
182 minKinEnergy = value;
183}
184
185inline G4double G4VComponentCrossSection::GetMinKinEnergy() const
186{
187 return minKinEnergy;
188}
189
190inline void G4VComponentCrossSection::SetMaxKinEnergy(G4double value)
191{
192 maxKinEnergy = value;
193}
194
195inline G4double G4VComponentCrossSection::GetMaxKinEnergy() const
196{
197 return maxKinEnergy;
198}
199
200inline const G4String& G4VComponentCrossSection::GetName() const
201{
202 return name;
203}
204
205#endif
Note: See TracBrowser for help on using the repository browser.