Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackSeedTrackMapConverter.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackSeedTrackMapConverter.h
1 
2 #ifndef TRACKSEEDTRACKMAPCONVERTER_H
3 #define TRACKSEEDTRACKMAPCONVERTER_H
4 
5 #include <fun4all/SubsysReco.h>
6 
7 #include <memory>
8 #include <string>
9 
10 class PHCompositeNode;
11 class SvtxTrackMap;
12 class SvtxTrack_v4;
13 class TrackSeed;
14 class TrackSeedContainer;
15 class ActsGeometry;
17 
19 {
20  public:
21  TrackSeedTrackMapConverter(const std::string &name = "TrackSeedTrackMapConverter");
22 
24 
25  int InitRun(PHCompositeNode *topNode) override;
26  int process_event(PHCompositeNode *topNode) override;
27  int End(PHCompositeNode *topNode) override;
28 
32  void cosmics() { m_cosmics = true; }
33 
34  private:
35  int getNodes(PHCompositeNode *topNode);
36 
37  void addKeys(std::unique_ptr<SvtxTrack_v4> &track, TrackSeed *seed);
38  void addKeys(TrackSeed *seedToAddTo, TrackSeed *seedToAdd);
39  std::pair<int, float> getCosmicCharge(TrackSeed *seed, float vertexradius) const;
40 
41  std::string m_trackMapName = "SvtxTrackMap";
42  std::string m_trackSeedName = "TpcTrackSeedContainer";
43 
44  bool m_cosmics = false;
52 };
53 
54 #endif // TRACKSEEDTRACKMAPCONVERTER_H