Belle II Software  release-08-00-05
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 <framework/core/Module.h>
12 
13 #include <string>
14 
15 #include <mdst/dataobjects/MCParticleGraph.h>
16 #include <generators/kkmc/KKGenInterface.h>
17 
18 #include <generators/utilities/InitialParticleGeneration.h>
19 
20 namespace Belle2 {
30  class KKGenInputModule : public Module {
31 
32  public:
33 
39 
41  virtual ~KKGenInputModule() {}
42 
44  virtual void initialize() override;
45 
47  virtual void beginRun() override;
48 
50  virtual void event() override;
51 
53  virtual void terminate() override;
54 
55 
56  protected:
57 
60  std::string m_KKdefaultFileName;
61  std::string m_tauinputFileName;
63  std::string m_KKMCOutputFileName;
65  private:
67  void initializeGenerator();
68 
69  bool m_initialized{false};
74  };
75 
77 } // end namespace Belle2
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.