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
EventAction.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: Guofu Cao, Andreas Moll *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
11
#ifndef EVENTACTION_H_
12
#define EVENTACTION_H_
13
14
#include <mdst/dataobjects/MCParticleGraph.h>
15
16
#include <G4UserEventAction.hh>
17
class
G4Event;
18
19
namespace
Belle2
{
25
class
MCParticleGraph;
26
27
namespace
Simulation {
28
33
class
EventAction
:
public
G4UserEventAction {
34
35
public
:
42
EventAction
(
const
std::string& mcCollectionName,
MCParticleGraph
& mcParticleGraph);
43
47
virtual
~EventAction
();
48
54
void
BeginOfEventAction
(
const
G4Event* event);
55
61
void
EndOfEventAction
(
const
G4Event* event);
62
63
64
protected
:
65
66
std::string
m_mcCollectionName
;
67
MCParticleGraph
&
m_mcParticleGraph
;
69
};
70
71
}
// end namespace Simulation
73
}
// end namespace Belle2
74
75
#endif
/* EVENTACTION_H_ */
Belle2::MCParticleGraph
Class to build, validate and sort a particle decay chain.
Definition:
MCParticleGraph.h:48
Belle2::Simulation::EventAction::BeginOfEventAction
void BeginOfEventAction(const G4Event *event)
This method is invoked before converting the primary particles to G4Track objects.
Definition:
EventAction.cc:38
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:66
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:67
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::Simulation::EventAction::EndOfEventAction
void EndOfEventAction(const G4Event *event)
This method is invoked at the very end of event processing.
Definition:
EventAction.cc:45
Belle2::Simulation::EventAction::~EventAction
virtual ~EventAction()
Destructor.
Definition:
EventAction.cc:33
Belle2::Simulation::EventAction::EventAction
EventAction(const std::string &mcCollectionName, MCParticleGraph &mcParticleGraph)
Constructor.
Definition:
EventAction.cc:23
Belle2::Simulation::EventAction
The Event Action class.
Definition:
EventAction.h:33
simulation
kernel
include
EventAction.h
Generated on Tue Jan 4 2022 03:01:59 for Belle II Software by
1.8.17