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
PHG4IHCalSteppingAction.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4IHCalSteppingAction.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4IHCAL_PHG4IHCALSTEPPINGACTION_H
4
#define G4IHCAL_PHG4IHCALSTEPPINGACTION_H
5
6
#include <
g4main/PHG4SteppingAction.h
>
7
8
#include <string>
// for string
9
10
class
G4Step;
11
class
G4VPhysicalVolume
;
12
class
PHCompositeNode
;
13
class
TowerInfoContainer
;
14
class
PHG4IHCalDetector
;
15
class
PHParameters
;
16
class
PHG4Hit
;
17
class
PHG4HitContainer
;
18
class
PHG4Shower
;
19
class
TH2;
20
21
class
PHG4IHCalSteppingAction
:
public
PHG4SteppingAction
22
{
23
public
:
25
PHG4IHCalSteppingAction
(
PHG4IHCalDetector
*,
const
PHParameters
*
parameters
);
26
28
~PHG4IHCalSteppingAction
()
override
;
29
31
bool
UserSteppingAction
(
const
G4Step *,
bool
)
override
;
32
33
int
InitWithNode
(
PHCompositeNode
*topNode)
override
;
34
36
void
SetInterfacePointers
(
PHCompositeNode
*)
override
;
37
38
void
SetHitNodeName
(
const
std::string
&
type
,
const
std::string
&
name
)
override
;
39
40
void
CreateNodeTree
(
PHCompositeNode
*topNode);
41
42
private
:
43
bool
NoHitSteppingAction
(
const
G4Step *aStep);
45
PHG4IHCalDetector
*
m_Detector
=
nullptr
;
46
48
TH2 *
m_MapCorrHist
=
nullptr
;
49
51
PHG4HitContainer
*
m_HitContainer
=
nullptr
;
52
PHG4HitContainer
*
m_AbsorberHitContainer
=
nullptr
;
53
PHG4Hit
*
m_Hit
=
nullptr
;
54
const
PHParameters
*
m_Params
=
nullptr
;
55
PHG4HitContainer
*
m_SaveHitContainer
=
nullptr
;
56
PHG4Shower
*
m_SaveShower
=
nullptr
;
57
G4VPhysicalVolume
*
m_SaveVolPre
=
nullptr
;
58
G4VPhysicalVolume
*
m_SaveVolPost
=
nullptr
;
59
int
m_SaveTrackId
= -1;
60
int
m_SavePreStepStatus
= -1;
61
int
m_SavePostStepStatus
= -1;
62
// since getting parameters is a map search we do not want to
63
// do this in every step, the parameters used are cached
64
// in the following variables
65
int
m_IsActive
= 0;
66
int
m_IsBlackHole
= 0;
67
int
m_LightScintModelFlag
= 0;
68
bool
m_doG4Hit
=
true
;
69
double
m_tmin
= -20.;
70
double
m_tmax
= 60.;
71
double
m_dt
= 100.;
72
73
std::string
m_AbsorberNodeName
;
74
std::string
m_HitNodeName
;
75
76
TowerInfoContainer
*
m_CaloInfoContainer
=
nullptr
;
77
};
78
79
#endif // G4IHCAL_PHG4IHCALSTEPPINGACTION_H
coresoftware
blob
master
simulation
g4simulation
g4ihcal
PHG4IHCalSteppingAction.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:14
using
1.8.2 with
sPHENIX GitHub integration