Belle II Software
release-06-02-00
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
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
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
EventAction.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 EVENTACTION_H_
10
#define EVENTACTION_H_
11
12
#include <mdst/dataobjects/MCParticleGraph.h>
13
14
#include <G4UserEventAction.hh>
15
class
G4Event;
16
17
namespace
Belle2
{
23
class
MCParticleGraph;
24
25
namespace
Simulation {
26
31
class
EventAction
:
public
G4UserEventAction {
32
33
public
:
40
EventAction
(
const
std::string& mcCollectionName,
MCParticleGraph
& mcParticleGraph);
41
45
virtual
~EventAction
();
46
52
void
BeginOfEventAction
(
const
G4Event* event);
53
59
void
EndOfEventAction
(
const
G4Event* event);
60
61
62
protected
:
63
64
std::string
m_mcCollectionName
;
65
MCParticleGraph
&
m_mcParticleGraph
;
67
};
68
69
}
// end namespace Simulation
71
}
// end namespace Belle2
72
73
#endif
/* EVENTACTION_H_ */
Belle2::MCParticleGraph
Class to build, validate and sort a particle decay chain.
Definition:
MCParticleGraph.h:37
Belle2::Simulation::EventAction
The Event Action class.
Definition:
EventAction.h:31
Belle2::Simulation::EventAction::m_mcCollectionName
std::string m_mcCollectionName
The name of the MCParticle collection to which the MCParticles should be written.
Definition:
EventAction.h:64
Belle2::Simulation::EventAction::m_mcParticleGraph
MCParticleGraph & m_mcParticleGraph
Reference to the MCParticle graph which is converted to a MCParticle list by this class.
Definition:
EventAction.h:65
Belle2::Simulation::EventAction::~EventAction
virtual ~EventAction()
Destructor.
Definition:
EventAction.cc:31
Belle2::Simulation::EventAction::EventAction
EventAction(const std::string &mcCollectionName, MCParticleGraph &mcParticleGraph)
Constructor.
Definition:
EventAction.cc:21
Belle2::Simulation::EventAction::EndOfEventAction
void EndOfEventAction(const G4Event *event)
This method is invoked at the very end of event processing.
Definition:
EventAction.cc:43
Belle2::Simulation::EventAction::BeginOfEventAction
void BeginOfEventAction(const G4Event *event)
This method is invoked before converting the primary particles to G4Track objects.
Definition:
EventAction.cc:36
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
simulation
kernel
include
EventAction.h
Generated on Thu Dec 28 2023 02:30:32 for Belle II Software by
1.9.1