File indexing completed on 2025-08-06 08:17:55
0001 #include "DumpMbdPmtContainer.h"
0002
0003 #include <mbd/MbdPmtContainer.h>
0004 #include <mbd/MbdPmtHit.h>
0005
0006 #include <phool/PHIODataNode.h>
0007
0008 #include <ostream>
0009 #include <string>
0010
0011 using MyNode_t = PHIODataNode<MbdPmtContainer>;
0012
0013 DumpMbdPmtContainer::DumpMbdPmtContainer(const std::string &NodeName)
0014 : DumpObject(NodeName)
0015 {
0016 return;
0017 }
0018
0019 int DumpMbdPmtContainer::process_Node(PHNode *myNode)
0020 {
0021 MbdPmtContainer *mbdpmts = nullptr;
0022 MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
0023 if (thisNode)
0024 {
0025 mbdpmts = thisNode->getData();
0026 }
0027 if (mbdpmts && mbdpmts->isValid())
0028 {
0029 *fout << "MbdPmtContainer->get_npmt: " << mbdpmts->get_npmt() << std::endl;
0030 for (int j = 0; j < mbdpmts->get_npmt(); j++)
0031 {
0032 *fout << "MbdPmtContainer->get_pmt(" << j << ")->get_q(): " << mbdpmts->get_pmt(j)->get_q() << std::endl;
0033 *fout << "MbdPmtContainer->get_pmt(" << j << ")->get_time(): " << mbdpmts->get_pmt(j)->get_time() << std::endl;
0034 }
0035 }
0036 return 0;
0037 }