ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpRawTowerGeomContainer.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpRawTowerGeomContainer.cc
2 
3 #include <phool/PHIODataNode.h>
4 
5 #include <calobase/RawTowerGeom.h>
6 #include <calobase/RawTowerGeomContainer.h>
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  RawTowerGeomContainer *rawtowergeom = nullptr;
26  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
27  if (thisNode)
28  {
29  rawtowergeom = thisNode->getData();
30  }
31  if (rawtowergeom)
32  {
33  *fout << "Calorimeter ID: " << rawtowergeom->get_calorimeter_id() << endl;
34  *fout << "size: " << rawtowergeom->size() << endl;
35  rawtowergeom->identify(*fout);
36  RawTowerGeomContainer::ConstRange all_towers = rawtowergeom->get_tower_geometries();
37  for (RawTowerGeomContainer::ConstIterator it = all_towers.first;
38  it != all_towers.second; ++it)
39  {
40  it->second->identify(*fout);
41  }
42  }
43  return 0;
44 }