ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHNodeReset.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHNodeReset.cc
1 // Implementation of class PHNodeReset
2 // Author: Matthias Messer
3 
4 #include "PHNodeReset.h"
5 
6 #include "PHDataNode.h"
7 #include "PHNode.h"
8 #include "PHObject.h"
9 
10 #include <iostream>
11 #include <string>
12 
13 using namespace std;
14 
16 {
17  if (node->getResetFlag() != true) return;
18  if (verbosity > 0)
19  {
20  cout << "PHNodeReset: Resetting " << node->getName() << endl;
21  }
22  if (node->getType() == "PHDataNode" || node->getType() == "PHIODataNode")
23  {
24  if (node->getObjectType() == "PHObject")
25  {
26  (static_cast<PHDataNode<PHObject>*>(node))->getData()->Reset();
27  }
28  }
29 }