Belle II Software development
KKGenInputModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <mdst/dataobjects/MCParticleGraph.h>
12
13#include <generators/modules/GeneratorBaseModule.h>
14#include <generators/kkmc/KKGenInterface.h>
15#include <generators/utilities/InitialParticleGeneration.h>
16
17#include <string>
18
19namespace Belle2 {
30
31 public:
32
38
40 virtual ~KKGenInputModule() {}
41
43 virtual void generatorInitialize() override;
44
46 virtual void beginRun() override;
47
49 virtual void generatorEvent() override;
50
52 virtual void terminate() override;
53
54 protected:
55
58 std::string m_KKdefaultFileName;
59 std::string m_tauinputFileName;
63 private:
66
67 bool m_initialized{false};
72 };
73
75} // end namespace Belle2
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
The base module for generator modules, which sets the generator information as EventExtraInfo.
The KKGenInput module.
DBObjPtr< BeamParameters > m_beamParams
BeamParameter.
bool m_initialized
True if generator has been initialized.
std::string m_KKdefaultFileName
KKMC default setting file.
virtual ~KKGenInputModule()
Destructor.
virtual void terminate() override
Method is called at the end of the event processing.
std::string m_tauinputFileName
KKMC setting file for generating fermions.
std::string m_KKMCOutputFileName
KKMC output file previously as set "fort.16".
virtual void generatorInitialize() override
Initializes the module.
virtual void beginRun() override
Method is called for each run.
InitialParticleGeneration m_initial
initial particle used by BeamParameter class
KKGenInterface m_Ikkgen
An instance of the KK2f MC Interface.
MCParticleGraph mpg
An instance of the MCParticle graph.
void initializeGenerator()
Method is called to initialize the generator.
std::string m_taudecaytableFileName
tau decay tables in PYTHIA6 manner.
virtual void generatorEvent() override
Method is called for each event.
Interface class for using the KKMC generator.
Class to build, validate and sort a particle decay chain.
Abstract base class for different kinds of events.