File indexing completed on 2025-08-06 08:17:56
0001 #include "DumpTrkrClusterCrossingAssoc.h"
0002
0003 #include <phool/PHIODataNode.h>
0004
0005 #include <trackbase/TrkrClusterCrossingAssoc.h>
0006
0007 #include <map>
0008 #include <ostream>
0009 #include <string>
0010 #include <utility>
0011
0012 using MyNode_t = PHIODataNode<TrkrClusterCrossingAssoc>;
0013
0014 DumpTrkrClusterCrossingAssoc::DumpTrkrClusterCrossingAssoc(const std::string &NodeName)
0015 : DumpObject(NodeName)
0016 {
0017 return;
0018 }
0019
0020 int DumpTrkrClusterCrossingAssoc::process_Node(PHNode *myNode)
0021 {
0022 TrkrClusterCrossingAssoc *trkrclustercrossingassoc = nullptr;
0023 MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
0024 if (thisNode)
0025 {
0026 trkrclustercrossingassoc = thisNode->getData();
0027 }
0028 if (trkrclustercrossingassoc)
0029 {
0030 TrkrClusterCrossingAssoc::ConstRange begin_end = trkrclustercrossingassoc->getAll();
0031 *fout << "size " << trkrclustercrossingassoc->size() << std::endl;
0032 for (auto iter = begin_end.first; iter != begin_end.second; ++iter)
0033 {
0034 *fout << "cluster: " << std::hex << iter->first << std::dec << ", crossing: " << iter->second << std::endl;
0035 }
0036 }
0037 return 0;
0038 }