Analysis Software
Documentation for sPHENIX simulation 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>
16 
17 #include <string>
18 #include <vector>
19 #include <map>
20 
21 class PHCompositeNode;
22 class TrackSeedContainer;
23 class TrkrCluster;
24 class TrackSeed;
26 
28 {
29  public:
31  PHGhostRejection(unsigned int verbosity);
32 
34 
35  void rejectGhostTracks(std::vector<float>& trackChi2);
36  void verbosity(int verb) { m_verbosity = verb; }
38  void positionMap(std::map<TrkrDefs::cluskey, Acts::Vector3>& map) { m_positions = map; }
39 
40  private:
41 
42  bool checkClusterSharing(TrackSeed *tr1, unsigned int trid1,
43  TrackSeed *tr2, unsigned int trid2);
44 
45  double _phi_cut = 0.01;
46  double _eta_cut = 0.004;
47  double _x_cut = 0.3;
48  double _y_cut = 0.3;
49  double _z_cut = 0.4;
50  int _n_iteration = 0;
51  unsigned int m_verbosity = 0;
52 
54 
55  std::map<TrkrDefs::cluskey, Acts::Vector3> m_positions;
56 };
57 
58 #endif // PHGHOSTREJECTION_H