/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
GeneratorInterface/HijingInterface/interface/HijingPythiaWrapper.h
77 строк
2 KB
Shahzad Malik Muzaffar
[GENERATORS] Apply code-checks with misc-definitions-in-headers
15 июн 2021, 13:05
15 июн 2021, 13:05
681d1fc
Код
Авторство
О чём код?
#ifndef gen_HijingPythiaWrapper_h #define gen_HijingPythiaWrapper_h #include "GeneratorInterface/Pythia6Interface/interface/Pythia6Service.h" #include "HepMC/PythiaWrapper6_4.h" extern "C" { void py1ent_(int& ip, int& kf, double& pe, double& the, double& phi); double pymass_(int&); void pyexec_(); int pycomp_(int&); void pyglfr_(); void pyglrhad_(); void pystlfr_(); void pystrhad_(); void pygive_(const char*, int); void pydecy_(int& ip); void pyrobo_(int&, int&, double&, double&, double&, double&, double&); void txgive_(const char*, int); void txgive_init_(void); // static bool call_pygive(const std::string &line) // { // int numWarn = pydat1.mstu[26]; // # warnings // int numErr = pydat1.mstu[22]; // # errors // // pygive_(line.c_str(), line.length()); // // return pydat1.mstu[26] == numWarn && // pydat1.mstu[22] == numErr; // } } #define PYCOMP pycomp_ extern "C" { int PYCOMP(int& length); } #define LUGIVE pygive_ extern "C" { void LUGIVE(const char*, int length); } /* extern "C" { double ran_(int*){ return gen::pyr_(0); } } */ inline float ranff_(unsigned int* iseed) { (*iseed) = (69069 * (*iseed) + 1) & 0xffffffffUL; return (*iseed) / 4294967296.0; } /* #include "CLHEP/Random/RandomEngine.h" extern CLHEP::HepRandomEngine* randomEngine; extern "C" { double pyr_(int* idummy); } CLHEP::HepRandomEngine* randomEngine; double pyr_(int *idummy) { // getInstance will throw if no one used enter/leave // or this is the wrong caller class, like e.g. Herwig6Instance return randomEngine->flat(); } */ #endif