Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpInttDeadMap.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpInttDeadMap.cc
1 #include "DumpInttDeadMap.h"
2 
3 #include <phool/PHIODataNode.h>
4 
5 #include <g4intt/InttDeadMap.h>
6 
7 #include <map>
8 #include <ostream>
9 #include <set>
10 #include <string>
11 #include <utility>
12 
14 
16  : DumpObject(NodeName)
17 {
18  return;
19 }
20 
22 {
23  InttDeadMap *inttdeadmap = nullptr;
24  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
25  if (thisNode)
26  {
27  inttdeadmap = thisNode->getData();
28  }
29  if (inttdeadmap)
30  {
31  *fout << "size " << inttdeadmap->size() << std::endl;
32  const InttDeadMap::Map thismap = inttdeadmap->getDeadChannels();
33  for (unsigned long iter : thismap)
34  {
35  *fout << "dead channel: " << std::hex << iter << std::dec << std::endl;
36  }
37  }
38  return 0;
39 }