Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHTrackSelector.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHTrackSelector.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 
10 #ifndef PHTRACKSELECTOR_H
11 #define PHTRACKSELECTOR_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;
24 
26 {
27  public:
28 
29  PHTrackSelector(const std::string &name = "PHTrackSelector");
30 
31  ~PHTrackSelector() override;
32 
33  int InitRun(PHCompositeNode *topNode) override;
34  int process_event(PHCompositeNode *topNode) override;
35  int End(PHCompositeNode *topNode) override;
36 
37  void SetMinTPCClusters(int nhits) {min_tpc_clusters = nhits;}
38  void SetMinINTTHits(int nhits) {min_intt_hits = nhits;}
39  void SetMinMVTXHits(int nhits) {min_mvtx_hits = nhits;}
40  void SetChi2NDFHits(float max) {max_chi2_ndf = max;}
41  void SetIteration(int iter) {_n_iter = iter;}
42 
43  void SetTrackMapName(const std::string &map_name) { _track_map_name = map_name; }
44 
45  private:
46 
47  int GetNodes(PHCompositeNode* topNode);
48 
51  SvtxTrack *_track{nullptr};
53 
54  int _n_iter = 1;
55  unsigned int min_tpc_clusters = 35;
56  unsigned int min_mvtx_hits = 2;
57  unsigned int min_intt_hits = 1;
58  float max_chi2_ndf = 30;
59 
60 };
61 
62 #endif // PHTRACKSELECTOR_H