ECCE @ EIC Software
 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
3 
4 #include <phool/getClass.h>
5 
6 #include <boost/foreach.hpp>
7 
8 //___________________________________________________
10  topNode(node)
11 {
12  AddNode(name);
13 }
14 
15 
16 void
18 {
19  nodename_set.insert(name);
20 }
21 
22 //___________________________________________________
24 {
25  BOOST_FOREACH(std::string node, nodename_set)
26  {
27  PHG4HitContainer* generic_hits = findNode::getClass<PHG4HitContainer>( topNode , node);
28  if (generic_hits)
29  {
30  generic_hits->RemoveZeroEDep();
31  }
32  }
33 }