cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
pythia6_interface.cc
Go to the documentation of this file.
1#include "CepGen/Generator.h"
4#include "CepGen/Utils/Test.h"
6
7using namespace std;
8
9int main(int argc, char* argv[]) {
10 cepgen::ArgumentsParser(argc, argv).parse();
11
13
14 for (auto pdgid : {2212, 11, 13, 22}) {
15 ostringstream os;
16 os << cepgen::PDG::get()(pdgid).name << "/" << cepgen::pythia6::pyname(pdgid);
17 CG_TEST_EQUIV(cepgen::pythia6::pymass(pdgid), cepgen::PDG::get().mass(pdgid), os.str() + " mass");
18 }
19
21}
#define CG_TEST_EQUIV(var1, var2, name)
Definition Test.h:61
#define CG_TEST_SUMMARY
Definition Test.h:127
A generic command line arguments parser.
ArgumentsParser & parse()
Associate command-line arguments to parameters.
static PDG & get()
Retrieve a unique instance of this particles info collection.
Definition PDG.cpp:41
double pymass(int pdgid)
std::string pyname(int pdgid)
void initialise(bool safe_mode)
int main()