EIC Software
Reference for
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
EventAction.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EventAction.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2017-2020 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
9
#pragma once
10
11
#include "
Acts/Propagator/MaterialInteractor.hpp
"
12
#include "
ActsExamples/EventData/SimHit.hpp
"
13
14
#include <memory>
15
16
#include <G4UserEventAction.hh>
17
#include <globals.hh>
18
19
namespace
ActsExamples {
20
21
class
SteppingAction;
22
31
class
EventAction
final :
public
G4UserEventAction {
32
public
:
34
static
EventAction
*
instance
();
35
37
EventAction
();
38
~EventAction
()
final
override
;
39
43
void
BeginOfEventAction
(
const
G4Event* event)
final
override
;
44
48
void
EndOfEventAction
(
const
G4Event* event)
final
override
;
49
51
void
clear
();
52
57
const
std::vector<Acts::RecordedMaterialTrack>&
materialTracks
()
const
;
58
59
private
:
61
static
EventAction
*
s_instance
;
62
64
std::vector<Acts::RecordedMaterialTrack>
m_materialTracks
;
65
};
66
67
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
Geant4
src
EventAction.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:24
using
1.8.2 with
EIC GitHub integration