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
PHG4SpacalSteppingAction.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4SpacalSteppingAction.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
11
#ifndef G4DETECTORS_PHG4SPACALSTEPPINGACTION_H
12
#define G4DETECTORS_PHG4SPACALSTEPPINGACTION_H
13
14
#include "
LightCollectionModel.h
"
15
16
#include <
g4main/PHG4SteppingAction.h
>
17
18
class
G4Step;
19
class
LightCollectionModel
;
20
class
PHCompositeNode
;
21
class
PHG4CylinderCellGeomContainer
;
22
class
PHG4CylinderCellGeom_Spacalv1
;
23
class
PHG4CylinderGeomContainer
;
24
class
PHG4CylinderGeom_Spacalv3
;
25
class
PHG4SpacalDetector
;
26
class
PHG4Hit
;
27
class
PHG4HitContainer
;
28
class
PHG4Shower
;
29
class
PHParameters
;
30
class
TowerInfoContainer
;
31
32
class
PHG4SpacalSteppingAction
:
public
PHG4SteppingAction
33
{
34
public
:
36
explicit
PHG4SpacalSteppingAction
(
PHG4SpacalDetector
*,
const
PHParameters
*
parameters
);
37
39
~PHG4SpacalSteppingAction
()
override
;
40
42
bool
UserSteppingAction
(
const
G4Step *,
bool
)
override
;
43
44
int
InitWithNode
(
PHCompositeNode
*topNode)
override
;
45
47
void
SetInterfacePointers
(
PHCompositeNode
*)
override
;
48
49
double
get_zmin
()
const
;
50
51
double
get_zmax
()
const
;
52
53
void
SetHitNodeName
(
const
std::string
&
type
,
const
std::string
&
name
)
override
;
54
55
int
SetUpGeomNode
(
PHCompositeNode
*topNode);
56
57
LightCollectionModel
&
get_light_collection_model
() {
return
light_collection_model
; }
58
59
private
:
60
bool
NoHitSteppingAction
(
const
G4Step *aStep);
62
PHG4SpacalDetector
*
m_Detector
=
nullptr
;
63
65
PHG4HitContainer
*
m_HitContainer
=
nullptr
;
66
PHG4HitContainer
*
m_AbsorberHitContainer
=
nullptr
;
67
PHG4Hit
*
m_Hit
=
nullptr
;
68
PHG4HitContainer
*
m_CurrentHitContainer
=
nullptr
;
69
PHG4Shower
*
m_CurrentShower
=
nullptr
;
70
const
PHParameters
*
m_Params
=
nullptr
;
71
int
m_SaveTrackid
= -1;
72
int
m_SavePostStepStatus
= -1;
73
bool
m_doG4Hit
=
true
;
74
bool
m_geomsetup
=
false
;
75
double
m_tmin
= -20.;
76
double
m_tmax
= 60.;
77
double
m_dt
= 100.;
78
79
std::string
m_AbsorberNodeName
;
80
std::string
m_HitNodeName
;
81
std::string
detector
;
82
std::string
geonodename
;
83
std::string
seggeonodename
;
84
85
TowerInfoContainer
*
m_CaloInfoContainer
=
nullptr
;
86
87
PHG4CylinderCellGeomContainer
*
_seggeo
=
nullptr
;
88
89
PHG4CylinderGeomContainer
*
_layergeo
=
nullptr
;
90
91
PHG4CylinderCellGeom_Spacalv1
*
_geo
=
nullptr
;
92
93
const
PHG4CylinderGeom_Spacalv3
*
_layergeom
=
nullptr
;
94
95
LightCollectionModel
light_collection_model
;
96
};
97
98
#endif // PHG4VHcalSteppingAction_h
coresoftware
blob
master
simulation
g4simulation
g4detectors
PHG4SpacalSteppingAction.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:13
using
1.8.2 with
sPHENIX GitHub integration