Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHTpcClusterMover.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHTpcClusterMover.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 
10 #ifndef PHTPCCLUSTERMOVER_H
11 #define PHTPCCLUSTERMOVER_H
12 
13 #include <fun4all/SubsysReco.h>
14 
15 #include <string>
16 #include <vector>
17 
18 #include <trackbase/ActsGeometry.h>
22 
23 class PHCompositeNode;
25 class SvtxTrack;
26 class SvtxTrackMap;
27 class TrkrCluster;
29 
31 {
32  public:
33 
34  PHTpcClusterMover(const std::string &name = "PHTpcClusterMover");
35 
36  int InitRun(PHCompositeNode *topNode) override;
37  int process_event(PHCompositeNode *topNode) override;
38  int End(PHCompositeNode *topNode) override;
39 
40 
41  private:
42 
43  int GetNodes(PHCompositeNode* topNode);
44  int get_circle_circle_intersection(double target_radius, double R, double X0, double Y0, double xref, double yref, double &x, double &y);
45 
48 
51 
52  double _z_start=0.0;
53  double _y_start=0.0;
54  double _x_start=0.0;
55 
56  double _z_proj=0.0;
57  double _y_proj=0.0;
58  double _x_proj=0.0;
59 
60  // range of TPC layers to use in projection to micromegas
61 
63 
65  SvtxTrack *_track{nullptr};
70 
71  double layer_radius[48] = {0};
72  double inner_tpc_min_radius = 30.0;
73  double mid_tpc_min_radius = 40.0;
74  double outer_tpc_min_radius = 60.0;
75  double outer_tpc_max_radius = 77.0;
76 
77  double inner_tpc_spacing = 0.0;
78  double mid_tpc_spacing = 0.0;
79  double outer_tpc_spacing = 0.0;
80 
81 };
82 
83 #endif // PHTPCCLUSTERMOVER_H