Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #include "DumpMbdOut.h"
0002 
0003 #include <mbd/MbdOut.h>
0004 
0005 #include <phool/PHIODataNode.h>
0006 
0007 #include <ostream>
0008 #include <string>
0009 
0010 using MyNode_t = PHIODataNode<MbdOut>;
0011 
0012 DumpMbdOut::DumpMbdOut(const std::string &NodeName)
0013   : DumpObject(NodeName)
0014 {
0015   return;
0016 }
0017 
0018 int DumpMbdOut::process_Node(PHNode *myNode)
0019 {
0020   MbdOut *bbcout = nullptr;
0021   MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);  // NOLINT(cppcoreguidelines-pro-type-static-cast-downcast)
0022   if (thisNode)
0023   {
0024     bbcout = thisNode->getData();
0025   }
0026   if (bbcout && bbcout->isValid())
0027   {
0028     *fout << "MbdOut->get_bz: " << bbcout->get_zvtx() << std::endl;
0029     *fout << "MbdOut->get_bzerr: " << bbcout->get_zvtxerr() << std::endl;
0030     *fout << "MbdOut->get_t0: " << bbcout->get_t0() << std::endl;
0031     *fout << "MbdOut->get_t0err: " << bbcout->get_t0err() << std::endl;
0032     *fout << "MbdOut->get_bns: " << bbcout->get_npmt(0) << std::endl;
0033     *fout << "MbdOut->get_bnn: " << bbcout->get_npmt(1) << std::endl;
0034     *fout << "MbdOut->get_bqs: " << bbcout->get_q(0) << std::endl;
0035     *fout << "MbdOut->get_bqn: " << bbcout->get_q(1) << std::endl;
0036     *fout << "MbdOut->get_bts: " << bbcout->get_time(0) << std::endl;
0037     *fout << "MbdOut->get_btn: " << bbcout->get_time(1) << std::endl;
0038   }
0039   return 0;
0040 }