EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4Example03Subsystem.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4Example03Subsystem.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4EXAMPLE03SUBSYSTEM_H
4
#define G4EXAMPLE03SUBSYSTEM_H
5
6
#include <
g4detectors/PHG4DetectorSubsystem.h
>
7
8
#include <array>
// for array
9
#include <string>
10
11
class
G4Example03Detector
;
12
class
PHCompositeNode
;
13
class
PHG4Detector
;
14
class
PHG4DisplayAction
;
15
class
PHG4SteppingAction
;
16
27
class
G4Example03Subsystem
:
public
PHG4DetectorSubsystem
28
{
29
public
:
31
G4Example03Subsystem
(
const
std::string&
name
=
"Example03"
);
32
34
virtual
~G4Example03Subsystem
();
35
41
virtual
int
InitRunSubsystem
(
PHCompositeNode
*);
42
44
48
virtual
int
process_event
(
PHCompositeNode
*);
49
51
virtual
PHG4Detector
*
GetDetector
()
const
;
52
53
virtual
PHG4SteppingAction
*
GetSteppingAction
()
const
{
return
m_SteppingAction
; }
55
virtual
void
Print
(
const
std::string& what =
"ALL"
)
const
;
56
57
PHG4DisplayAction
*
GetDisplayAction
()
const
{
return
m_DisplayAction
; }
58
59
void
set_color
(
const
double
red
,
const
double
green
,
const
double
blue
,
const
double
alpha
= 1.)
60
{
61
m_ColorArray
[0] =
red
;
62
m_ColorArray
[1] =
green
;
63
m_ColorArray
[2] =
blue
;
64
m_ColorArray
[3] =
alpha
;
65
}
66
67
private
:
68
// \brief Set default parameter values
69
void
SetDefaultParameters
();
70
72
73
G4Example03Detector
*
m_Detector
;
74
75
PHG4SteppingAction
*
m_SteppingAction
;
76
78
79
80
81
PHG4DisplayAction
*
m_DisplayAction
;
83
std::array<double, 4>
m_ColorArray
;
84
};
85
86
#endif // G4EXAMPLE03SUBSYSTEM_H
g4exampledetector
blob
master
color
source
G4Example03Subsystem.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:55
using
1.8.2 with
EIC GitHub integration