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
22
namespace
Belle2
{
32
class
KoralWInputModule
:
public
GeneratorBaseModule
{
33
34
public
:
35
40
KoralWInputModule
();
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
};
60
KoralW
m_generator
;
61
MCParticleGraph
m_mcGraph
;
62
DBObjPtr<BeamParameters>
m_beamParams
;
63
InitialParticleGeneration
m_initial
;
65
};
66
68
}
// end namespace Belle2
Belle2::DBObjPtr
Class for accessing objects in the database.
Definition:
DBObjPtr.h:21
Belle2::GeneratorBaseModule
The base module for generator modules, which sets the generator information as EventExtraInfo.
Definition:
GeneratorBaseModule.h:29
Belle2::InitialParticleGeneration
Generate Collision.
Definition:
InitialParticleGeneration.h:35
Belle2::KoralWInputModule
The KoralW Generator module.
Definition:
KoralWInputModule.h:32
Belle2::KoralWInputModule::~KoralWInputModule
virtual ~KoralWInputModule()
Destructor.
Definition:
KoralWInputModule.cc:39
Belle2::KoralWInputModule::m_firstEvent
bool m_firstEvent
Flag for keeping track of the first call of the event() method.
Definition:
KoralWInputModule.h:59
Belle2::KoralWInputModule::KoralWInputModule
KoralWInputModule()
Constructor.
Definition:
KoralWInputModule.cc:26
Belle2::KoralWInputModule::m_beamParams
DBObjPtr< BeamParameters > m_beamParams
BeamParameter database object.
Definition:
KoralWInputModule.h:62
Belle2::KoralWInputModule::m_initialized
bool m_initialized
True if generator has been initialized.
Definition:
KoralWInputModule.h:58
Belle2::KoralWInputModule::m_generator
KoralW m_generator
The KoralW generator.
Definition:
KoralWInputModule.h:60
Belle2::KoralWInputModule::terminate
void terminate() override
Method is called at the end of the event processing.
Definition:
KoralWInputModule.cc:78
Belle2::KoralWInputModule::generatorInitialize
void generatorInitialize() override
Initializes the module.
Definition:
KoralWInputModule.cc:43
Belle2::KoralWInputModule::m_mcGraph
MCParticleGraph m_mcGraph
The MCParticle graph object.
Definition:
KoralWInputModule.h:61
Belle2::KoralWInputModule::m_initial
InitialParticleGeneration m_initial
InitialParticleGeneration utility.
Definition:
KoralWInputModule.h:63
Belle2::KoralWInputModule::m_userDataFile
std::string m_userDataFile
The filename of the user KoralW input data file.
Definition:
KoralWInputModule.h:57
Belle2::KoralWInputModule::m_dataPath
std::string m_dataPath
The path to the KoralW input data files.
Definition:
KoralWInputModule.h:56
Belle2::KoralWInputModule::generatorEvent
void generatorEvent() override
Method is called for each event.
Definition:
KoralWInputModule.cc:56
Belle2::KoralW
C++ interface for the FORTRAN 4-fermion final state generator KoralW.
Definition:
KoralW.h:30
Belle2::MCParticleGraph
Class to build, validate and sort a particle decay chain.
Definition:
MCParticleGraph.h:37
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
generators
modules
koralwinput
include
KoralWInputModule.h
Generated on Fri Nov 8 2024 02:38:31 for Belle II Software by
1.9.6