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
PHG4OHCalSubsystem.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4OHCalSubsystem.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4OHCAL_PHG4OHCALSUBSYSTEM_H
4
#define G4OHCAL_PHG4OHCALSUBSYSTEM_H
5
6
#include <
g4detectors/PHG4DetectorSubsystem.h
>
7
8
#include <string>
9
10
class
PHCompositeNode
;
11
class
PHG4Detector
;
12
class
PHG4DisplayAction
;
13
class
PHG4OHCalDetector
;
14
class
PHG4SteppingAction
;
15
16
class
PHG4OHCalSubsystem
:
public
PHG4DetectorSubsystem
17
{
18
public
:
20
PHG4OHCalSubsystem
(
const
std::string
&
name
=
"HCALOUT"
,
const
int
layer
= 0);
21
23
~PHG4OHCalSubsystem
()
override
;
24
29
int
InitRunSubsystem
(
PHCompositeNode
*)
override
;
30
32
36
int
process_event
(
PHCompositeNode
*)
override
;
37
39
void
Print
(
const
std::string
& what =
"ALL"
)
const override
;
40
42
PHG4Detector
*
GetDetector
(
void
)
const override
;
43
PHG4SteppingAction
*
GetSteppingAction
()
const override
{
return
m_SteppingAction
; }
44
PHG4DisplayAction
*
GetDisplayAction
()
const override
{
return
m_DisplayAction
; }
45
46
void
SetLightCorrection
(
const
double
inner_radius
,
const
double
inner_corr,
const
double
outer_radius
,
const
double
outer_corr);
47
48
// this method is used to check if it can be used as mothervolume
49
// Subsystems which can be mothervolume need to implement this
50
// and return true
51
bool
CanBeMotherSubsystem
()
const override
{
return
true
; }
52
53
private
:
54
void
SetDefaultParameters
()
override
;
55
57
58
PHG4OHCalDetector
*
m_Detector
=
nullptr
;
59
61
62
PHG4SteppingAction
*
m_SteppingAction
=
nullptr
;
63
65
66
PHG4DisplayAction
*
m_DisplayAction
=
nullptr
;
67
68
std::string
m_HitNodeName
;
69
std::string
m_AbsorberNodeName
;
70
};
71
72
#endif // G4OHCAL_PHG4OHCALSUBSYSTEM_H
coresoftware
blob
master
simulation
g4simulation
g4ohcal
PHG4OHCalSubsystem.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:16
using
1.8.2 with
sPHENIX GitHub integration