cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches

Interfacing between CepGen and Pythia8 event definitions. More...

#include <CepGenAddOns/Pythia8Wrapper/PythiaEventInterface.h>

+ Inheritance diagram for CepGenEvent:
+ Collaboration diagram for CepGenEvent:

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.
 

Detailed Description

Definition at line 34 of file PythiaEventInterface.h.

Member Enumeration Documentation

◆ Type

enum struct Type
strong
Enumerator
centralAndPartons 

only include initiators and central system

centralAndBeamRemnants 

include undissociated beam remnants and central system

centralAndFullBeamRemnants 

include dissociated beam remnants and central system

Definition at line 37 of file PythiaEventInterface.h.

Constructor & Destructor Documentation

◆ CepGenEvent()

CepGenEvent ( )
explicit

Definition at line 30 of file PythiaEventInterface.cpp.

Member Function Documentation

◆ addCepGenParticle()

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.

◆ addComments()

void addComments ( const std::string &  comments)

Definition at line 44 of file PythiaEventInterface.cpp.

◆ addCorresp()

void addCorresp ( unsigned short  py_id,
unsigned short  cg_id 
)
Parameters
[in]py_idPythia8 particle id
[in]cg_idCepGen particle id

Definition at line 265 of file PythiaEventInterface.cpp.

◆ cepgenId()

unsigned short cepgenId ( unsigned short  py_id) const
Parameters
[in]py_idPythia8 particle id
Returns
CepGen particle id

Definition at line 215 of file PythiaEventInterface.cpp.

◆ dumpCorresp()

void dumpCorresp ( ) const

Definition at line 267 of file PythiaEventInterface.cpp.

◆ feedEvent()

void feedEvent ( const cepgen::Event ev,
const Type type 
)
Parameters
[in]evCepGen event to be fed
[in]typeType of storage

Definition at line 59 of file PythiaEventInterface.cpp.

◆ initialise()

void initialise ( const cepgen::RunParameters params)

Definition at line 32 of file PythiaEventInterface.cpp.

◆ pythiaId()

unsigned short pythiaId ( unsigned short  cg_id) const
Parameters
[in]cg_idCepGen particle id
Returns
Pythia8 particle id

Definition at line 221 of file PythiaEventInterface.cpp.

◆ setCrossSection()

void setCrossSection ( int  id,
double  cross_section,
double  cross_section_err 
)
Parameters
[in]idProcess identifier
[in]cross_sectionProcess cross section, in pb
[in]cross_section_errUncertainty on process cross section, in pb

Definition at line 52 of file PythiaEventInterface.cpp.

◆ setEvent()

bool setEvent ( int  ,
double   
)
override

Definition at line 92 of file PythiaEventInterface.h.

◆ setInit()

bool setInit ( )
override

Definition at line 88 of file PythiaEventInterface.h.

◆ setProcess()

void setProcess ( int  id,
double  cross_section,
double  q2_scale,
double  alpha_qed,
double  alpha_qcd 
)
Parameters
[in]idProcess identifier
[in]cross_sectionProcess cross section, in pb
[in]q2_scaleHard 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.

Member Data Documentation

◆ INVALID_ID

constexpr unsigned short INVALID_ID = 999
staticconstexpr

Definition at line 85 of file PythiaEventInterface.h.

◆ MIN_COLOUR_INDEX

constexpr unsigned short MIN_COLOUR_INDEX = 501
staticconstexpr

Definition at line 86 of file PythiaEventInterface.h.