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
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
15
void
PHNodeReset::perform
(
PHNode
* node)
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
}
coresoftware
blob
master
offline
framework
phool
PHNodeReset.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:34
using
1.8.2 with
ECCE GitHub integration