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
DumpSyncObject.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DumpSyncObject.cc
1
#include "
DumpSyncObject.h
"
2
3
#include <
ffaobjects/SyncObject.h
>
4
5
#include <
phool/PHIODataNode.h
>
6
7
#include <ostream>
8
#include <string>
9
10
using
MyNode_t
=
PHIODataNode<SyncObject>
;
11
12
DumpSyncObject::DumpSyncObject
(
const
std::string
&NodeName)
13
:
DumpObject
(NodeName)
14
{
15
return
;
16
}
17
18
int
DumpSyncObject::process_Node
(
PHNode
*myNode)
19
{
20
SyncObject
*syncobject =
nullptr
;
21
MyNode_t
*thisNode =
static_cast<
MyNode_t
*
>
(myNode);
22
if
(thisNode)
23
{
24
syncobject = thisNode->
getData
();
25
}
26
if
(syncobject)
27
{
28
*
fout
<<
"SyncObject->isValid(): "
<< syncobject->
isValid
() << std::endl;
29
if
(syncobject->
isValid
())
30
{
31
*
fout
<<
"EventCounter(): "
<< syncobject->
EventCounter
() << std::endl;
32
*
fout
<<
"EventNumber(): "
<< syncobject->
EventNumber
() << std::endl;
33
*
fout
<<
"RunNumber(): "
<< syncobject->
RunNumber
() << std::endl;
34
*
fout
<<
"SegmentNumber(): "
<< syncobject->
SegmentNumber
() << std::endl;
35
}
36
}
37
return
0;
38
}
coresoftware
blob
master
offline
packages
NodeDump
DumpSyncObject.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:07
using
1.8.2 with
sPHENIX GitHub integration