Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHTrackCleaner.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHTrackCleaner.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 
10 #ifndef PHTRACKCLEANER_H
11 #define PHTRACKCLEANER_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 TrackSeedContainer;
24 
25 class PHTrackCleaner : public SubsysReco
26 {
27  public:
28 
29  PHTrackCleaner(const std::string &name = "PHTrackCleaner");
30 
31  ~PHTrackCleaner() override;
32 
33  int InitRun(PHCompositeNode *topNode) override;
34  int process_event(PHCompositeNode *topNode) override;
35  int End(PHCompositeNode *topNode) override;
36 
37  void set_pp_mode(const bool flag){_pp_mode = flag ;}
38 
39  private:
40 
41  int GetNodes(PHCompositeNode* topNode);
42  void findGhostTracks();
43 
45 SvtxTrack *_track{nullptr};
47 
48  double min_ndf = 25;
49  bool _pp_mode = false;
50 
51 };
52 
53 #endif // PHTRACKCLEANER_H