Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4HadronicProcessStore.hh
이 파일의 문서화 페이지로 가기
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: G4HadronicProcessStore.hh 110586 2018-05-31 12:01:42Z gcosmo $
27 //
28 //
29 // -------------------------------------------------------------------
30 //
31 // GEANT4 Class header file
32 //
33 //
34 // File name: G4HadronicProcessStore
35 //
36 // Author: Vladimir Ivanchenko
37 //
38 // Creation date: 09.05.2008
39 //
40 // Modifications:
41 //
42 //
43 // Class Description:
44 //
45 
46 // -------------------------------------------------------------------
47 //
48 
49 #ifndef G4HadronicProcessStore_h
50 #define G4HadronicProcessStore_h 1
51 
52 
53 #include "globals.hh"
54 #include "G4DynamicParticle.hh"
55 #include "G4ThreeVector.hh"
56 #include "G4HadronicProcess.hh"
57 #include "G4HadronicInteraction.hh"
58 #include "G4ParticleDefinition.hh"
59 #include "G4HadronicProcessType.hh"
61 #include <map>
62 #include <vector>
63 #include <iostream>
64 
65 class G4Element;
67 
69 {
70 
72 
73 public:
74 
76 
78 
79  void Clean();
83  const G4VProcess* process,
84  const G4Element* element,
85  const G4Material* material=nullptr);
86 
90  const G4VProcess* process,
91  const G4Material* material);
92 
94  const G4ParticleDefinition *aParticle,
96  const G4Material *material);
97 
99  const G4ParticleDefinition *aParticle,
101  const G4Element *anElement,
102  const G4Material* mat=nullptr);
103 
105  const G4ParticleDefinition *aParticle,
107  G4int Z, G4int A);
108 
110  const G4ParticleDefinition *aParticle,
112  const G4Material *material);
113 
115  const G4ParticleDefinition *aParticle,
117  const G4Element *anElement, const G4Material* mat=0);
118 
120  const G4ParticleDefinition *aParticle,
122  G4int Z, G4int A);
123 
125  const G4ParticleDefinition *aParticle,
127  const G4Material *material);
128 
130  const G4ParticleDefinition *aParticle,
132  const G4Element *anElement,
133  const G4Material* mat=nullptr);
134 
136  const G4ParticleDefinition *aParticle,
138  G4int Z, G4int A);
139 
141  const G4ParticleDefinition *aParticle,
143  const G4Material *material);
144 
146  const G4ParticleDefinition *aParticle,
148  const G4Element *anElement,
149  const G4Material* mat=nullptr);
150 
152  const G4ParticleDefinition *aParticle,
154  G4int Z, G4int A);
155 
157  const G4ParticleDefinition *aParticle,
159  const G4Material *material);
160 
162  const G4ParticleDefinition *aParticle,
164  const G4Element *anElement,
165  const G4Material* mat=nullptr);
166 
168  const G4ParticleDefinition *aParticle,
170  G4int Z, G4int A);
171 
172  // register/deregister processes following G4HadronicProcess interface
173  void Register(G4HadronicProcess*);
174 
176  const G4ParticleDefinition*);
177 
180 
182 
183  // register/deregister processes following only G4VProcess interface
185 
187  const G4ParticleDefinition*);
188 
190 
191  void SetBuildXSTable(G4bool val);
192 
193  G4bool GetBuildXSTable() const;
194 
195  void PrintInfo(const G4ParticleDefinition*);
196 
197  void Dump(G4int level);
198  void DumpHtml();
199  void PrintHtml(const G4ParticleDefinition*, std::ofstream&);
200  void PrintModelHtml(const G4HadronicInteraction * model) const;
201 
202  void SetVerbose(G4int val);
203 
204  G4int GetVerbose();
205 
207  G4HadronicProcessType subType);
208 
209  // Energy-momentum non-conservation limits and reporting
210  void SetEpReportLevel(G4int level);
211 
212  void SetProcessAbsLevel(G4double absoluteLevel);
213 
214  void SetProcessRelLevel(G4double relativeLevel);
215 
216 private:
217 
218  // constructor
220 
221  // print process info
222  void Print(G4int idxProcess, G4int idxParticle);
223 
224  G4String HtmlFileName(const G4String &) const;
225 
227 
228  typedef const G4ParticleDefinition* PD;
231 
232  // hadronic processes following G4HadronicProcess interface
233  std::vector<G4HadronicProcess*> process;
234  std::vector<G4HadronicInteraction*> model;
235  std::vector<G4String> modelName;
236  std::vector<PD> particle;
237  std::vector<G4int> wasPrinted;
238 
239  std::multimap<PD,HP> p_map;
240  std::multimap<HP,HI> m_map;
241 
242  // hadronic processes following only G4VProcess interface
243  std::vector<G4VProcess*> extraProcess;
244  std::multimap<PD,G4VProcess*> ep_map;
245 
246  // counters and options
251 
255 
256  // cache
260 
262 
264 };
265 
266 
267 #endif
268 
G4double GetFissionCrossSectionPerIsotope(const G4ParticleDefinition *aParticle, G4double kineticEnergy, G4int Z, G4int A)
G4double GetInelasticCrossSectionPerVolume(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4Material *material)
std::vector< G4HadronicInteraction * > model
G4double GetElasticCrossSectionPerIsotope(const G4ParticleDefinition *aParticle, G4double kineticEnergy, G4int Z, G4int A)
void SetProcessRelLevel(G4double relativeLevel)
G4double GetCaptureCrossSectionPerVolume(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4Material *material)
std::multimap< HP, HI > m_map
void RegisterExtraProcess(G4VProcess *)
G4String HtmlFileName(const G4String &) const
const G4ParticleDefinition * PD
void SetEpReportLevel(G4int level)
G4double GetCaptureCrossSectionPerIsotope(const G4ParticleDefinition *aParticle, G4double kineticEnergy, G4int Z, G4int A)
G4double GetChargeExchangeCrossSectionPerIsotope(const G4ParticleDefinition *aParticle, G4double kineticEnergy, G4int Z, G4int A)
G4double GetCrossSectionPerAtom(const G4ParticleDefinition *particle, G4double kineticEnergy, const G4VProcess *process, const G4Element *element, const G4Material *material=nullptr)
void RegisterParticle(G4HadronicProcess *, const G4ParticleDefinition *)
void Register(G4HadronicProcess *)
G4double GetElasticCrossSectionPerVolume(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4Material *material)
std::multimap< PD, HP > p_map
G4double GetInelasticCrossSectionPerAtom(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4Element *anElement, const G4Material *mat=nullptr)
G4HadronicProcessType
void RegisterInteraction(G4HadronicProcess *, G4HadronicInteraction *)
G4double GetChargeExchangeCrossSectionPerVolume(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4Material *material)
static G4ThreadLocal G4HadronicProcessStore * instance
G4HadronicInteraction * HI
#define G4ThreadLocal
Definition: tls.hh:69
void Print(G4int idxProcess, G4int idxParticle)
Float_t Z
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
G4HadronicEPTestMessenger * theEPTestMessenger
G4double GetChargeExchangeCrossSectionPerAtom(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4Element *anElement, const G4Material *mat=nullptr)
double A(double temperature)
Float_t mat
void PrintInfo(const G4ParticleDefinition *)
G4HadronicProcess * FindProcess(const G4ParticleDefinition *, G4HadronicProcessType subType)
static G4HadronicProcessStore * Instance()
std::vector< G4String > modelName
G4double GetFissionCrossSectionPerVolume(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4Material *material)
void DeRegisterExtraProcess(G4VProcess *)
void SetProcessAbsLevel(G4double absoluteLevel)
int G4int
Definition: G4Types.hh:78
G4double GetElasticCrossSectionPerAtom(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4Element *anElement, const G4Material *mat=0)
G4double GetCrossSectionPerVolume(const G4ParticleDefinition *particle, G4double kineticEnergy, const G4VProcess *process, const G4Material *material)
void PrintModelHtml(const G4HadronicInteraction *model) const
std::vector< G4int > wasPrinted
G4double GetFissionCrossSectionPerAtom(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4Element *anElement, const G4Material *mat=nullptr)
G4double GetCaptureCrossSectionPerAtom(const G4ParticleDefinition *aParticle, G4double kineticEnergy, const G4Element *anElement, const G4Material *mat=nullptr)
void DeRegister(G4HadronicProcess *)
std::multimap< PD, G4VProcess * > ep_map
void PrintHtml(const G4ParticleDefinition *, std::ofstream &)
const XML_Char XML_Content * model
Definition: expat.h:151
G4double GetInelasticCrossSectionPerIsotope(const G4ParticleDefinition *aParticle, G4double kineticEnergy, G4int Z, G4int A)
std::vector< G4HadronicProcess * > process
std::vector< G4VProcess * > extraProcess
void RegisterParticleForExtraProcess(G4VProcess *, const G4ParticleDefinition *)