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
PHG4OuterHcalSteppingAction.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4OuterHcalSteppingAction.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_PHG4OUTERHCALSTEPPINGACTION_H
4
#define G4DETECTORS_PHG4OUTERHCALSTEPPINGACTION_H
5
6
#include <
g4main/PHG4SteppingAction.h
>
7
8
class
G4Step;
9
class
G4VPhysicalVolume
;
10
class
PHCompositeNode
;
11
class
TowerInfoContainer
;
12
class
PHG4OuterHcalDetector
;
13
class
PHParameters
;
14
class
PHG4Hit
;
15
class
PHG4HitContainer
;
16
class
PHG4Shower
;
17
class
TH2;
18
19
class
PHG4OuterHcalSteppingAction
:
public
PHG4SteppingAction
20
{
21
public
:
23
PHG4OuterHcalSteppingAction
(
PHG4OuterHcalDetector
*,
const
PHParameters
*
parameters
);
24
26
~PHG4OuterHcalSteppingAction
()
override
;
27
29
bool
UserSteppingAction
(
const
G4Step *,
bool
)
override
;
30
31
int
InitWithNode
(
PHCompositeNode
*topNode)
override
;
32
34
void
SetInterfacePointers
(
PHCompositeNode
*)
override
;
35
36
void
FieldChecker
(
const
G4Step *);
37
void
EnableFieldChecker
(
const
int
i
= 1) {
m_EnableFieldCheckerFlag
=
i
; }
38
void
CreateNodeTree
(
PHCompositeNode
*topNode);
39
40
private
:
41
bool
NoHitSteppingAction
(
const
G4Step *aStep);
43
PHG4OuterHcalDetector
*
m_Detector
=
nullptr
;
44
46
TH2 *
m_MapCorrHist
=
nullptr
;
47
49
PHG4HitContainer
*
m_Hits
=
nullptr
;
50
PHG4HitContainer
*
m_AbsorberHits
=
nullptr
;
51
PHG4Hit
*
m_Hit
=
nullptr
;
52
const
PHParameters
*
m_Params
=
nullptr
;
53
PHG4HitContainer
*
m_SaveHitContainer
=
nullptr
;
54
PHG4Shower
*
m_SaveShower
=
nullptr
;
55
G4VPhysicalVolume
*
m_SaveVolPre
=
nullptr
;
56
G4VPhysicalVolume
*
m_SaveVolPost
=
nullptr
;
57
int
m_SaveTrackId
= -1;
58
int
m_SavePreStepStatus
= -1;
59
int
m_SavePostStepStatus
= -1;
60
int
m_EnableFieldCheckerFlag
= -1;
61
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_IsActiveFlag
= -1;
66
int
m_IsBlackHoleFlag
= -1;
67
int
m_NScintiPlates
= -1;
68
int
m_LightScintModelFlag
= 0;
69
bool
m_doG4Hit
=
true
;
70
double
m_tmin
= -20.;
71
double
m_tmax
= 60.;
72
double
m_dt
= 100.;
73
TowerInfoContainer
*
m_CaloInfoContainer
=
nullptr
;
74
};
75
76
#endif // G4DETECTORS_PHG4OUTERHCALSTEPPINGACTION_H
coresoftware
blob
master
simulation
g4simulation
g4detectors
PHG4OuterHcalSteppingAction.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:13
using
1.8.2 with
sPHENIX GitHub integration