Belle II Software
release-05-01-25
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 Fri Nov 5 2021 03:57:16 for Belle II Software by
1.8.17