ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHGhostRejection.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHGhostRejection.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 
10 #ifndef PHGHOSTREJECTION_H
11 #define PHGHOSTREJECTION_H
12 
13 #include <fun4all/SubsysReco.h>
14 
15 #include <string>
16 #include <vector>
17 #include <map>
18 
19 class PHCompositeNode;
20 class SvtxTrack;
21 class SvtxTrackMap;
22 class TrkrCluster;
23 class TpcSeedTrackMap;
24 
26 {
27  public:
28 
29  PHGhostRejection(const std::string &name = "PHGhostRejection");
30 
31  ~PHGhostRejection() override;
32 
33  int InitRun(PHCompositeNode *topNode) override;
34  int process_event(PHCompositeNode *topNode) override;
35  int End(PHCompositeNode *topNode) override;
36  void set_track_map_name(const std::string &map_name) { _track_map_name = map_name; }
37  void SetIteration(int iter){_n_iteration = iter;}
38 
39  private:
40 
41  int GetNodes(PHCompositeNode* topNode);
42  void findGhostTracks();
43  bool checkClusterSharing(SvtxTrack *tr1, SvtxTrack *tr2);
44 
46 
47  double _phi_cut = 0.01;
48  double _eta_cut = 0.004;
49  double _x_cut = 0.3;
50  double _y_cut = 0.3;
51  double _z_cut = 0.4;
52  int _n_iteration = 0;
53  std::string _track_map_name = "SvtxTrackMap";
54 
55 };
56 
57 #endif // PHGHOSTREJECTION_H