Geant4_10
G4ParamType1GlaubAADataSet.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 // $Id: G4ParamType1GlaubAADataSet.hh 77519 2013-11-25 10:54:57Z gcosmo $
40 //
41 
42 #ifndef G4ParamType1GlaubAADataSet_h
43 #define G4ParamType1GlaubAADataSet_h
44 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45 //
46 // MODULE: G4ParamType1GlaubAADataSet.hh
47 //
48 // Version: 0.B
49 // Date: 02/04/08
50 // Author: P R Truscott
51 // Organisation: QinetiQ Ltd, UK
52 // Customer: ESA/ESTEC, NOORDWIJK
53 // Contract: 19770/06/NL/JD
54 //
55 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
56 //
57 // Class Description
58 //
59 //
60 // Class Description - End
61 //
62 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
64 //
65 
66 #include "G4FullGlaubAADataSet.hh"
67 #include "G4GlaubAADataSet.hh"
69 
70 #include "G4DPMJET2_5Interface.hh"
71 
72 #include "globals.hh"
73 #include <fstream>
74 
75 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
76 
77 
80 {
81 public:
82 
84  G4ParamType1GlaubAADataSet (const G4int AP1, const G4int AT1);
88 
89  const
91 
92  G4bool CreateGlauberData (const G4int AP1, const G4int AT1);
93  G4bool CreateGlauberData (G4FullGlaubAADataSet *fullGlauberDataSet);
94 
95  inline G4double GetValueN (const G4double f, const G4double ppn = 0.0) const;
96  inline G4double GetValueM (const G4double f, const G4double ppn = 0.0) const;
97 
98  std::ofstream & WriteDataToFile (std::ofstream &File) const;
99  std::ifstream & ReadDataFromFile (std::ifstream &File);
100 
101 };
102 
103 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
104 //
105 // GetValueN
106 //
107 inline
109  const G4double ppn) const
110 {return GetParameterisedValueN (f, ppn);}
111 
112 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
113 //
114 // GetValueM
115 //
116 inline
118  const G4double ppn) const
119 {return GetParameterisedValueM (f, ppn);}
120 
121 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
122 
123 #endif
std::ifstream & ReadDataFromFile(std::ifstream &File)
G4double GetParameterisedValueN(const G4double f, const G4double ppn) const
Definition of the G4FullGlaubAADataSet class.
int G4int
Definition: G4Types.hh:78
TFile f
Definition: plotHisto.C:6
std::ofstream & WriteDataToFile(std::ofstream &File) const
bool G4bool
Definition: G4Types.hh:79
G4bool CreateGlauberData(const G4int AP1, const G4int AT1)
const G4ParamType1GlaubAADataSet & operator=(G4ParamType1GlaubAADataSet &right)
Definition of the G4Type1GlauberParameterisation class.
Definition of the G4GlaubAADataSet class.
Definition of the G4DPMJET2_5Interface class.
G4double GetValueM(const G4double f, const G4double ppn=0.0) const
double G4double
Definition: G4Types.hh:76
G4double GetValueN(const G4double f, const G4double ppn=0.0) const
G4double GetParameterisedValueM(const G4double f, const G4double ppn) const