Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
40 //
41 // MODULE: G4DPMJET_modb_.cc
42 //
43 // Version: 0.B
44 // Date: 02/04/08
45 // Author: P R Truscott
46 // Organisation: QinetiQ Ltd, UK
47 // Customer: ESA/ESTEC, NOORDWIJK
48 // Contract: 19770/06/NL/JD
49 //
50 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52 //
53 
54 #ifdef G4_USE_DPMJET
55 
56 #include "globals.hh"
58 
59 extern "C" void g4dpmjet_modb_ (G4double &v, G4double &b)
60 {
61  G4GlaubAADataSetHandler *theGlauberDataSetHandler =
63  G4ParamType1GlaubAADataSet *theCurrentGlauberDataSet =
65  theGlauberDataSetHandler->GetCurrentGlauberDataSet();
66 
67  G4double i = theGlauberDataSetHandler->GetValueN(v);
68  b = i * theCurrentGlauberDataSet->bstep;
69 //
70 //
71 // The following lines if you require information about the
72 // impact parameter sampled by theGlauberDataSetHandler.
73 //
74 #ifdef G4DPMJET25GDSHDEBUG
75  if (theGlauberDataSetHandler->GetVerboseLevel()>=2) {
76  G4cout <<"****************************************"
77  <<"****************************************"
78  <<G4endl;
79  G4cout <<"IN G4DPMJET_modb_" <<G4endl;
80  G4cout <<"PROJECTILE A = " <<theCurrentGlauberDataSet->GetAP()
81  <<" & TARGET A = " <<theCurrentGlauberDataSet->GetAT() <<G4endl;
82  G4cout <<"RANDOM NUMBER = " <<v <<G4endl;
83  G4cout <<"IMPACT PARAMETER = " <<b <<G4endl;
84  G4cout <<"****************************************"
85  <<"****************************************"
86  <<G4endl;
87  }
88 #endif
89 
90 }
91 #endif