Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4SpacalSubsystem.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4SpacalSubsystem.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
11
#ifndef G4DETECTORS_PHG4SPACALSUBSYSTEM_H
12
#define G4DETECTORS_PHG4SPACALSUBSYSTEM_H
13
14
#include "
PHG4DetectorSubsystem.h
"
15
#include "
PHG4SpacalSteppingAction.h
"
16
17
#include <string>
// for string
18
19
class
PHCompositeNode
;
20
class
PHG4Detector
;
21
class
PHG4DisplayAction
;
22
class
PHG4SpacalDetector
;
23
class
PHG4SpacalSteppingAction
;
24
25
class
PHG4SpacalSubsystem
:
public
PHG4DetectorSubsystem
26
{
27
public
:
29
PHG4SpacalSubsystem
(
const
std::string
&
name
=
"PHG4SpacalSubsystem"
,
30
const
int
layer
= 0);
31
33
~PHG4SpacalSubsystem
()
override
;
34
36
42
int
InitRunSubsystem
(
PHCompositeNode
*)
override
;
43
45
49
int
process_event
(
PHCompositeNode
*)
override
;
50
52
PHG4Detector
*
GetDetector
()
const override
;
53
PHG4SteppingAction
*
GetSteppingAction
()
const override
{
return
steppingAction_
; }
54
55
PHG4DisplayAction
*
GetDisplayAction
()
const override
{
return
m_DisplayAction
; }
56
57
void
58
Print
(
const
std::string
&what =
"ALL"
)
const override
;
59
60
void
CosmicSetup
(
const
int
i
) {
m_CosmicSetupFlag
=
i
; }
61
int
CosmicSetup
()
const
{
return
m_CosmicSetupFlag
; }
62
63
private
:
64
void
SetDefaultParameters
()
override
;
65
// SpacalGeom_t _geom;
66
68
69
PHG4SpacalDetector
*
detector_
=
nullptr
;
70
72
73
PHG4SpacalSteppingAction
*
steppingAction_
=
nullptr
;
74
76
77
PHG4DisplayAction
*
m_DisplayAction
=
nullptr
;
78
79
int
m_CosmicSetupFlag
= 0;
80
81
std::string
m_HitNodeName
;
82
std::string
m_AbsorberNodeName
;
83
};
84
85
#endif
coresoftware
blob
master
simulation
g4simulation
g4detectors
PHG4SpacalSubsystem.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:13
using
1.8.2 with
sPHENIX GitHub integration