ECCE @ EIC Software
Reference for
ECCE @ 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
EICG4dRICHSteppingAction.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EICG4dRICHSteppingAction.h
1
#ifndef DRICHSTEPPINGACTION_H
2
#define DRICHSTEPPINGACTION_H
3
4
#include <
g4main/PHG4SteppingAction.h
>
5
#include <
G4StepPoint.hh
>
6
#include <G4String.hh>
7
#include <
G4Track.hh
>
8
9
class
EICG4dRICHDetector
;
10
11
class
G4Step
;
12
class
G4VPhysicalVolume
;
13
class
PHCompositeNode
;
14
class
EICG4dRICHHit
;
15
class
PHG4HitContainer
;
16
class
PHParameters
;
17
18
class
EICG4dRICHSteppingAction
:
public
PHG4SteppingAction
19
{
20
public
:
22
EICG4dRICHSteppingAction
(
EICG4dRICHDetector
*,
const
PHParameters
*
parameters
);
23
25
virtual
~EICG4dRICHSteppingAction
();
26
28
virtual
bool
UserSteppingAction
(
const
G4Step
*,
bool
);
29
31
virtual
void
SetInterfacePointers
(
PHCompositeNode
*);
32
33
private
:
35
// as energy deposition accumulators
36
void
InitHit
(
const
G4StepPoint
*prePoint_,
const
G4Track
*aTrack_,
37
bool
resetAccumulators);
38
40
EICG4dRICHDetector
*
m_Detector
;
41
const
PHParameters
*
m_Params
;
43
PHG4HitContainer
*
m_HitContainer
;
44
EICG4dRICHHit
*
m_Hit
;
45
PHG4HitContainer
*
m_SaveHitContainer
;
46
G4VPhysicalVolume
*
m_SaveVolPre
;
47
G4VPhysicalVolume
*
m_SaveVolPost
;
48
49
int
m_SaveTrackId
;
50
int
m_SavePreStepStatus
;
51
int
m_SavePostStepStatus
;
52
int
m_ActiveFlag
;
53
double
m_EdepSum
;
54
double
m_EionSum
;
55
56
// hit type classifiers
57
int
hitType
;
58
enum
hitTypes
59
{
60
hEntrance
,
/* vessel entrance */
61
hExit
,
/* vessel exit */
62
hPSST
,
/* photosensor hit */
63
hIgnore
,
/* none of the above */
64
nHitTypes
65
};
66
G4String
hitTypeStr
[
nHitTypes
];
67
// hit subtype classifiers
68
int
hitSubtype
;
69
enum
hitSubtypes
70
{
71
/* entrance hits */
72
entPrimary
,
/* primary, thrown from generator */
73
entSecondary
,
/* secondary, byproduct of thrown particle */
74
entPostStep
,
/* incident particle from PostStepDoItVector */
75
/* exit hits */
76
exPrimary
,
/* primary track exit */
77
exSecondary
,
/* secondary track exit (not primary) */
78
/* photosensor hits */
79
psOptical
,
/* opticalphoton hit */
80
psGamma
,
/* non-optical photon hit */
81
psOther
,
/* non-photon hit */
82
/* unknown hit */
83
subtypeUnknown
,
84
nHitSubtypes
85
};
86
G4String
hitSubtypeStr
[
nHitSubtypes
];
87
};
88
89
#endif // DRICHSTEPPINGACTION_H
fun4all_eicdetectors
blob
master
simulation
g4simulation
g4drich
EICG4dRICHSteppingAction.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:46
using
1.8.2 with
ECCE GitHub integration