Belle II Software development
KoralWInputModule.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/* KoralW header. */
12#include <generators/koralw/KoralW.h>
13
14/* Basf2 headers. */
15#include <generators/modules/GeneratorBaseModule.h>
16#include <generators/utilities/InitialParticleGeneration.h>
17#include <mdst/dataobjects/MCParticleGraph.h>
18
19/* C++ headers. */
20#include <string>
21
22namespace Belle2 {
33
34 public:
35
41
43 virtual ~KoralWInputModule();
44
46 void generatorInitialize() override;
47
49 void generatorEvent() override;
50
52 void terminate() override;
53
54 private:
55
56 std::string m_dataPath;
57 std::string m_userDataFile;
58 bool m_initialized{false};
59 bool m_firstEvent{true};
65 };
66
68} // 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 KoralW Generator module.
virtual ~KoralWInputModule()
Destructor.
bool m_firstEvent
Flag for keeping track of the first call of the event() method.
DBObjPtr< BeamParameters > m_beamParams
BeamParameter database object.
bool m_initialized
True if generator has been initialized.
KoralW m_generator
The KoralW generator.
void terminate() override
Method is called at the end of the event processing.
void generatorInitialize() override
Initializes the module.
MCParticleGraph m_mcGraph
The MCParticle graph object.
InitialParticleGeneration m_initial
InitialParticleGeneration utility.
std::string m_userDataFile
The filename of the user KoralW input data file.
std::string m_dataPath
The path to the KoralW input data files.
void generatorEvent() override
Method is called for each event.
C++ interface for the FORTRAN 4-fermion final state generator KoralW.
Definition: KoralW.h:30
Class to build, validate and sort a particle decay chain.
Abstract base class for different kinds of events.