Belle II Software
release-08-01-10
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
{
32
class
EvtGenDecayModule
:
public
Module
{
33
34
public
:
35
39
EvtGenDecayModule
();
40
44
virtual
~EvtGenDecayModule
();
45
49
virtual
void
initialize
()
override
;
50
54
virtual
void
beginRun
()
override
;
55
59
virtual
void
event
()
override
;
60
64
virtual
void
endRun
()
override
;
65
69
virtual
void
terminate
()
override
;
70
71
private
:
72
76
void
initializeGenerator
();
77
79
std::string
m_DecFile
;
80
82
std::string
m_UserDecFile
;
83
85
std::string
m_MCParticleColName
;
86
88
MCParticleGraph
m_Graph
;
89
91
EvtGenInterface
m_EvtGenInterface
;
92
94
bool
m_Initialized
;
95
97
std::set<int>
m_DecayableParticles
;
98
100
DBObjPtr<BeamParameters>
m_BeamParameters
;
101
102
};
103
105
}
106
107
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:32
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:94
Belle2::EvtGenDecayModule::m_DecFile
std::string m_DecFile
Decay file.
Definition:
EvtGenDecayModule.h:79
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:100
Belle2::EvtGenDecayModule::m_UserDecFile
std::string m_UserDecFile
User decay file.
Definition:
EvtGenDecayModule.h:82
Belle2::EvtGenDecayModule::m_Graph
MCParticleGraph m_Graph
MCParticle graph.
Definition:
EvtGenDecayModule.h:88
Belle2::EvtGenDecayModule::m_MCParticleColName
std::string m_MCParticleColName
MCParticle collection name.
Definition:
EvtGenDecayModule.h:85
Belle2::EvtGenDecayModule::m_EvtGenInterface
EvtGenInterface m_EvtGenInterface
Evtgen interface.
Definition:
EvtGenDecayModule.h:91
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:97
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:35
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 Mon Sep 23 2024 14:02:43 for Belle II Software by
1.9.1