File indexing completed on 2025-08-05 08:17:41
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef G4DETECTORS_PHG4BBCSUBSYSTEM_H
0014 #define G4DETECTORS_PHG4BBCSUBSYSTEM_H
0015
0016 #include "PHG4DetectorSubsystem.h"
0017
0018 #include <string>
0019
0020 class PHCompositeNode;
0021 class PHG4Detector;
0022 class PHG4DisplayAction;
0023 class PHG4BbcDetector;
0024 class PHG4SteppingAction;
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037 class PHG4BbcSubsystem : public PHG4DetectorSubsystem
0038 {
0039 public:
0040
0041 PHG4BbcSubsystem(const std::string& name = "BBC");
0042
0043
0044 ~PHG4BbcSubsystem(void) override;
0045
0046
0047
0048
0049 int InitRunSubsystem(PHCompositeNode*) override;
0050
0051
0052
0053
0054
0055
0056 int process_event(PHCompositeNode*) override;
0057
0058
0059 PHG4Detector* GetDetector() const override;
0060 PHG4SteppingAction* GetSteppingAction(void) const override { return m_SteppingAction; };
0061 PHG4DisplayAction* GetDisplayAction() const override { return m_DisplayAction; }
0062
0063
0064 void Print(const std::string& what = "ALL") const override;
0065
0066 protected:
0067
0068 void SetDefaultParameters() override;
0069
0070
0071
0072 PHG4BbcDetector* m_Detector = nullptr;
0073
0074
0075
0076 PHG4SteppingAction* m_SteppingAction = nullptr;
0077
0078
0079
0080 PHG4DisplayAction* m_DisplayAction = nullptr;
0081
0082 std::string m_HitNodeName;
0083 std::string m_SupportNodeName;
0084 };
0085
0086 #endif