Belle II Software
release-05-02-19
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
k
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
u
v
w
x
z
Typedefs
a
b
c
d
e
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
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
PrimaryGeneratorAction.h
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2010-2011 Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Andreas Moll, Martin Ritter *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
11
#ifndef PRIMARYGENERATORACTION_H_
12
#define PRIMARYGENERATORACTION_H_
13
14
#include <mdst/dataobjects/MCParticleGraph.h>
15
16
#include <G4VUserPrimaryGeneratorAction.hh>
17
#include <string>
18
19
class
G4Event;
20
21
namespace
Belle2
{
27
namespace
Simulation {
28
29
class
MCParticleGenerator;
30
36
class
PrimaryGeneratorAction
:
public
G4VUserPrimaryGeneratorAction {
37
38
public
:
39
44
PrimaryGeneratorAction
(
const
std::string& mcCollectionName,
MCParticleGraph
& mcParticleGraph);
45
47
virtual
~PrimaryGeneratorAction
();
48
54
void
GeneratePrimaries
(G4Event* event);
55
56
57
protected
:
58
59
MCParticleGenerator
*
m_mcParticleGenerator
;
60
};
61
62
}
//end of Simulation namespace
63
65
}
//end of Belle2 namespace
66
67
68
#endif
/* PRIMARYGENERATORACTION_H_ */
Belle2::MCParticleGraph
Class to build, validate and sort a particle decay chain.
Definition:
MCParticleGraph.h:48
Belle2::Simulation::PrimaryGeneratorAction::~PrimaryGeneratorAction
virtual ~PrimaryGeneratorAction()
The destructor of the PrimaryGeneratorAction.
Definition:
PrimaryGeneratorAction.cc:32
Belle2::Simulation::PrimaryGeneratorAction::m_mcParticleGenerator
MCParticleGenerator * m_mcParticleGenerator
The instance of the MCParticle generator.
Definition:
PrimaryGeneratorAction.h:59
Belle2::Simulation::PrimaryGeneratorAction
The PrimaryGeneratorAction class inherits from G4VuserPrimaryGeneratorAction and specifies how a prim...
Definition:
PrimaryGeneratorAction.h:36
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::Simulation::PrimaryGeneratorAction::PrimaryGeneratorAction
PrimaryGeneratorAction(const std::string &mcCollectionName, MCParticleGraph &mcParticleGraph)
The constructor of the PrimaryGeneratorAction.
Definition:
PrimaryGeneratorAction.cc:21
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:38
Belle2::Simulation::MCParticleGenerator
This class creates Geant4 primary particles from MCParticle list The generator assumes that each part...
Definition:
MCParticleGenerator.h:35
simulation
kernel
include
PrimaryGeneratorAction.h
Generated on Tue Jan 4 2022 03:02:00 for Belle II Software by
1.8.17