Geant4_10
G4DPMJET_modb_.cc
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: G4DPMJET_modb_.cc 77519 2013-11-25 10:54:57Z gcosmo $
40 //
41 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
42 //
43 // MODULE: G4DPMJET_modb_.cc
44 //
45 // Version: 0.B
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 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
54 //
55 
56 #ifdef G4_USE_DPMJET
57 
58 #include "globals.hh"
60 #include "G4PhysicalConstants.hh"
61 #include "G4SystemOfUnits.hh"
62 
63 
64 extern "C" void g4dpmjet_modb_ (G4double &v, G4double &b)
65 {
66  G4GlaubAADataSetHandler *theGlauberDataSetHandler =
68  G4ParamType1GlaubAADataSet *theCurrentGlauberDataSet =
70  theGlauberDataSetHandler->GetCurrentGlauberDataSet();
71 
72  G4double i = theGlauberDataSetHandler->GetValueN(v);
73  b = i * theCurrentGlauberDataSet->bstep;
74 //
75 //
76 // The following lines if you require information about the
77 // impact parameter sampled by theGlauberDataSetHandler.
78 //
79 #ifdef G4DPMJET25GDSHDEBUG
80  if (theGlauberDataSetHandler->GetVerboseLevel()>=2) {
81  G4cout <<"****************************************"
82  <<"****************************************"
83  <<G4endl;
84  G4cout <<"IN G4DPMJET_modb_" <<G4endl;
85  G4cout <<"PROJECTILE A = " <<theCurrentGlauberDataSet->GetAP()
86  <<" & TARGET A = " <<theCurrentGlauberDataSet->GetAT() <<G4endl;
87  G4cout <<"RANDOM NUMBER = " <<v <<G4endl;
88  G4cout <<"IMPACT PARAMETER = " <<b <<G4endl;
89  G4cout <<"****************************************"
90  <<"****************************************"
91  <<G4endl;
92  }
93 #endif
94 
95 }
96 #endif
G4int GetAT() const
G4GlaubAADataSet * GetCurrentGlauberDataSet() const
tuple b
Definition: test.py:12
G4GLOB_DLL std::ostream G4cout
G4double GetValueN(const G4double v, const G4double ppn1=0.0)
tuple v
Definition: test.py:18
G4int GetAP() const
#define G4endl
Definition: G4ios.hh:61
Definition of the G4GlaubAADataSetHandler class.
static G4GlaubAADataSetHandler * getInstance()
double G4double
Definition: G4Types.hh:76