Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHTrackSetMerging.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHTrackSetMerging.h
1 
7 #ifndef TRACKRECO_PHTRACKSETMERGING_H
8 #define TRACKRECO_PHTRACKSETMERGING_H
9 
10 // PHENIX includes
11 #include <fun4all/SubsysReco.h>
12 
13 // STL includes
14 #include <string>
15 
16 // forward declarations
17 class PHCompositeNode;
18 
19 //class SvtxClusterMap;
21 class SvtxVertexMap;
22 class SvtxTrackMap;
23 
29 {
30  public:
31  PHTrackSetMerging(const std::string &name = "PHTrackSetMerging");
32  ~PHTrackSetMerging() override {}
33 
34  int Init(PHCompositeNode *topNode) override;
35  int InitRun(PHCompositeNode *topNode) override;
36  int process_event(PHCompositeNode *topNode) override;
37  int End(PHCompositeNode *topNode) override;
38  int Setup(PHCompositeNode *topNode);
39  void set_track_map_name_in1(const std::string &map_name) { _track_map_name_in1 = map_name; }
40  void set_track_map_name_in2(const std::string &map_name) { _track_map_name_in2 = map_name; }
41  void set_track_map_name_out(const std::string &map_name) { _track_map_name_out = map_name; }
42 
43  protected:
46  // virtual
47 
50  virtual int Process(PHCompositeNode *topNode) = 0;
51 
53  // virtual int End() = 0;
54 
55  //SvtxClusterMap *_cluster_map;
61 
62  std::string _track_map_name_in1 = "SvtxTrackMap1";
63  std::string _track_map_name_in2 = "SvtxTrackMap2";
64  std::string _track_map_name_out = "SvtxTrackMapMerged";
65 
66  private:
68  int CreateNodes(PHCompositeNode *topNode);
69 
71  int GetNodes(PHCompositeNode *topNode);
72 };
73 
74 #endif