Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4OHCalSubsystem.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4OHCalSubsystem.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4OHCAL_PHG4OHCALSUBSYSTEM_H
4 #define G4OHCAL_PHG4OHCALSUBSYSTEM_H
5 
7 
8 #include <string>
9 
10 class PHCompositeNode;
11 class PHG4Detector;
12 class PHG4DisplayAction;
13 class PHG4OHCalDetector;
14 class PHG4SteppingAction;
15 
17 {
18  public:
20  PHG4OHCalSubsystem(const std::string& name = "HCALOUT", const int layer = 0);
21 
23  ~PHG4OHCalSubsystem() override;
24 
29  int InitRunSubsystem(PHCompositeNode*) override;
30 
32 
36  int process_event(PHCompositeNode*) override;
37 
39  void Print(const std::string& what = "ALL") const override;
40 
42  PHG4Detector* GetDetector(void) const override;
44  PHG4DisplayAction* GetDisplayAction() const override { return m_DisplayAction; }
45 
46  void SetLightCorrection(const double inner_radius, const double inner_corr, const double outer_radius, const double outer_corr);
47 
48  // this method is used to check if it can be used as mothervolume
49  // Subsystems which can be mothervolume need to implement this
50  // and return true
51  bool CanBeMotherSubsystem() const override { return true; }
52 
53  private:
54  void SetDefaultParameters() override;
55 
57 
59 
61 
63 
65 
67 
70 };
71 
72 #endif // G4OHCAL_PHG4OHCALSUBSYSTEM_H