EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpPHG4ScintillatorSlatContainer.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpPHG4ScintillatorSlatContainer.cc
2 
3 #include <phool/PHIODataNode.h>
4 
7 
8 #include <map>
9 #include <ostream>
10 #include <string>
11 #include <utility>
12 
13 using namespace std;
14 
16 
18  : DumpObject(NodeName)
19 {
20  return;
21 }
22 
24 {
25  PHG4ScintillatorSlatContainer *scinticontainer = nullptr;
26  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
27  if (thisNode)
28  {
29  scinticontainer = thisNode->getData();
30  }
31  if (scinticontainer)
32  {
35  *fout << "size: " << scinticontainer->size() << endl;
36  for (hiter = begin_end.first; hiter != begin_end.second; ++hiter)
37  {
38  *fout << "get_key(): 0x" << hex << hiter->second->get_key() << dec << endl;
39  *fout << "get_column(): " << hiter->second->get_column() << endl;
40  *fout << "get_row(): " << hiter->second->get_row() << endl;
41  *fout << "get_edep(): " << hiter->second->get_edep() << endl;
42  *fout << "get_eion(): " << hiter->second->get_eion() << endl;
43  *fout << "get_light_yield(): " << hiter->second->get_light_yield() << endl;
44  }
45  }
46  return 0;
47 }