EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
EICG4B0ECALSteppingAction.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EICG4B0ECALSteppingAction.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef EICG4B0ECALSTEPPINGACTION_H
4
#define EICG4B0ECALSTEPPINGACTION_H
5
6
#include <
g4main/PHG4SteppingAction.h
>
7
#include <string>
8
9
#include <Geant4/G4StepPoint.hh>
10
#include <Geant4/G4TouchableHandle.hh>
11
12
class
EICG4B0ECALDetector
;
13
class
EICG4B0ECALSubsystem
;
14
15
class
G4Step;
16
class
G4VPhysicalVolume;
17
class
PHCompositeNode
;
18
class
PHG4Hit
;
19
class
PHG4Shower
;
20
class
PHG4HitContainer
;
21
class
PHParameters
;
22
23
class
EICG4B0ECALSteppingAction
:
public
PHG4SteppingAction
24
{
25
public
:
27
EICG4B0ECALSteppingAction
(
EICG4B0ECALSubsystem
* subsys,
EICG4B0ECALDetector
* detector,
const
PHParameters
*
parameters
);
28
30
virtual
~EICG4B0ECALSteppingAction
()
override
;
31
33
virtual
bool
UserSteppingAction
(
const
G4Step*,
bool
)
override
;
34
36
virtual
void
SetInterfacePointers
(
PHCompositeNode
*)
override
;
37
38
virtual
void
SaveLightYield
(
const
int
i = 1) {
m_SaveLightYieldFlag
= i; }
39
40
virtual
bool
hasMotherSubsystem
()
const
;
41
42
virtual
void
SaveAllHits
(
bool
i =
true
) {
m_SaveAllHitsFlag
= i; }
43
44
virtual
void
HitNodeName
(
const
std::string&
name
) {
m_HitNodeName
=
name
; }
45
46
private
:
47
int
FindTowerIndexFromPosition
(G4StepPoint* prePoint,
int
& j,
int
&
k
);
48
50
EICG4B0ECALSubsystem
*
m_Subsystem
;
51
EICG4B0ECALDetector
*
m_Detector
;
52
53
const
PHParameters
*
m_Params
;
55
PHG4HitContainer
*
m_HitContainer
=
nullptr
;
56
PHG4Hit
*
m_Hit
;
57
PHG4Shower
*
m_SaveShower
;
58
G4VPhysicalVolume*
m_SaveVolPre
;
59
G4VPhysicalVolume*
m_SaveVolPost
;
60
61
bool
m_SaveAllHitsFlag
=
false
;
62
int
m_SaveLightYieldFlag
;
63
int
m_SaveTrackId
;
64
int
m_SavePreStepStatus
;
65
int
m_SavePostStepStatus
;
66
int
m_ActiveFlag
= 0;
67
int
m_BlackHoleFlag
= 0;
68
int
m_UseG4StepsFlag
;
69
double
m_Zmin
;
70
double
m_Zmax
;
71
double
m_Tmin
;
72
double
m_Tmax
;
73
double
m_EdepSum
;
74
double
m_EabsSum
;
75
std::string
m_HitNodeName
;
76
};
77
78
#endif // EICG4B0ECALSTEPPINGACTION_H
fun4all_eicdetectors
blob
master
simulation
g4simulation
g4b0ecal
EICG4B0ECALSteppingAction.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:51
using
1.8.2 with
EIC GitHub integration