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
PHG4TpcSteppingAction.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4TpcSteppingAction.h
1
#ifndef G4TPC_PHG4VTPCSTEPPINGACTION_H
2
#define G4TPC_PHG4VTPCSTEPPINGACTION_H
3
4
#include <
g4main/PHG4SteppingAction.h
>
5
6
#include <string>
7
8
class
G4Step;
9
class
G4VPhysicalVolume
;
10
class
PHCompositeNode
;
11
class
PHG4TpcDetector
;
12
class
PHG4Hit
;
13
class
PHG4HitContainer
;
14
class
PHG4Shower
;
15
class
PHParameters
;
16
17
class
PHG4TpcSteppingAction
:
public
PHG4SteppingAction
18
{
19
public
:
21
PHG4TpcSteppingAction
(
PHG4TpcDetector
*,
const
PHParameters
*
parameters
);
22
24
~PHG4TpcSteppingAction
()
override
;
25
27
bool
UserSteppingAction
(
const
G4Step *,
bool
)
override
;
28
30
void
SetInterfacePointers
(
PHCompositeNode
*)
override
;
31
32
void
SetHitNodeName
(
const
std::string
&
type
,
const
std::string
&
name
)
override
;
33
34
private
:
36
PHG4TpcDetector
*
m_Detector
=
nullptr
;
37
39
PHG4HitContainer
*
m_HitContainer
=
nullptr
;
40
PHG4HitContainer
*
m_AbsorberHitContainer
=
nullptr
;
41
PHG4Hit
*
m_Hit
=
nullptr
;
42
const
PHParameters
*
m_Params
=
nullptr
;
43
PHG4HitContainer
*
m_CurrentHitContainer
=
nullptr
;
44
PHG4Shower
*
m_Shower
=
nullptr
;
45
G4VPhysicalVolume
*
m_SaveVolPre
=
nullptr
;
46
G4VPhysicalVolume
*
m_SaveVolPost
=
nullptr
;
47
int
m_SaveTrackId
= -1;
48
int
m_SavePreStepStatus
= -1;
49
int
m_SavePostStepStatus
= -1;
50
// since getting parameters is a map search we do not want to
51
// do this in every step, the parameters used are cached
52
// in the following variables
53
int
m_IsBlackHoleFlag
= 0;
54
int
m_UseG4StepsFlag
= 0;
55
56
std::string
m_HitNodeName
;
57
std::string
m_AbsorberNodeName
;
58
};
59
60
#endif // G4TPC_PHG4TPCSTEPPINGACTION_H
coresoftware
blob
master
simulation
g4simulation
g4tpc
PHG4TpcSteppingAction.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:16
using
1.8.2 with
sPHENIX GitHub integration