File indexing completed on 2025-08-06 08:17:55
0001 #include "DumpInttDeadMap.h"
0002
0003 #include <phool/PHIODataNode.h>
0004
0005 #include <g4intt/InttDeadMap.h>
0006
0007 #include <map>
0008 #include <ostream>
0009 #include <set>
0010 #include <string>
0011 #include <utility>
0012
0013 using MyNode_t = PHIODataNode<InttDeadMap>;
0014
0015 DumpInttDeadMap::DumpInttDeadMap(const std::string &NodeName)
0016 : DumpObject(NodeName)
0017 {
0018 return;
0019 }
0020
0021 int DumpInttDeadMap::process_Node(PHNode *myNode)
0022 {
0023 InttDeadMap *inttdeadmap = nullptr;
0024 MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
0025 if (thisNode)
0026 {
0027 inttdeadmap = thisNode->getData();
0028 }
0029 if (inttdeadmap)
0030 {
0031 *fout << "size " << inttdeadmap->size() << std::endl;
0032 const InttDeadMap::Map thismap = inttdeadmap->getDeadChannels();
0033 for (unsigned long iter : thismap)
0034 {
0035 *fout << "dead channel: " << std::hex << iter << std::dec << std::endl;
0036 }
0037 }
0038 return 0;
0039 }