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