Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4MvtxSubsystem.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4MvtxSubsystem.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4MVTX_PHG4MVTXSUBSYSTEM_H
4 #define G4MVTX_PHG4MVTXSUBSYSTEM_H
5 
7 
8 #include <cmath> // for asin
9 #include <string> // for string
10 
11 class PHCompositeNode;
12 class PHG4Detector;
13 class PHG4DisplayAction;
14 class PHG4MvtxDetector;
15 class PHG4SteppingAction;
16 
18 {
19  public:
21  PHG4MvtxSubsystem(const std::string& name = "PHG4MvtxSubsystem", const int _n_layers = 3);
22 
24  ~PHG4MvtxSubsystem() override;
25 
27 
33  int InitRunSubsystem(PHCompositeNode*) override;
34 
36 
40  int process_event(PHCompositeNode*) override;
41 
43  PHG4Detector* GetDetector(void) const override;
44  PHG4SteppingAction* GetSteppingAction(void) const override { return m_SteppingAction; }
45 
46  PHG4DisplayAction* GetDisplayAction() const override { return m_DisplayAction; }
47 
48  private:
49  void SetDefaultParameters() override;
50  static double radii2Turbo(double rMin, double rMid, double rMax, double sensW)
51  {
52  // compute turbo angle from radii and sensor width
53  return std::asin((rMax * rMax - rMin * rMin) / (2 * rMid * sensW));
54  }
56 
58 
60 
62 
64 
66 
67  // These are passed on to the detector class
68  unsigned int n_layers{0};
69 
73 };
74 
75 #endif