Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHCosmicTrackMerger.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHCosmicTrackMerger.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef PHCOSMICTRACKMERGER_H
4 #define PHCOSMICTRACKMERGER_H
5 
6 #include <fun4all/SubsysReco.h>
7 
9 
10 #include <TFile.h>
11 #include <TH1.h>
12 #include <TH2.h>
13 
14 #include <string>
15 #include <vector>
16 
17 class PHCompositeNode;
18 class TrackSeedContainer;
20 class TrackSeed;
21 class ActsGeometry;
22 
24 {
25  using KeyPosMap = std::pair<std::vector<TrkrDefs::cluskey>, std::vector<Acts::Vector3>>;
26 
27  public:
28  PHCosmicTrackMerger(const std::string &name = "PHCosmicTrackMerger");
29 
30  ~PHCosmicTrackMerger() override;
31 
32  int Init(PHCompositeNode *) override;
33  int InitRun(PHCompositeNode *topNode) override;
34  int process_event(PHCompositeNode *topNode) override;
35  int End(PHCompositeNode *) override;
36 
37  private:
38  void addKeys(TrackSeed *toAddTo, TrackSeed *toAdd);
40 
47 };
48 
49 #endif // PHCOSMICTRACKMERGER_H