cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
Pythia6Interface.h
Go to the documentation of this file.
1/*
2 * CepGen: a central exclusive processes event generator
3 * Copyright (C) 2013-2024 Laurent Forthomme
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef CepGenAddOns_Pythia6Wrapper_Pythia6Interface_h
20#define CepGenAddOns_Pythia6Wrapper_Pythia6Interface_h
21
22#include <array>
23#include <string>
24#include <vector>
25
26extern "C" {
28extern struct {
29 int n;
30 int npad;
31 int k[5][4000];
32 double p[5][4000];
33 double v[5][4000];
35extern struct {
36 std::array<int, 200> mstu;
37 std::array<double, 200> paru;
38 std::array<int, 200> mstj;
39 std::array<double, 200> parj;
41}
42
43namespace cepgen {
45 namespace pythia6 {
46 int pythia6Status(int);
47 int cepgenStatus(int);
48 void checkPDGid(int);
49
50 double pyalem(double);
51 double pyalps(double);
52 void pyckbd();
53 void pyexec();
54 void pygive(const std::string&);
57 void pyjoin(std::vector<int> join);
58 int pyk(int id, int qty);
59 void pylist(int mlist);
60 double pymass(int pdgid_);
61 std::string pyname(int pdgid);
62 double pyp(int id, int qty);
63 inline static int& mstu(size_t i) { return pydat1_.mstu.at(i - 1); }
64 inline static double& paru(size_t i) { return pydat1_.paru.at(i - 1); }
65 } // namespace pythia6
66} // namespace cepgen
67
68#endif
struct @7 pyjets_
Particles content of the event.
struct @8 pydat1_
double pyalem(double q2)
static int & mstu(size_t i)
int pyk(int id, int qty)
int cepgenStatus(int py_status)
void pygive(const std::string &line)
double pymass(int pdgid)
double pyp(int id, int qty)
void pyjoin(std::vector< int > join)
Connect entries with colour flow information.
void pylist(int mlist)
std::string pyname(int pdgid)
void checkPDGid(int pdg_id)
double pyalps(double q2)
static double & paru(size_t i)
int pythia6Status(int cg_status)
Common namespace for this Monte Carlo generator.