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
PHG4EventActionClearZeroEdep.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4EventActionClearZeroEdep.cc
1
#include "
PHG4EventActionClearZeroEdep.h
"
2
#include <
g4main/PHG4HitContainer.h
>
3
4
#include <
phool/getClass.h
>
5
6
//___________________________________________________
7
PHG4EventActionClearZeroEdep::PHG4EventActionClearZeroEdep
(
PHCompositeNode
*
node
,
const
std::string
&
name
)
8
: topNode(node)
9
{
10
AddNode
(name);
11
}
12
13
void
PHG4EventActionClearZeroEdep::AddNode
(
const
std::string
&
name
)
14
{
15
nodename_set
.insert(name);
16
}
17
18
//___________________________________________________
19
void
PHG4EventActionClearZeroEdep::EndOfEventAction
(
const
G4Event *
/*evt*/
)
20
{
21
for
(
auto
&
node
:
nodename_set
)
22
{
23
PHG4HitContainer
*generic_hits = findNode::getClass<PHG4HitContainer>(
topNode
,
node
);
24
if
(generic_hits)
25
{
26
generic_hits->
RemoveZeroEDep
();
27
}
28
}
29
}
coresoftware
blob
master
simulation
g4simulation
g4detectors
PHG4EventActionClearZeroEdep.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:12
using
1.8.2 with
sPHENIX GitHub integration