Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:54

0001 #ifndef gen_Pythia6Declarations_h
0002 #define gen_Pythia6Declarations_h
0003 
0004 #include "HepMC/PythiaWrapper6_4.h"
0005 
0006 #include <string>
0007 
0008 namespace gen {
0009 
0010   extern "C" {
0011   void py1ent_(int& ip, int& kf, double& pe, double& the, double& phi);
0012   double pymass_(int&);
0013   void pyexec_();
0014   int pycomp_(int&);
0015   void pyglfr_();
0016   void pyglrhad_();
0017   void pystlfr_();
0018   void pystrhad_();
0019   void pygive_(const char*, int);
0020   void pydecy_(int& ip);
0021   void pyrobo_(int&, int&, double&, double&, double&, double&, double&);
0022   void pyjoin_(int& njoin, int ijoin[]);
0023   void pyshow_(int& i1, int& i2, double&);
0024 
0025   void txgive_(const char*, int);
0026   void txgive_init_(void);
0027 
0028   inline bool call_pygive(const std::string& line) {
0029     int numWarn = pydat1.mstu[26];  // # warnings
0030     int numErr = pydat1.mstu[22];   // # errors
0031 
0032     pygive_(line.c_str(), line.length());
0033 
0034     return pydat1.mstu[26] == numWarn && pydat1.mstu[22] == numErr;
0035   }
0036   }
0037 
0038 }  // namespace gen
0039 
0040 #endif