Belle II Software
development
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
v
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
PrimaryGeneratorAction.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
#ifndef PRIMARYGENERATORACTION_H_
10
#define PRIMARYGENERATORACTION_H_
11
12
#include <mdst/dataobjects/MCParticleGraph.h>
13
14
#include <G4VUserPrimaryGeneratorAction.hh>
15
#include <string>
16
17
class
G4Event;
18
19
namespace
Belle2
{
25
namespace
Simulation {
26
27
class
MCParticleGenerator;
28
34
class
PrimaryGeneratorAction
:
public
G4VUserPrimaryGeneratorAction {
35
36
public
:
37
42
PrimaryGeneratorAction
(
const
std::string& mcCollectionName,
MCParticleGraph
& mcParticleGraph);
43
45
virtual
~PrimaryGeneratorAction
();
46
52
void
GeneratePrimaries
(G4Event* event);
53
54
55
protected
:
56
57
MCParticleGenerator
*
m_mcParticleGenerator
;
58
};
59
60
}
//end of Simulation namespace
61
63
}
//end of Belle2 namespace
64
65
66
#endif
/* PRIMARYGENERATORACTION_H_ */
Belle2::MCParticleGraph
Class to build, validate and sort a particle decay chain.
Definition:
MCParticleGraph.h:37
Belle2::Simulation::MCParticleGenerator
This class creates Geant4 primary particles from MCParticle list The generator assumes that each part...
Definition:
MCParticleGenerator.h:33
Belle2::Simulation::PrimaryGeneratorAction
The PrimaryGeneratorAction class inherits from G4VuserPrimaryGeneratorAction and specifies how a prim...
Definition:
PrimaryGeneratorAction.h:34
Belle2::Simulation::PrimaryGeneratorAction::~PrimaryGeneratorAction
virtual ~PrimaryGeneratorAction()
The destructor of the PrimaryGeneratorAction.
Definition:
PrimaryGeneratorAction.cc:30
Belle2::Simulation::PrimaryGeneratorAction::GeneratePrimaries
void GeneratePrimaries(G4Event *event)
This method is called for each event by Geant4 and creates the primary particles by invoking the gene...
Definition:
PrimaryGeneratorAction.cc:36
Belle2::Simulation::PrimaryGeneratorAction::m_mcParticleGenerator
MCParticleGenerator * m_mcParticleGenerator
The instance of the MCParticle generator.
Definition:
PrimaryGeneratorAction.h:57
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
simulation
kernel
include
PrimaryGeneratorAction.h
Generated on Wed Apr 9 2025 02:44:40 for Belle II Software by
1.9.6