Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #include "DumpFlagSave.h"
0002 
0003 #include <phool/PHIODataNode.h>
0004 
0005 #include <ffaobjects/FlagSave.h>
0006 
0007 #include <map>
0008 #include <ostream>
0009 #include <string>
0010 #include <utility>
0011 
0012 using MyNode_t = PHIODataNode<FlagSave>;
0013 
0014 DumpFlagSave::DumpFlagSave(const std::string &NodeName)
0015   : DumpObject(NodeName)
0016 {
0017   return;
0018 }
0019 
0020 int DumpFlagSave::process_Node(PHNode *myNode)
0021 {
0022   FlagSave *flagsave = nullptr;
0023   MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);  // NOLINT(cppcoreguidelines-pro-type-static-cast-downcast)
0024   if (thisNode)
0025   {
0026     flagsave = thisNode->getData();
0027   }
0028   if (flagsave)
0029   {
0030     flagsave->identify(*fout);
0031   }
0032   return 0;
0033 }