Belle II Software
development
EvtGenDecayModule.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
/* Basf2 headers. */
12
#include <framework/core/Module.h>
13
#include <generators/evtgen/EvtGenInterface.h>
14
#include <generators/utilities/InitialParticleGeneration.h>
15
#include <mdst/dataobjects/MCParticleGraph.h>
16
17
/* C++ headers. */
18
#include <string>
19
20
namespace
Belle2
{
29
class
EvtGenDecayModule
:
public
Module
{
30
31
public
:
32
36
EvtGenDecayModule
();
37
41
virtual
~EvtGenDecayModule
();
42
46
virtual
void
initialize
()
override
;
47
51
virtual
void
beginRun
()
override
;
52
56
virtual
void
event
()
override
;
57
61
virtual
void
endRun
()
override
;
62
66
virtual
void
terminate
()
override
;
67
68
private
:
69
73
void
initializeGenerator
();
74
76
std::string
m_DecFile
;
77
79
std::string
m_UserDecFile
;
80
82
std::string
m_MCParticleColName
;
83
85
MCParticleGraph
m_Graph
;
86
88
EvtGenInterface
m_EvtGenInterface
;
89
91
bool
m_Initialized
;
92
94
std::set<int>
m_DecayableParticles
;
95
97
DBObjPtr<BeamParameters>
m_BeamParameters
;
98
99
};
100
102
}
103
104
Belle2::DBObjPtr
Class for accessing objects in the database.
Definition:
DBObjPtr.h:21
Belle2::EvtGenDecayModule
This module decays unstable particles using EvtGen.
Definition:
EvtGenDecayModule.h:29
Belle2::EvtGenDecayModule::initialize
virtual void initialize() override
Initialization.
Definition:
EvtGenDecayModule.cc:47
Belle2::EvtGenDecayModule::event
virtual void event() override
This method is called for each event.
Definition:
EvtGenDecayModule.cc:58
Belle2::EvtGenDecayModule::endRun
virtual void endRun() override
This method is called if the current run ends.
Definition:
EvtGenDecayModule.cc:92
Belle2::EvtGenDecayModule::terminate
virtual void terminate() override
This method is called at the end of the event processing.
Definition:
EvtGenDecayModule.cc:96
Belle2::EvtGenDecayModule::m_Initialized
bool m_Initialized
Whether the generator is initialized or not.
Definition:
EvtGenDecayModule.h:91
Belle2::EvtGenDecayModule::m_DecFile
std::string m_DecFile
Decay file.
Definition:
EvtGenDecayModule.h:76
Belle2::EvtGenDecayModule::beginRun
virtual void beginRun() override
This method is called when entering a new run.
Definition:
EvtGenDecayModule.cc:54
Belle2::EvtGenDecayModule::m_BeamParameters
DBObjPtr< BeamParameters > m_BeamParameters
Beam parameters.
Definition:
EvtGenDecayModule.h:97
Belle2::EvtGenDecayModule::m_UserDecFile
std::string m_UserDecFile
User decay file.
Definition:
EvtGenDecayModule.h:79
Belle2::EvtGenDecayModule::m_Graph
MCParticleGraph m_Graph
MCParticle graph.
Definition:
EvtGenDecayModule.h:85
Belle2::EvtGenDecayModule::m_MCParticleColName
std::string m_MCParticleColName
MCParticle collection name.
Definition:
EvtGenDecayModule.h:82
Belle2::EvtGenDecayModule::m_EvtGenInterface
EvtGenInterface m_EvtGenInterface
Evtgen interface.
Definition:
EvtGenDecayModule.h:88
Belle2::EvtGenDecayModule::EvtGenDecayModule
EvtGenDecayModule()
Constructor.
Definition:
EvtGenDecayModule.cc:27
Belle2::EvtGenDecayModule::m_DecayableParticles
std::set< int > m_DecayableParticles
Monte-Carlo codes of particles that can be decayed by EvtGen.
Definition:
EvtGenDecayModule.h:94
Belle2::EvtGenDecayModule::~EvtGenDecayModule
virtual ~EvtGenDecayModule()
Destructor.
Definition:
EvtGenDecayModule.cc:43
Belle2::EvtGenDecayModule::initializeGenerator
void initializeGenerator()
Generator initialization.
Definition:
EvtGenDecayModule.cc:100
Belle2::EvtGenInterface
Class to interface EvtGen.
Definition:
EvtGenInterface.h:36
Belle2::MCParticleGraph
Class to build, validate and sort a particle decay chain.
Definition:
MCParticleGraph.h:37
Belle2::Module
Base class for Modules.
Definition:
Module.h:72
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
generators
modules
evtgendecay
EvtGenDecayModule.h
Generated on Fri Nov 8 2024 02:38:27 for Belle II Software by
1.9.6