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

Interface to the Pythia 6 algorithm. More...

+ Inheritance diagram for Pythia6Hadroniser:
+ Collaboration diagram for Pythia6Hadroniser:

Public Member Functions

 Pythia6Hadroniser (const ParametersList &params)
 
void readString (const std::string &param) override
 Parse a configuration string.
 
void initialise () override
 
bool run (Event &ev, double &weight, bool fast) override
 Modify an event.
 
bool fragmentRemnants () const
 Specify whether the beam remnants are to be fragmented.
 
void setSeed (long long seed)
 Specify a random numbers generator seed for the external module.
 
virtual void readStrings (const std::vector< std::string > &)
 Parse a list of configuration strings.
 
virtual void setCrossSection (const Value &)
 Specify the cross section value, in pb.
 
void initialise (const RunParameters &)
 Initialise the handler and its inner parameterisation.
 
const RunParametersrunParameters () const
 List of run parameters.
 
template<typename T >
T * engine ()
 Retrieve the engine object.
 
const std::string & name () const
 Module unique indexing name.
 
bool operator== (const SteeredObject &oth) const
 Equality operator.
 
bool operator!= (const SteeredObject &oth) const
 Inequality operator.
 
const ParametersListparameters () const override
 Module user-defined parameters.
 
virtual void setParameters (const ParametersList &params) override
 Set module parameters.
 
void setDescribedParameters (const ParametersList &params_orig)
 Set (documented) module parameters.
 

Static Public Member Functions

static ParametersDescription description ()
 

Protected Member Functions

virtual void * enginePtr ()
 Engine object.
 
template<typename T >
steer (const std::string &key) const
 Retrieve a parameters as previously steered.
 
template<typename T , typename U >
U steerAs (const std::string &key) const
 Retrieve a recasted parameters as previously steered.
 
std::string steerName () const
 Retrieve module name from parameters.
 
std::string steerPath (const std::string &key) const
 Retrieve a path from common search paths.
 

Protected Attributes

const bool remn_fragm_
 Switch on/off the remnants fragmentation where applicable.
 
long long seed_ {0ll}
 Random numbers generator seed fed to the algorithm.
 
unsigned short max_trials_ {1}
 Maximal number of trials for the algorithm.
 
const std::string name_
 Module unique indexing name.
 
ParametersList params_
 Module parameters.
 

Detailed Description

Note
It can be used in a single particle decay mode as well as a full event hadronisation using the string model, as in Jetset.

Definition at line 34 of file Pythia6Hadroniser.cpp.

Constructor & Destructor Documentation

◆ Pythia6Hadroniser()

Pythia6Hadroniser ( const ParametersList params)
explicit

Definition at line 36 of file Pythia6Hadroniser.cpp.

Member Function Documentation

◆ description()

static ParametersDescription description ( )
static

Definition at line 40 of file Pythia6Hadroniser.cpp.

◆ engine()

template<typename T >
T * engine ( )
inherited

Definition at line 42 of file EventHandler.h.

◆ enginePtr()

void * enginePtr ( )
protectedvirtualinherited

Definition at line 50 of file EventHandler.cpp.

◆ fragmentRemnants()

bool fragmentRemnants ( ) const
inherited

Definition at line 40 of file Hadroniser.h.

◆ initialise() [1/2]

void initialise ( )
overridevirtual

Implements EventHandler.

Definition at line 49 of file Pythia6Hadroniser.cpp.

◆ initialise() [2/2]

void initialise ( const RunParameters params)
inherited

Definition at line 36 of file EventHandler.cpp.

◆ name()

const std::string & name ( ) const
inherited

Definition at line 42 of file NamedModule.h.

◆ operator!=()

template<typename T >
bool operator!= ( const SteeredObject< T > &  oth) const
inherited

Definition at line 51 of file SteeredObject.h.

◆ operator==()

template<typename T >
bool operator== ( const SteeredObject< T > &  oth) const
inherited

Definition at line 49 of file SteeredObject.h.

◆ parameters()

template<typename T >
const ParametersList & parameters ( ) const
overridevirtualinherited

Reimplemented from Steerable.

Definition at line 54 of file SteeredObject.h.

◆ readString()

void readString ( const std::string &  )
overridevirtual

Reimplemented from EventModifier.

Definition at line 48 of file Pythia6Hadroniser.cpp.

◆ readStrings()

void readStrings ( const std::vector< std::string > &  params)
virtualinherited

Definition at line 31 of file EventModifier.cpp.

◆ run()

bool run ( Event ev,
double &  weight,
bool  fast 
)
overridevirtual
Parameters
[in,out]evInput/output event
[in,out]weightEvent weight after modification
[in]fastrun a faster version of the algorithm (whenever available)
Returns
Boolean stating whether or not the modification occurred successfully

Implements EventModifier.

Definition at line 55 of file Pythia6Hadroniser.cpp.

◆ runParameters()

const RunParameters & runParameters ( ) const
inherited

Definition at line 44 of file EventHandler.cpp.

◆ setCrossSection()

virtual void setCrossSection ( const Value )
virtualinherited

Reimplemented in Pythia8Hadroniser.

Definition at line 48 of file EventModifier.h.

◆ setDescribedParameters()

template<typename T >
void setDescribedParameters ( const ParametersList params_orig)
inherited

Definition at line 73 of file SteeredObject.h.

◆ setParameters()

template<typename T >
virtual void setParameters ( const ParametersList params)
overridevirtualinherited

Reimplemented from Steerable.

Reimplemented in Initial, Remnants, CutsList, IncomingBeams, and Kinematics.

Definition at line 62 of file SteeredObject.h.

◆ setSeed()

void setSeed ( long long  seed)
inherited
Parameters
[in]seedA RNG seed

Definition at line 37 of file EventModifier.h.

◆ steer()

template<typename T >
T steer ( const std::string &  key) const
protectedinherited

Definition at line 39 of file Steerable.h.

◆ steerAs()

template<typename T , typename U >
U steerAs ( const std::string &  key) const
protectedinherited

Definition at line 44 of file Steerable.h.

◆ steerName()

std::string steerName ( ) const
protectedinherited

Definition at line 48 of file Steerable.h.

◆ steerPath()

std::string steerPath ( const std::string &  key) const
protectedinherited

Definition at line 30 of file Steerable.cpp.

Member Data Documentation

◆ max_trials_

unsigned short max_trials_ {1}
protectedinherited

Definition at line 52 of file EventModifier.h.

◆ name_

const std::string name_
protectedinherited

Definition at line 45 of file NamedModule.h.

◆ params_

ParametersList params_
mutableprotectedinherited

Definition at line 50 of file Steerable.h.

◆ remn_fragm_

const bool remn_fragm_
protectedinherited

Definition at line 44 of file Hadroniser.h.

◆ seed_

long long seed_ {0ll}
protectedinherited

Definition at line 51 of file EventModifier.h.