CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HijingPythiaWrapper.h
Go to the documentation of this file.
1 #ifndef gen_HijingPythiaWrapper_h
2 #define gen_HijingPythiaWrapper_h
3 
5 #include "HepMC/PythiaWrapper6_4.h"
6 
7  extern "C"
8  {
9  void py1ent_(int& ip, int& kf, double& pe, double& the, double& phi);
10  double pymass_(int& );
11  void pyexec_();
12  int pycomp_(int& );
13  void pyglfr_();
14  void pyglrhad_();
15  void pystlfr_();
16  void pystrhad_();
17  void pygive_(const char*, int );
18  void pydecy_( int& ip ) ;
19  void pyrobo_( int&, int&, double&, double&, double&, double&, double& );
20 
21  void txgive_(const char*, int );
22  void txgive_init_(void);
23 
24  // static bool call_pygive(const std::string &line)
25  // {
26  // int numWarn = pydat1.mstu[26]; // # warnings
27  // int numErr = pydat1.mstu[22]; // # errors
28  //
29  // pygive_(line.c_str(), line.length());
30  //
31  // return pydat1.mstu[26] == numWarn &&
32  // pydat1.mstu[22] == numErr;
33  // }
34  }
35 
36 #define PYCOMP pycomp_
37 extern "C" {
38  int PYCOMP(int& length);
39 }
40 
41 #define LUGIVE pygive_
42 extern "C" {
43  void LUGIVE(const char*,int length);
44 }
45 
46 /*
47 extern "C" {
48  double ran_(int*){
49  return gen::pyr_(0);
50  }
51 }
52 */
53 
54 float ranff_(unsigned int *iseed)
55 {
56  (*iseed) = (69069 * (*iseed) + 1) & 0xffffffffUL;
57  return (*iseed) / 4294967296.0;
58 }
59 
60 /*
61 
62 #include "CLHEP/Random/RandomEngine.h"
63 extern CLHEP::HepRandomEngine* randomEngine;
64 extern "C" {
65  double pyr_(int* idummy);
66 }
67 
68 CLHEP::HepRandomEngine* randomEngine;
69 
70 double pyr_(int *idummy)
71 {
72  // getInstance will throw if no one used enter/leave
73  // or this is the wrong caller class, like e.g. Herwig6Instance
74  return randomEngine->flat();
75 }
76 
77 */
78 
79 #endif
void pystlfr_()
void pystrhad_()
void pyexec_()
float ranff_(unsigned int *iseed)
void txgive_init_(void)
void pydecy_(int &ip)
void pyglfr_()
void pyglrhad_()
void py1ent_(int &, int &, double &, double &, double &)
void pygive_(const char *, int)
double pymass_(int &)
#define PYCOMP
int pycomp_(int &)
#define LUGIVE
int iseed
Definition: AMPTWrapper.h:124
Geom::Phi< T > phi() const
void txgive_(const char *, int)
void pyrobo_(int &, int &, double &, double &, double &, double &, double &)