File indexing completed on 2025-08-06 08:17:56
0001 #include "DumpSyncObject.h"
0002
0003 #include <ffaobjects/SyncObject.h>
0004
0005 #include <phool/PHIODataNode.h>
0006
0007 #include <ostream>
0008 #include <string>
0009
0010 using MyNode_t = PHIODataNode<SyncObject>;
0011
0012 DumpSyncObject::DumpSyncObject(const std::string &NodeName)
0013 : DumpObject(NodeName)
0014 {
0015 return;
0016 }
0017
0018 int DumpSyncObject::process_Node(PHNode *myNode)
0019 {
0020 SyncObject *syncobject = nullptr;
0021 MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
0022 if (thisNode)
0023 {
0024 syncobject = thisNode->getData();
0025 }
0026 if (syncobject)
0027 {
0028 *fout << "SyncObject->isValid(): " << syncobject->isValid() << std::endl;
0029 if (syncobject->isValid())
0030 {
0031 *fout << "EventCounter(): " << syncobject->EventCounter() << std::endl;
0032 *fout << "EventNumber(): " << syncobject->EventNumber() << std::endl;
0033 *fout << "RunNumber(): " << syncobject->RunNumber() << std::endl;
0034 *fout << "SegmentNumber(): " << syncobject->SegmentNumber() << std::endl;
0035 }
0036 }
0037 return 0;
0038 }