CepGen 1.2.5
Central exclusive processes event generator
|
Interfacing between CepGen and Pythia8 event definitions. More...
#include <CepGenAddOns/Pythia8Wrapper/PythiaEventInterface.h>
Public Types | |
enum struct | Type { centralAndPartons , centralAndBeamRemnants , centralAndFullBeamRemnants } |
List of particles to be included to the event content. More... | |
Public Member Functions | |
CepGenEvent () | |
void | initialise (const cepgen::RunParameters &) |
Initialise this conversion object with CepGen parameters. | |
void | feedEvent (const cepgen::Event &ev, const Type &type) |
Feed a new CepGen event to this conversion object. | |
void | setCrossSection (int id, double cross_section, double cross_section_err) |
Set the cross section for a given process. | |
void | setProcess (int id, double cross_section, double q2_scale, double alpha_qed, double alpha_qcd) |
Specify new process attributes. | |
void | addComments (const std::string &comments) |
Feed comments to the LHEF block. | |
unsigned short | cepgenId (unsigned short py_id) const |
Retrieve the CepGen particle index given its Pythia8 event id. | |
unsigned short | pythiaId (unsigned short cg_id) const |
Retrieve the Pythia8 particle index given its CepGen event id. | |
void | addCepGenParticle (const cepgen::Particle &part, int status=INVALID_ID, const std::pair< int, int > &mothers={0, 0}, const std::pair< int, int > &colours={0, 0}) |
Add a CepGen particle to the event content. | |
void | addCorresp (unsigned short py_id, unsigned short cg_id) |
Register a new Pythia8 / CepGen particle mapping. | |
void | dumpCorresp () const |
Print all Pythia8 / CepGen Particles correspondences. | |
bool | setInit () override |
bool | setEvent (int, double) override |
Static Public Attributes | |
static constexpr unsigned short | INVALID_ID = 999 |
Invalid id association. | |
static constexpr unsigned short | MIN_COLOUR_INDEX = 501 |
Minimal colour indexing number. | |
Definition at line 34 of file PythiaEventInterface.h.
|
strong |
Definition at line 37 of file PythiaEventInterface.h.
|
explicit |
Definition at line 30 of file PythiaEventInterface.cpp.
void addCepGenParticle | ( | const cepgen::Particle & | part, |
int | status = INVALID_ID , |
||
const std::pair< int, int > & | mothers = {0, 0} , |
||
const std::pair< int, int > & | colours = {0, 0} |
||
) |
Definition at line 229 of file PythiaEventInterface.cpp.
void addComments | ( | const std::string & | comments | ) |
Definition at line 44 of file PythiaEventInterface.cpp.
void addCorresp | ( | unsigned short | py_id, |
unsigned short | cg_id | ||
) |
[in] | py_id | Pythia8 particle id |
[in] | cg_id | CepGen particle id |
Definition at line 265 of file PythiaEventInterface.cpp.
unsigned short cepgenId | ( | unsigned short | py_id | ) | const |
[in] | py_id | Pythia8 particle id |
Definition at line 215 of file PythiaEventInterface.cpp.
void dumpCorresp | ( | ) | const |
Definition at line 267 of file PythiaEventInterface.cpp.
void feedEvent | ( | const cepgen::Event & | ev, |
const Type & | type | ||
) |
[in] | ev | CepGen event to be fed |
[in] | type | Type of storage |
Definition at line 59 of file PythiaEventInterface.cpp.
void initialise | ( | const cepgen::RunParameters & | params | ) |
Definition at line 32 of file PythiaEventInterface.cpp.
unsigned short pythiaId | ( | unsigned short | cg_id | ) | const |
[in] | cg_id | CepGen particle id |
Definition at line 221 of file PythiaEventInterface.cpp.
void setCrossSection | ( | int | id, |
double | cross_section, | ||
double | cross_section_err | ||
) |
[in] | id | Process identifier |
[in] | cross_section | Process cross section, in pb |
[in] | cross_section_err | Uncertainty on process cross section, in pb |
Definition at line 52 of file PythiaEventInterface.cpp.
|
override |
Definition at line 92 of file PythiaEventInterface.h.
|
override |
Definition at line 88 of file PythiaEventInterface.h.
void setProcess | ( | int | id, |
double | cross_section, | ||
double | q2_scale, | ||
double | alpha_qed, | ||
double | alpha_qcd | ||
) |
[in] | id | Process identifier |
[in] | cross_section | Process cross section, in pb |
[in] | q2_scale | Hard event scale \(Q^2\), in GeV \(^2\) |
[in] | alpha_qed | \(\alpha_{\rm em}\) for this process |
[in] | alpha_qcd | \(\alpha_{\rm s}\) for this process |
Definition at line 210 of file PythiaEventInterface.cpp.
|
staticconstexpr |
Definition at line 85 of file PythiaEventInterface.h.
|
staticconstexpr |
Definition at line 86 of file PythiaEventInterface.h.