CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions | Variables
HijingPythiaWrapper.h File Reference
#include "GeneratorInterface/Pythia6Interface/interface/Pythia6Service.h"
#include "HepMC/PythiaWrapper6_4.h"
#include "CLHEP/Random/RandomEngine.h"

Go to the source code of this file.

Macros

#define LUGIVE   pygive_
 
#define PYCOMP   pycomp_
 

Functions

static bool call_pygive (const std::string &line)
 
void LUGIVE (const char *, int length)
 
void py1ent_ (int &ip, int &kf, double &pe, double &the, double &phi)
 
int PYCOMP (int &length)
 
int pycomp_ (int &)
 
void pydecy_ (int &ip)
 
void pyexec_ ()
 
void pygive_ (const char *, int)
 
void pyglfr_ ()
 
void pyglrhad_ ()
 
double pymass_ (int &)
 
void pyrobo_ (int &, int &, double &, double &, double &, double &, double &)
 
void pystlfr_ ()
 
void pystrhad_ ()
 
float ran_ (unsigned int *iseed)
 
float ranff_ (unsigned int *iseed)
 
float rlu_ (unsigned int *iseed)
 
void txgive_ (const char *, int)
 
void txgive_init_ (void)
 

Variables

CLHEP::HepRandomEngine * hijRandomEngine
 

Macro Definition Documentation

#define LUGIVE   pygive_

Definition at line 43 of file HijingPythiaWrapper.h.

#define PYCOMP   pycomp_

Definition at line 38 of file HijingPythiaWrapper.h.

Function Documentation

static bool call_pygive ( const std::string &  line)
static

Definition at line 26 of file HijingPythiaWrapper.h.

References pydat1, and pygive_().

27  {
28  int numWarn = pydat1.mstu[26]; // # warnings
29  int numErr = pydat1.mstu[22]; // # errors
30 
31  pygive_(line.c_str(), line.length());
32 
33  return pydat1.mstu[26] == numWarn &&
34  pydat1.mstu[22] == numErr;
35  }
#define pydat1
void pygive_(const char *, int)
void LUGIVE ( const char *  ,
int  length 
)
void py1ent_ ( int &  ip,
int &  kf,
double &  pe,
double &  the,
double &  phi 
)
int PYCOMP ( int &  length)
int pycomp_ ( int &  )
void pydecy_ ( int &  ip)
void pyexec_ ( )
void pygive_ ( const char *  ,
int   
)

Referenced by call_pygive().

void pyglfr_ ( )
void pyglrhad_ ( )
double pymass_ ( int &  )
void pyrobo_ ( int &  ,
int &  ,
double &  ,
double &  ,
double &  ,
double &  ,
double &   
)
void pystlfr_ ( )
void pystrhad_ ( )
float ran_ ( unsigned int *  iseed)

Definition at line 77 of file HijingPythiaWrapper.h.

References hijRandomEngine.

77  {
78  return hijRandomEngine->flat();
79  // return ranff_(iseed);
80  // return gen::pyr_(0);
81  }
CLHEP::HepRandomEngine * hijRandomEngine
float ranff_ ( unsigned int *  iseed)

Definition at line 56 of file HijingPythiaWrapper.h.

57 {
58  (*iseed) = (69069 * (*iseed) + 1) & 0xffffffffUL;
59  return (*iseed) / 4294967296.0;
60 }
int iseed
Definition: AMPTWrapper.h:124
float rlu_ ( unsigned int *  iseed)

Definition at line 85 of file HijingPythiaWrapper.h.

References hijRandomEngine.

85  {
86  return hijRandomEngine->flat();
87  // return ranff_(iseed);
88  // return gen::pyr_(0);
89  }
CLHEP::HepRandomEngine * hijRandomEngine
void txgive_ ( const char *  ,
int   
)
void txgive_init_ ( void  )

Variable Documentation

CLHEP::HepRandomEngine* hijRandomEngine