source: trunk/source/physics_lists/builders/include/G4HadronProcessStore.hh@ 921

Last change on this file since 921 was 825, checked in by garnier, 17 years ago

import all except CVS

File size: 4.3 KB
Line 
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: G4HadronProcessStore.hh,v 1.1 2006/10/31 11:35:01 gunter Exp $
27// GEANT4 tag $Name: $
28//
29//
30// -------------------------------------------------------------------
31//
32// GEANT4 Class header file
33//
34//
35// File name: G4HadronProcessStore
36//
37// Author: Vladimir Ivanchenko
38//
39// Creation date: 03.05.2006
40//
41// Modifications:
42// 04.08.06 V.Ivanchenko add computation of cross sections
43//
44//
45// Class Description:
46//
47
48// -------------------------------------------------------------------
49//
50
51#ifndef G4HadronProcessStore_h
52#define G4HadronProcessStore_h 1
53
54
55#include "globals.hh"
56#include "G4DynamicParticle.hh"
57#include "G4HadronicProcess.hh"
58#include "G4HadronicInteraction.hh"
59#include "G4ParticleDefinition.hh"
60#include <map>
61#include <vector>
62
63class G4Element;
64
65class G4HadronProcessStore
66{
67
68public:
69
70 static G4HadronProcessStore* Instance();
71
72 ~G4HadronProcessStore();
73
74 G4double GetInelasticCrossSectionPerVolume(
75 const G4ParticleDefinition *aParticle,
76 G4double kineticEnergy,
77 const G4Material *material);
78
79 G4double GetInelasticCrossSectionPerAtom(
80 const G4ParticleDefinition *aParticle,
81 G4double kineticEnergy,
82 const G4Element *anElement);
83
84 G4double GetInelasticCrossSectionPerIsotope(
85 const G4ParticleDefinition *aParticle,
86 G4double kineticEnergy,
87 G4int Z, G4int A);
88
89 G4double GetElasticCrossSectionPerVolume(
90 const G4ParticleDefinition *aParticle,
91 G4double kineticEnergy,
92 const G4Material *material);
93
94 G4double GetElasticCrossSectionPerAtom(
95 const G4ParticleDefinition *aParticle,
96 G4double kineticEnergy,
97 const G4Element *anElement);
98
99 G4double GetElasticCrossSectionPerIsotope(
100 const G4ParticleDefinition *aParticle,
101 G4double kineticEnergy,
102 G4int Z, G4int A);
103
104 void Register(G4HadronicProcess*,
105 const G4ParticleDefinition*,
106 G4HadronicInteraction*,
107 const G4String& name);
108
109 void Print(const G4ParticleDefinition*);
110
111 void Dump(G4int level);
112
113 void SetVerbose(G4int val);
114
115 G4int GetVerbose();
116
117 G4HadronicProcess* FindElasticProcess(const G4ParticleDefinition*);
118
119 G4HadronicProcess* FindInelasticProcess(const G4ParticleDefinition*);
120
121private:
122
123 G4HadronProcessStore();
124
125 static G4HadronProcessStore* theInstance;
126
127 typedef const G4ParticleDefinition* PD;
128 typedef G4HadronicProcess* HP;
129 typedef G4HadronicInteraction* HI;
130
131 std::multimap<PD,HP> p_map;
132 std::multimap<HP,HI> m_map;
133
134 std::vector<G4HadronicProcess*> process;
135 std::vector<G4HadronicInteraction*> model;
136 std::vector<G4String> modelName;
137 std::vector<PD> particle;
138
139 HP currentProcess;
140 PD currentParticle;
141
142 G4DynamicParticle localDP;
143
144 G4int n_proc;
145 G4int n_model;
146 G4int n_part;
147
148 G4int verbose;
149
150};
151
152
153#endif
154
Note: See TracBrowser for help on using the repository browser.