11#include <framework/core/Module.h>
12#include <framework/datastore/StoreArray.h>
13#include <mdst/dataobjects/MCParticle.h>
14#include <mdst/dataobjects/MCParticleGraph.h>
16#include <Pythia8/Pythia.h>
17#include <generators/modules/fragmentation/EvtGenDecays.h>
58 virtual void event()
override;
The Fragmentation module.
EvtGenDecays * evtgen
EvtGen decay engine inside PYTHIA8.
int nGood
number of events with successful fragmentation.
FragmentationModule()
Constructor.
void loadEvtGenParticleData(Pythia8::Pythia *pythia)
Load EvtGen particle data.
bool m_coherentMixing
decay the B0-B0bar coherently.
int nVpho
number of virtual exchange particles.
virtual void initialize() override
Initialize the module.
virtual void event() override
Event method (process events)
Pythia8::Pythia * m_Pythia
Pythia generator.
StoreArray< MCParticle > m_mcparticles
store array for the MCParticles
virtual ~FragmentationModule()
Destructor.
virtual void terminate() override
terminate the module
Pythia8::Event * m_PythiaEvent
Pythia event.
int addParticleToPYTHIA(const MCParticle &mcParticle)
Add particle to Pythia event.
std::string m_DecFile
EvtGen decay file.
int m_useEvtGen
use EvtGen for some decays.
int nAll
number of events created.
std::string m_UserDecFile
User EvtGen decay file.
std::string m_particleList
The name of the MCParticle collection.
int nQuarks
number of quarks.
MCParticleGraph mcParticleGraph
An instance of the MCParticle graph.
std::string m_parameterfile
Module parameters.
int nAdded
number of added particles.
int m_listEvent
list event generated by PYTHIA.
Minimal class for external random generator to be used in PYTHIA.
double flat()
flat random generator.
Class to build, validate and sort a particle decay chain.
A Class to store the Monte Carlo particle information.
Accessor to arrays stored in the data store.
A class to perform decays via the external EvtGen decay program, see http://evtgen....
Abstract base class for different kinds of events.