Class Reference for E1039 Core & Analysis Software
Home page
Related Pages
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
PHG4EventActionClearZeroEdep.cc
Go to the documentation of this file.
1
#include "
PHG4EventActionClearZeroEdep.h
"
2
#include <
g4main/PHG4HitContainer.h
>
3
4
#include <
phool/getClass.h
>
5
6
#include <Geant4/G4Event.hh>
7
8
#include <boost/foreach.hpp>
9
10
using namespace
std;
11
12
//___________________________________________________
13
PHG4EventActionClearZeroEdep::PHG4EventActionClearZeroEdep
(
PHCompositeNode
*node,
const
string
&name ):
14
topNode(node)
15
{
16
AddNode
(name);
17
}
18
19
20
void
21
PHG4EventActionClearZeroEdep::AddNode
(
const
std::string &name)
22
{
23
nodename_set.insert(name);
24
}
25
26
//___________________________________________________
27
void
PHG4EventActionClearZeroEdep::EndOfEventAction
(
const
G4Event* evt)
28
{
29
BOOST_FOREACH(
string
node, nodename_set)
30
{
31
PHG4HitContainer
* generic_hits = findNode::getClass<PHG4HitContainer>( topNode , node.c_str());
32
if
(generic_hits)
33
{
34
generic_hits->
RemoveZeroEDep
();
35
}
36
}
37
}
PHG4EventActionClearZeroEdep::AddNode
void AddNode(const std::string &name)
Definition:
PHG4EventActionClearZeroEdep.cc:21
PHG4EventActionClearZeroEdep.h
PHG4EventActionClearZeroEdep::EndOfEventAction
void EndOfEventAction(const G4Event *)
Definition:
PHG4EventActionClearZeroEdep.cc:27
PHG4HitContainer
Definition:
PHG4HitContainer.h:12
PHG4HitContainer::RemoveZeroEDep
void RemoveZeroEDep()
Definition:
PHG4HitContainer.cc:163
getClass.h
PHCompositeNode
Definition:
PHCompositeNode.h:14
PHG4EventActionClearZeroEdep::PHG4EventActionClearZeroEdep
PHG4EventActionClearZeroEdep(PHCompositeNode *topNode, const std::string &name)
constructor
Definition:
PHG4EventActionClearZeroEdep.cc:13
PHG4HitContainer.h
e1039-core
simulation
g4detectors
PHG4EventActionClearZeroEdep.cc
Built by
Haiwang Yu
. updated:
Wed May 26 2021 21:44:04
using
1.8.5 with
SeaQuest GitHub integration