Analysis Software
Documentation for sPHENIX simulation 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 
5 
7 #include <trackbase/TrkrHitSet.h>
8 #include <trackbase/TrkrDefs.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 {}
23 
25 {
26  return Setup(topNode);
27 }
28 
30 {
31  return Process();
32 }
33 
35 {
36  End();
38 }
39 
41 {
42  int ret = GetNodes(topNode);
43  if (ret != Fun4AllReturnCodes::EVENT_OK) return ret;
44 
46 }
47 
49 {
50  //---------------------------------
51  // Get Objects off of the Node Tree
52  //---------------------------------
53  std::cout << "" << _use_truth_clusters << std::endl;
55  _cluster_map = findNode::getClass<TrkrClusterContainer>(topNode, "TRKR_CLUSTER_TRUTH");
56  else
57  _cluster_map = findNode::getClass<TrkrClusterContainer>(topNode, "TRKR_CLUSTER");
58 
59  if (!_cluster_map)
60  {
61  cerr << PHWHERE << " ERROR: Can't find node TRKR_CLUSTER" << endl;
63  }
64 
65  _vertex_map = findNode::getClass<SvtxVertexMap>(topNode, "SvtxVertexMap");
66  if (!_vertex_map)
67  {
68  cerr << PHWHERE << " ERROR: Can't find SvtxVertexMap." << endl;
70  }
71 
72  _track_map = findNode::getClass<SvtxTrackMap>(topNode, _track_map_name);
73  if (!_track_map)
74  {
75  cerr << PHWHERE << " ERROR: Can't find SvtxTrackMap: " << _track_map_name << endl;
77  }
78 
80 }