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
PHG4PhenixStackingAction.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4PhenixStackingAction.cc
1
#include "
PHG4PhenixStackingAction.h
"
2
#include "
PHG4StackingAction.h
"
3
4
PHG4PhenixStackingAction::~PHG4PhenixStackingAction
()
5
{
6
while
(
actions_
.begin() !=
actions_
.end())
7
{
8
delete
actions_
.back();
9
actions_
.pop_back();
10
}
11
}
12
13
14
//_________________________________________________________________
15
G4ClassificationOfNewTrack
PHG4PhenixStackingAction::ClassifyNewTrack
(
const
G4Track
* aTrack )
16
{
17
// loop over registered actions, and process
18
G4ClassificationOfNewTrack
retcode =
fUrgent
;
19
for
( ActionList::const_iterator iter =
actions_
.begin(); iter !=
actions_
.end(); ++iter )
20
{
21
if
(*iter)
22
{
23
G4ClassificationOfNewTrack
cret = (*iter)->ClassifyNewTrack(aTrack);
24
if
(cret !=
fUrgent
)
25
{
26
retcode = cret;
27
}
28
}
29
}
30
return
retcode;
31
}
32
33
//_________________________________________________________________
34
void
PHG4PhenixStackingAction::PrepareNewEvent
()
35
{
36
// loop over registered actions, and process
37
for
( ActionList::const_iterator iter =
actions_
.begin(); iter !=
actions_
.end(); ++iter )
38
{
39
if
(*iter)
40
{
41
(*iter)->PrepareNewEvent();
42
}
43
}
44
return
;
45
}
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4PhenixStackingAction.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:44
using
1.8.2 with
ECCE GitHub integration