ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
MMEventAction.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MMEventAction.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2017-2018 CERN for the benefit of the Acts project
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
10
// MMEventAction.hpp
12
13
#pragma once
14
15
#include <memory>
16
17
#include "
ACTFW/EventData/SimHit.hpp
"
18
#include "
Acts/Propagator/MaterialInteractor.hpp
"
19
#include "
G4UserEventAction.hh
"
20
#include "
globals.hh
"
21
23
namespace
FW {
24
25
namespace
Geant4 {
26
27
class
MMSteppingAction;
28
37
class
MMEventAction
:
public
G4UserEventAction
{
38
public
:
40
MMEventAction
();
41
43
~MMEventAction
()
override
;
44
46
static
MMEventAction
*
Instance
();
47
51
void
BeginOfEventAction
(
const
G4Event
* event)
final
override
;
52
56
void
EndOfEventAction
(
const
G4Event
* event)
final
override
;
57
60
void
Reset
();
61
62
// Access the material track records
63
std::vector<Acts::RecordedMaterialTrack>
const
MaterialTracks
();
64
65
// Access the step sim hit info
66
FW::SimHitContainer
const
TrackSteps
();
67
68
private
:
70
static
MMEventAction
*
fgInstance
;
71
73
std::vector<Acts::RecordedMaterialTrack>
m_records
;
74
FW::SimHitContainer
m_tracksteps
;
75
};
76
77
inline
std::vector<Acts::RecordedMaterialTrack>
const
78
MMEventAction::MaterialTracks
() {
79
auto
rrecords =
m_records
;
80
m_records
.clear();
81
return
rrecords;
82
}
83
84
inline
FW::SimHitContainer
const
MMEventAction::TrackSteps
() {
85
return
m_tracksteps
;
86
}
87
88
}
// namespace Geant4
89
}
// namespace FW
acts
blob
master
Examples
Algorithms
Geant4
include
ACTFW
Plugins
Geant4
MMEventAction.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:23
using
1.8.2 with
ECCE GitHub integration