Back to home page

sPhenix code displayed by LXR

 
 

    


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

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