forked from sPHENIX-Collaboration/coresoftware
/
PHG4MicromegasSubsystem.h
71 lines (55 loc) · 1.83 KB
/
PHG4MicromegasSubsystem.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Tell emacs that this is a C++ source
// -*- C++ -*-.
#ifndef G4MICROMEGAS_PHG4MICROMEGASSUBSYSTEM_H
#define G4MICROMEGAS_PHG4MICROMEGASSUBSYSTEM_H
/*!
* \file PHG4MicromegasSubsystem.h
* \author Hugo Pereira Da Costa <hugo.pereira-da-costa@cea.fr>
*/
#include <g4detectors/PHG4DetectorSubsystem.h>
#include <string> // for string
class PHCompositeNode;
class PHG4Detector;
class PHG4MicromegasDetector;
class PHG4MicromegasSteppingAction;
class PHG4SteppingAction;
/*!
* \brief Detector Subsystem module
* The detector is constructed and registered via PHG4MicromegasDetector
* \see PHG4MicromegasDetector
* \see PHG4MicromegasSubsystem
*/
class PHG4MicromegasSubsystem : public PHG4DetectorSubsystem
{
public:
//! constructor
PHG4MicromegasSubsystem(const std::string& name = "MICROMEGAS", int layer = 0);
/*!
creates relevant hit nodes that will be populated by the stepping action and stored in the output DST
*/
int InitRunSubsystem(PHCompositeNode*) override;
//! event processing
/*!
get all relevant nodes from top nodes (namely hit list)
and pass that to the stepping action
*/
int process_event(PHCompositeNode*) override;
//!@name accessors (reimplemented)
//@{
PHG4Detector* GetDetector() const override;
PHG4SteppingAction* GetSteppingAction() const override;
//@}
//! Print info (from SubsysReco)
void Print(const std::string& what = "ALL") const override;
protected:
// \brief Set default parameter values
void SetDefaultParameters() override;
private:
//! detector construction
/*! derives from PHG4Detector */
PHG4MicromegasDetector *m_Detector = nullptr;
//! particle tracking "stepping" action
/*! derives from PHG4SteppingActions */
PHG4MicromegasSteppingAction *m_SteppingAction = nullptr;
};
#endif // MICROMEGASSUBSYSTEM_H