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
"
2
#include "
CepGen/Physics/PDG.h
"
3
#include "
CepGen/Utils/ArgumentsParser.h
"
4
#include "
CepGen/Utils/Test.h
"
5
#include "
CepGenAddOns/Pythia6Wrapper/Pythia6Interface.h
"
6
7
using namespace
std;
8
9
int
main
(
int
argc,
char
* argv[]) {
10
cepgen::ArgumentsParser
(argc, argv).
parse
();
11
12
cepgen::initialise
();
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
20
CG_TEST_SUMMARY
;
21
}
ArgumentsParser.h
Generator.h
PDG.h
Pythia6Interface.h
Test.h
CG_TEST_EQUIV
#define CG_TEST_EQUIV(var1, var2, name)
Definition
Test.h:61
CG_TEST_SUMMARY
#define CG_TEST_SUMMARY
Definition
Test.h:127
cepgen::ArgumentsParser
A generic command line arguments parser.
Definition
ArgumentsParser.h:31
cepgen::ArgumentsParser::parse
ArgumentsParser & parse()
Associate command-line arguments to parameters.
Definition
ArgumentsParser.cpp:106
cepgen::PDG::get
static PDG & get()
Retrieve a unique instance of this particles info collection.
Definition
PDG.cpp:41
cepgen::pythia6::pymass
double pymass(int pdgid)
Definition
Pythia6Interface.cpp:64
cepgen::pythia6::pyname
std::string pyname(int pdgid)
Definition
Pythia6Interface.cpp:66
cepgen::initialise
void initialise(bool safe_mode)
Definition
GlobalFunctions.cpp:91
main
int main()
Definition
pythia6_decay.cc:9
CepGenAddOns
Pythia6Wrapper
test
pythia6_interface.cc
Generated on Mon Jul 29 2024 for CepGen by
1.9.7