EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PH3DVertexing.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PH3DVertexing.cc
1 #include "PH3DVertexing.h"
2 
3 #include "AssocInfoContainer.h"
4 
7 
8 //#include <trackbase/TrkrClusterContainer.h>
9 
11 #include <fun4all/SubsysReco.h> // for SubsysReco
12 
13 #include <phool/getClass.h>
14 #include <phool/phool.h> // for PHWHERE
15 
16 #include <iostream> // for operator<<, basic_ostream
17 
18 using namespace std;
19 
21  : SubsysReco(name)
22  // , _cluster_map(nullptr)
23  , _vertex_map(nullptr)
24  , _track_map(nullptr)
25  , _assoc_container(nullptr)
26 {
27 }
28 
30 {
31  return Setup(topNode);
32 }
33 
35 {
36  return Process();
37 }
38 
40 {
41  int ret = GetNodes(topNode);
42  if (ret != Fun4AllReturnCodes::EVENT_OK) return ret;
43 
45 }
46 
48 {
49  //---------------------------------
50  // Get Objects off of the Node Tree
51  //---------------------------------
52 
53  // _cluster_map = findNode::getClass<SvtxClusterMap>(topNode, "SvtxClusterMap");
54  /*_cluster_map = findNode::getClass<TrkrClusterContainer>(topNode, "TRKR_CLUSTERS");
55  if (!_cluster_map)
56  {
57  cerr << PHWHERE << " ERROR: Can't find node TRKR_CLUSTERS" << endl;
58  return Fun4AllReturnCodes::ABORTEVENT;
59  }
60  */
61  _vertex_map = findNode::getClass<SvtxVertexMap>(topNode, "SvtxVertexMap");
62  if (!_vertex_map)
63  {
64  cerr << PHWHERE << " ERROR: Can't find SvtxVertexMap." << endl;
66  }
67 
68  _track_map = findNode::getClass<SvtxTrackMap>(topNode, "SvtxTrackMap");
69  if (!_track_map)
70  {
71  cerr << PHWHERE << " ERROR: Can't find SvtxTrackMap." << endl;
73  }
74 
75  _assoc_container = findNode::getClass<AssocInfoContainer>(topNode, "AssocInfoContainer");
76  if (!_assoc_container)
77  {
78  cerr << PHWHERE << " ERROR: Can't find AssocInfoContainer." << endl;
80  }
81 
83 }