ECCE @ EIC Software
 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 
4 
5 #include <phool/PHIODataNode.h>
6 
7 #include <ostream>
8 #include <string>
9 
10 using namespace std;
11 
13 
14 DumpSyncObject::DumpSyncObject(const string &NodeName)
15  : DumpObject(NodeName)
16 {
17  return;
18 }
19 
21 {
22  SyncObject *syncobject = nullptr;
23  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
24  if (thisNode)
25  {
26  syncobject = thisNode->getData();
27  }
28  if (syncobject)
29  {
30  *fout << "SyncObject->isValid(): " << syncobject->isValid() << endl;
31  if (syncobject->isValid())
32  {
33  *fout << "EventCounter(): " << syncobject->EventCounter() << endl;
34  *fout << "EventNumber(): " << syncobject->EventNumber() << endl;
35  *fout << "RunNumber(): " << syncobject->RunNumber() << endl;
36  *fout << "SegmentNumber(): " << syncobject->SegmentNumber() << endl;
37  }
38  }
39  return 0;
40 }