EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4TTLSubsystem.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4TTLSubsystem.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4TTLSUBSYSTEM_H
4 #define G4DETECTORS_PHG4TTLSUBSYSTEM_H
5 
6 // #include "PHG4TTLDetector.h"
7 
8 #include <g4detectors/PHG4DetectorSubsystem.h> // for PHG4DetectorSubsystem
9 
10 #include <string> // for string
11 
12 class PHCompositeNode;
13 class PHG4Detector;
14 class PHG4DisplayAction;
15 class PHG4TTLDetector;
16 class PHG4SteppingAction;
17 
19 {
20  public:
22  PHG4TTLSubsystem(const std::string& name = "Sector");
23 
25  ~PHG4TTLSubsystem() override;
26 
28 
33  int InitRunSubsystem(PHCompositeNode*) override;
34 
36 
40  int process_event(PHCompositeNode*) override;
41 
44  GetDetector(void) const override;
45  PHG4SteppingAction* GetSteppingAction(void) const override { return m_SteppingAction; }
46 
47  PHG4DisplayAction* GetDisplayAction() const override { return m_DisplayAction; }
48 
49  void
50  SuperDetector(const std::string& name)
51  {
53  }
54 
55  // //! geometry manager PHG4TTL::Sector_Geometry
56  // PHG4TTL::Sector_Geometry&
57  // get_geometry()
58  // {
59  // return geom;
60  // }
61 
62  // //! geometry manager PHG4TTL::Sector_Geometry
63  // void
64  // set_geometry(const PHG4TTL::Sector_Geometry& g)
65  // {
66  // geom = g;
67  // }
68 
71  void SetDetailed(bool b) { showdetailed = b; }
72 
73  private:
74  void SetDefaultParameters() override;
76 
78 
80 
82 
84 
86 
87  std::string superdetector;
88  bool showdetailed = false;
89 
90  // PHG4TTL::Sector_Geometry geom;
91 };
92 
93 #endif