Analysis Software
Documentation for sPHENIX simulation 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 
5 
6 //#include <trackbase/TrkrClusterContainer.h>
7 
9 #include <fun4all/SubsysReco.h> // for SubsysReco
10 
11 #include <phool/getClass.h>
12 #include <phool/phool.h> // for PHWHERE
13 
14 #include <iostream> // for operator<<, basic_ostream
15 
16 using namespace std;
17 
19  : SubsysReco(name)
20  // , _cluster_map(nullptr)
21  , _vertex_map(nullptr)
22  , _track_map(nullptr)
23 {
24 }
25 
27 {
28  return Setup(topNode);
29 }
30 
32 {
33  return Process();
34 }
35 
37 {
38  int ret = GetNodes(topNode);
39  if (ret != Fun4AllReturnCodes::EVENT_OK) return ret;
40 
42 }
43 
45 {
46  //---------------------------------
47  // Get Objects off of the Node Tree
48  //---------------------------------
49 
50  // _cluster_map = findNode::getClass<SvtxClusterMap>(topNode, "SvtxClusterMap");
51  /*_cluster_map = findNode::getClass<TrkrClusterContainer>(topNode, "TRKR_CLUSTERS");
52  if (!_cluster_map)
53  {
54  cerr << PHWHERE << " ERROR: Can't find node TRKR_CLUSTERS" << endl;
55  return Fun4AllReturnCodes::ABORTEVENT;
56  }
57  */
58  _vertex_map = findNode::getClass<SvtxVertexMap>(topNode, "SvtxVertexMap");
59  if (!_vertex_map)
60  {
61  cerr << PHWHERE << " ERROR: Can't find SvtxVertexMap." << endl;
63  }
64 
65  _track_map = findNode::getClass<SvtxTrackMap>(topNode, "SvtxTrackMap");
66  if (!_track_map)
67  {
68  cerr << PHWHERE << " ERROR: Can't find SvtxTrackMap." << endl;
70  }
71 
73 }