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
MMSteppingAction.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MMSteppingAction.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
// MMMaterialStepAction.hpp
12
13
#pragma once
14
15
#include <vector>
16
17
#include "
ACTFW/EventData/SimHit.hpp
"
18
#include "
Acts/Propagator/MaterialInteractor.hpp
"
19
#include "
G4UserSteppingAction.hh
"
20
#include "
globals.hh
"
21
22
namespace
FW {
23
namespace
Geant4 {
24
32
class
MMSteppingAction
:
public
G4UserSteppingAction
{
33
public
:
35
MMSteppingAction
();
36
38
~MMSteppingAction
()
override
;
39
41
static
MMSteppingAction
*
Instance
();
42
46
void
UserSteppingAction
(
const
G4Step
*
step
)
final
override
;
47
50
void
Reset
();
51
53
std::vector<Acts::MaterialInteraction>
materialSteps
() {
return
m_steps
; }
54
56
FW::SimHitContainer::sequence_type
trackSteps
() {
return
m_tracksteps
; }
57
58
private
:
60
static
MMSteppingAction
*
fgInstance
;
61
63
std::vector<Acts::MaterialInteraction>
m_steps
= {};
65
FW::SimHitContainer::sequence_type
m_tracksteps
;
66
};
67
68
}
// namespace Geant4
69
}
// namespace FW
acts
blob
master
Examples
Algorithms
Geant4
include
ACTFW
Plugins
Geant4
MMSteppingAction.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:23
using
1.8.2 with
ECCE GitHub integration