Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4PhenixSteppingAction.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4PhenixSteppingAction.cc
1
#include "
PHG4PhenixSteppingAction.h
"
2
#include "
PHG4SteppingAction.h
"
3
4
PHG4PhenixSteppingAction::~PHG4PhenixSteppingAction
()
5
{
6
while
(
actions_
.begin() !=
actions_
.end())
7
{
8
delete
actions_
.back();
9
actions_
.pop_back();
10
}
11
}
12
13
14
//_________________________________________________________________
15
void
PHG4PhenixSteppingAction::UserSteppingAction
(
const
G4Step* aStep )
16
{
17
// loop over registered actions, and process
18
bool
hit_was_used =
false
;
19
for
( ActionList::const_iterator iter =
actions_
.begin(); iter !=
actions_
.end(); ++iter )
20
{
21
if
(*iter)
22
{
23
hit_was_used |= (*iter)->UserSteppingAction( aStep, hit_was_used );
24
}
25
}
26
27
}
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4PhenixSteppingAction.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:15
using
1.8.2 with
sPHENIX GitHub integration