Belle II Software  release-06-01-15
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 #ifndef KKGENINPUTMODULE_H
10 #define KKGENINPUTMODULE_H
11 
12 #include <framework/core/Module.h>
13 
14 #include <string>
15 
16 #include <mdst/dataobjects/MCParticleGraph.h>
17 #include <generators/kkmc/KKGenInterface.h>
18 
19 #include <generators/utilities/InitialParticleGeneration.h>
20 
21 namespace Belle2 {
31  class KKGenInputModule : public Module {
32 
33  public:
34 
40 
42  virtual ~KKGenInputModule() {}
43 
45  virtual void initialize() override;
46 
48  virtual void beginRun() override;
49 
51  virtual void event() override;
52 
54  virtual void terminate() override;
55 
56 
57  protected:
58 
61  std::string m_KKdefaultFileName;
62  std::string m_tauinputFileName;
64  std::string m_KKMCOutputFileName;
66  private:
68  void initializeGenerator();
69 
70  bool m_initialized{false};
75  };
76 
78 } // end namespace Belle2
79 
80 #endif // KKGENINPUTMODULE_H
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
The KKGenInput module.
DBObjPtr< BeamParameters > m_beamParams
BeamParameter.
bool m_initialized
True if generator has been initialized.
virtual void initialize() override
Initializes the module.
std::string m_KKdefaultFileName
KKMC default setting file.
virtual ~KKGenInputModule()
Destructor.
virtual void event() override
Method is called for each event.
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 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.
Interface class for using the KKMC generator.
Class to build, validate and sort a particle decay chain.
Base class for Modules.
Definition: Module.h:72
Abstract base class for different kinds of events.