forked from sPHENIX-Collaboration/coresoftware
/
PHG4EPDSubsystem.h
56 lines (42 loc) · 1.38 KB
/
PHG4EPDSubsystem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Tell emacs that this is a C++ source
// -*- C++ -*-.
/* vim: set sw=2 ft=cpp: */
#ifndef G4EPD_PHG4EPDSUBSYSTEM_H
#define G4EPD_PHG4EPDSUBSYSTEM_H
#include <g4detectors/PHG4DetectorSubsystem.h>
#include <string>
class PHCompositeNode;
class PHG4Detector;
class PHG4DisplayAction;
class PHG4EPDDetector;
class PHG4SteppingAction;
class PHG4EPDSubsystem : public PHG4DetectorSubsystem
{
public:
PHG4EPDSubsystem(std::string const& name);
~PHG4EPDSubsystem() override;
/**
Creates relevant hit nodes that will be populated by the stepping action and stored in the output DST
*/
int InitRunSubsystem(PHCompositeNode* node) override;
/** Event processing
*/
int process_event(PHCompositeNode*) override;
PHG4Detector* GetDetector() const override;
PHG4SteppingAction* GetSteppingAction() const override { return m_SteppingAction; };
PHG4DisplayAction* GetDisplayAction() const override { return m_DisplayAction; }
private:
void SetDefaultParameters() override;
/** Pointer to the Geant4 implementation of the detector
*/
PHG4EPDDetector* m_Detector = nullptr;
/** Stepping action
*/
PHG4SteppingAction* m_SteppingAction = nullptr;
//! display attribute setting
/*! derives from PHG4DisplayAction */
PHG4DisplayAction* m_DisplayAction = nullptr;
std::string m_HitNodeName;
std::string m_SupportNodeName;
};
#endif /* G4EPD_PHG4EPDSUBSYSTEM_H */