CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Pythia6Declarations.h
Go to the documentation of this file.
1 #ifndef gen_Pythia6Declarations_h
2 #define gen_Pythia6Declarations_h
3 
4 #include "HepMC/PythiaWrapper6_4.h"
5 
6 #include <string>
7 
8 namespace gen {
9 
10  extern "C" {
11  void py1ent_(int& ip, int& kf, double& pe, double& the, double& phi);
12  double pymass_(int&);
13  void pyexec_();
14  int pycomp_(int&);
15  void pyglfr_();
16  void pyglrhad_();
17  void pystlfr_();
18  void pystrhad_();
19  void pygive_(const char*, int);
20  void pydecy_(int& ip);
21  void pyrobo_(int&, int&, double&, double&, double&, double&, double&);
22  void pyjoin_(int& njoin, int ijoin[]);
23  void pyshow_(int& i1, int& i2, double&);
24 
25  void txgive_(const char*, int);
26  void txgive_init_(void);
27 
28  inline bool call_pygive(const std::string& line) {
29  int numWarn = pydat1.mstu[26]; // # warnings
30  int numErr = pydat1.mstu[22]; // # errors
31 
32  pygive_(line.c_str(), line.length());
33 
34  return pydat1.mstu[26] == numWarn && pydat1.mstu[22] == numErr;
35  }
36  }
37 
38 } // namespace gen
39 
40 #endif
#define pydat1
bool call_pygive(const std::string &line)
void pyjoin_(int &njoin, int ijoin[])
void pyglrhad_()
void pygive_(const char *, int)
double pymass_(int &)
void pydecy_(int &ip)
void txgive_init_(void)
int pycomp_(int &)
void py1ent_(int &ip, int &kf, double &pe, double &the, double &phi)
void pyglfr_()
void pyshow_(int &i1, int &i2, double &)
void txgive_(const char *, int)
void pystlfr_()
void pyrobo_(int &, int &, double &, double &, double &, double &, double &)
void pyexec_()
void pystrhad_()