Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:55

0001 #include "DumpMvtxRawEvtHeader.h"
0002 
0003 #include <ffarawobjects/MvtxRawEvtHeader.h>
0004 
0005 #include <phool/PHIODataNode.h>
0006 
0007 #include <ostream>
0008 #include <string>
0009 
0010 using MyNode_t = PHIODataNode<MvtxRawEvtHeader>;
0011 
0012 DumpMvtxRawEvtHeader::DumpMvtxRawEvtHeader(const std::string &NodeName)
0013   : DumpObject(NodeName)
0014 {
0015   return;
0016 }
0017 
0018 int DumpMvtxRawEvtHeader::process_Node(PHNode *myNode)
0019 {
0020   MvtxRawEvtHeader *mvtxRawEvtHeader = nullptr;
0021   MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);  // NOLINT(cppcoreguidelines-pro-type-static-cast-downcast)
0022   if (thisNode)
0023   {
0024     mvtxRawEvtHeader = thisNode->getData();
0025   }
0026   if (mvtxRawEvtHeader)
0027   {
0028     for (auto iter : mvtxRawEvtHeader->getMvtxFeeIdSet())
0029     {
0030       *fout << "FeeIdSet: " << iter << std::endl;
0031     }
0032     for (auto iter : mvtxRawEvtHeader->getMvtxLvL1BCO())
0033     {
0034       *fout << "LvL1BCO: " << iter << std::endl;
0035     }
0036   }
0037   return 0;
0038 }