Belle II Software
release-08-01-10
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 Mon Sep 23 2024 14:03:57 for Belle II Software by
1.9.1