Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
examples
extended
hadronic
Hadr02
include
G4GlaubAADataSetHandler.hh
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
// * *
21
// * Parts of this code which have been developed by QinetiQ Ltd *
22
// * under contract to the European Space Agency (ESA) are the *
23
// * intellectual property of ESA. Rights to use, copy, modify and *
24
// * redistribute this software for general public use are granted *
25
// * in compliance with any licensing, distribution and development *
26
// * policy adopted by the Geant4 Collaboration. This code has been *
27
// * written by QinetiQ Ltd for the European Space Agency, under ESA *
28
// * contract 19770/06/NL/JD (Technology Research Programme). *
29
// * *
30
// * By using, copying, modifying or distributing the software (or *
31
// * any work based on the software) you agree to acknowledge its *
32
// * use in resulting scientific publications, and indicate your *
33
// * acceptance of all terms of the Geant4 Software license. *
34
// ********************************************************************
35
//
38
//
39
#ifndef G4GlaubAADataSetHandler_h
40
#define G4GlaubAADataSetHandler_h
41
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
42
//
43
// MODULE: G4GlaubAADataSetHandler.hh
44
//
45
// Version: 0.A
46
// Date: 02/04/08
47
// Author: P R Truscott
48
// Organisation: QinetiQ Ltd, UK
49
// Customer: ESA/ESTEC, NOORDWIJK
50
// Contract: 19770/06/NL/JD
51
//
52
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53
//
54
// Class Description
55
//
56
//
57
// Class Description - End
58
//
59
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
61
//
62
#include "
G4ParticleDefinition.hh
"
63
#include "
G4Isotope.hh
"
64
#include "
globals.hh
"
65
66
#include <map>
67
#include <vector>
68
69
class
G4GlauberDataSet;
70
class
G4DPMJET2_5Model
;
71
72
#include "
G4GlaubAADataSet.hh
"
73
#include "
G4FullGlaubAADataSet.hh
"
74
#include "
G4ParamType1GlaubAADataSet.hh
"
75
#include "
G4DPMJET2_5Model.hh
"
76
77
typedef
std::map< G4int, G4ParamType1GlaubAADataSet *, std::less< G4int > >
78
G4GlaubAADataSetIndex
;
80
//
81
//class G4GlaubAADataSetHandler : public G4VGlauberDataSetHandler
82
class
G4GlaubAADataSetHandler
83
{
84
85
protected
:
86
G4GlaubAADataSetHandler
();
87
88
public
:
89
virtual
~G4GlaubAADataSetHandler
();
90
static
G4GlaubAADataSetHandler
*
getInstance
();
91
92
G4bool
IsGlauberDataSetAvailable
(
const
G4int
AP,
const
G4int
AT)
const
;
93
G4bool
SetCurrentGlauberDataSet
(
const
G4int
AP,
const
G4int
AT,
94
const
G4double
ppn = 0.0);
95
G4GlaubAADataSet
*
GetCurrentGlauberDataSet
()
const
;
96
void
ResetCurrentGlauberDataSet
();
97
G4double
GetValueN
(
const
G4double
v
,
const
G4double
ppn1 = 0.0);
98
G4double
GetValueM
(
const
G4double
v,
const
G4double
ppn1 = 0.0);
99
100
void
SetMaxGlauberDataSets
(
const
G4int
n
);
101
G4int
GetMaxGlauberDataSets
()
const
;
102
103
void
SetVerboseLevel
(
const
G4int
i);
104
G4int
GetVerboseLevel
()
const
;
105
G4int
UnloadAllGlauberData
();
106
107
private
:
108
G4VGlauberDataSet
*LoadGlauberDataReturnPtr(
const
G4int
AP,
const
G4int
AT);
109
110
G4bool
CheckIfSpace ()
const
;
111
G4int
GetIndexID (
const
G4int
AP,
const
G4int
AT)
const
;
112
G4String
GetStringID (
const
G4int
AP,
const
G4int
AT)
const
;
113
G4String
GetProjectileStringID (
const
G4int
AP)
const
;
114
G4String
GetTargetStringID (
const
G4int
AT)
const
;
115
116
static
G4GlaubAADataSetHandler
*instance;
117
118
G4GlaubAADataSetIndex
theIndex;
119
G4String
glauberDataSetDir;
120
121
G4int
maxGlauberDataSets;
122
G4int
cntGlauberDataSets;
123
124
G4GlaubAADataSet
*theCurrentGlauberDataSet;
125
G4double
ppnCurrent;
126
G4bool
usingLocalGlauberDataSet;
127
128
G4int
maxArray;
129
130
G4int
verboseLevel;
131
};
132
133
inline
void
G4GlaubAADataSetHandler::SetVerboseLevel
(
const
G4int
i)
134
{verboseLevel = i;}
135
136
inline
G4int
G4GlaubAADataSetHandler::GetVerboseLevel
()
const
137
{
return
verboseLevel;}
138
#endif
Generated on Sat May 25 2013 14:32:56 for Geant4 by
1.8.4