File indexing completed on 2025-08-06 08:18:28
0001
0002
0003 #ifndef PHCOSMICSEEDCOMBINER_H
0004 #define PHCOSMICSEEDCOMBINER_H
0005
0006 #include <fun4all/SubsysReco.h>
0007
0008 #include <string>
0009
0010 class ActsGeometry;
0011 class TrkrClusterContainer;
0012 class TrackSeedContainer;
0013 class PHCompositeNode;
0014 class TrackSeed;
0015
0016 class PHCosmicSeedCombiner : public SubsysReco
0017 {
0018 public:
0019 PHCosmicSeedCombiner(const std::string &name = "PHCosmicSeedCombiner");
0020 int Init(PHCompositeNode *topNode) override;
0021 int InitRun(PHCompositeNode *topNode) override;
0022 int process_event(PHCompositeNode *topNode) override;
0023 int End(PHCompositeNode *topNode) override;
0024
0025 void dphiCut(float dphi) { m_dphiCut = dphi; }
0026 void detaCut(float deta) { m_detaCut = deta; }
0027
0028 private:
0029 int getNodes(PHCompositeNode *topNode);
0030 void addKeys(TrackSeed *seedToAddTo, TrackSeed *seedToAdd);
0031
0032 ActsGeometry *m_tGeometry = nullptr;
0033 TrkrClusterContainer *m_clusterContainer = nullptr;
0034 TrackSeedContainer *m_seedMap = nullptr;
0035 TrackSeedContainer *m_tpcSeeds = nullptr;
0036 TrackSeedContainer *m_siliconSeeds = nullptr;
0037
0038 float m_dphiCut = 0.04;
0039 float m_detaCut = 0.02;
0040 };
0041
0042 #endif