Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHActsGSF.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHActsGSF.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef PHACTSGSF_H
4 #define PHACTSGSF_H
5 
6 #include <fun4all/SubsysReco.h>
7 
11 
13 #include <trackbase/Calibrator.h>
15 
19 
24 
26 
28 
29 #include <string>
30 
31 class PHCompositeNode;
32 class ActsGeometry;
34 class SvtxTrackMap;
35 class SvtxVertexMap;
36 class SvtxTrack;
37 
42 using SurfacePtrVec = std::vector<const Acts::Surface*>;
43 using SourceLinkVec = std::vector<Acts::SourceLink>;
44 
45 class PHActsGSF : public SubsysReco
46 {
47  public:
48  PHActsGSF(const std::string& name = "PHActsGSF");
49 
50  ~PHActsGSF() override;
51 
52  int InitRun(PHCompositeNode* topNode) override;
53  int process_event(PHCompositeNode* topNode) override;
54  int End(PHCompositeNode* topNode) override;
55 
56  void set_pp_mode(bool mode) {m_pp_mode = mode;}
57 
58  private:
59  int getNodes(PHCompositeNode* topNode);
60  std::shared_ptr<Acts::PerigeeSurface> makePerigee(SvtxTrack* track) const;
62  SvtxTrack* track,
63  std::shared_ptr<Acts::PerigeeSurface> psurf) const;
64  // SourceLinkVec getSourceLinks(TrackSeed* track,
65  // ActsTrackFittingAlgorithm::MeasurementContainer& measurements,
66  // const short int& crossing);
68  const std::vector<Acts::SourceLink>& sourceLinks,
71  const CalibratorAdapter& calibrator,
73 
74  void updateTrack(FitResult& result, SvtxTrack* track,
76  void updateSvtxTrack(std::vector<Acts::MultiTrajectoryTraits::IndexType>& tips,
79  SvtxTrack* track);
85 
86  alignmentTransformationContainer* m_alignmentTransformationMap = nullptr; // added for testing purposes
88  std::set< Acts::GeometryIdentifier> m_transient_id_set;
90 
95 
96  std::string m_trackMapName = "SvtxTrackMap";
97  unsigned int m_pHypothesis = 11;
98 
99  bool m_pp_mode = false;
100 
102 
104 };
105 
106 #endif // PHACTSGSF_H