EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHTrackPropagating.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHTrackPropagating.cc
1 #include "PHTrackPropagating.h"
2 
3 #include "AssocInfoContainer.h"
4 
7 
9 #include <trackbase/TrkrHitSet.h>
11 #include <trackbase/TrkrDefs.h>
12 
14 #include <fun4all/SubsysReco.h> // for SubsysReco
15 
16 #include <phool/getClass.h>
17 #include <phool/phool.h> // for PHWHERE
18 
19 #include <iostream> // for operator<<, basic_ostream
20 
21 using namespace std;
22 
24  : SubsysReco(name)
25  , _cluster_map(nullptr)
26  , _hitsets(nullptr)
27  , _vertex_map(nullptr)
28  , _track_map(nullptr)
29  , _assoc_container(nullptr)
30  , _track_map_name("SvtxTrackMap")
31 {
32 }
33 
35 {
36  return Setup(topNode);
37 }
38 
40 {
41  return Process();
42 }
43 
45 {
46  End();
48 }
49 
51 {
52  int ret = GetNodes(topNode);
53  if (ret != Fun4AllReturnCodes::EVENT_OK) return ret;
54 
56 }
57 
59 {
60  //---------------------------------
61  // Get Objects off of the Node Tree
62  //---------------------------------
63  std::cout << "" << _use_truth_clusters << std::endl;
65  _cluster_map = findNode::getClass<TrkrClusterContainer>(topNode, "TRKR_CLUSTER_TRUTH");
66  else
67  _cluster_map = findNode::getClass<TrkrClusterContainer>(topNode, "TRKR_CLUSTER");
68 
69  if (!_cluster_map)
70  {
71  cerr << PHWHERE << " ERROR: Can't find node TRKR_CLUSTER" << endl;
73  }
74 
75  _hitsets = findNode::getClass<TrkrHitSetContainer>(topNode, "TRKR_HITSET");
76  if(!_hitsets)
77  {
78  cerr << PHWHERE << "No hitset container on node tree. Bailing."
79  << endl;
81  }
82 
83  _vertex_map = findNode::getClass<SvtxVertexMap>(topNode, "SvtxVertexMap");
84  if (!_vertex_map)
85  {
86  cerr << PHWHERE << " ERROR: Can't find SvtxVertexMap." << endl;
88  }
89 
90  _track_map = findNode::getClass<SvtxTrackMap>(topNode, _track_map_name);
91  if (!_track_map)
92  {
93  cerr << PHWHERE << " ERROR: Can't find SvtxTrackMap: " << _track_map_name << endl;
95  }
96 
97  _assoc_container = findNode::getClass<AssocInfoContainer>(topNode, "AssocInfoContainer");
98  if (!_assoc_container)
99  {
100  cerr << PHWHERE << " ERROR: Can't find AssocInfoContainer." << endl;
102  }
103 
105 }