Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHActsToSvtxTracks.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHActsToSvtxTracks.h
1 #ifndef TRACKRECO_PHACTSTOSVTXTRACKS_H
2 #define TRACKRECO_PHACTSTOSVTXTRACKS_H
3 
4 #include <fun4all/SubsysReco.h>
5 #include <trackbase/TrkrDefs.h>
6 
9 #include <Acts/Utilities/Definitions.hpp>
11 
13 
15 #include <ActsExamples/EventData/TrkrClusterSourceLink.hpp>
16 #include <ActsExamples/EventData/TrkrClusterMultiTrajectory.hpp>
17 
19 
20 #include <boost/bimap.hpp>
21 
22 #include <map>
23 #include <string>
24 #include <vector>
25 
26 class PHCompositeNode;
27 class SvtxTrackMap;
28 class SvtxTrack;
29 class SvtxVertexMap;
30 class MakeActsGeometry;
31 
32 using SourceLink = ActsExamples::TrkrClusterSourceLink;
33 using Trajectory = ActsExamples::TrkrClusterMultiTrajectory;
34 
36 {
37  public:
39  PHActsToSvtxTracks(const std::string &name = "PHActsToSvtxTracks");
40  ~PHActsToSvtxTracks() override {}
41 
43  int End(PHCompositeNode *topNode) override;
44  int Init(PHCompositeNode *topNode) override;
45  int InitRun(PHCompositeNode *topNode) override;
46  int process_event(PHCompositeNode *topNode) override;
47  int ResetEvent(PHCompositeNode *topNode) override;
48 
50  { m_svtxMapName = name;}
51 
52  private:
53 
55  int createNodes(PHCompositeNode *topNode);
56 
58  int getNodes(PHCompositeNode *topNode);
59 
60  void createSvtxTrack(const unsigned int trackKey, Trajectory traj);
61 
65  std::map<const unsigned int, Trajectory> *m_actsFitResults = nullptr;
66 
67  std::string m_svtxMapName = "SvtxTrackMap";
68 
69 };
70 
71 #endif