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
PHG4SteppingAction.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4SteppingAction.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4MAIN_PHG4STEPPINGACTION_H
4
#define G4MAIN_PHG4STEPPINGACTION_H
5
6
#include <set>
7
#include <string>
8
9
class
G4Step
;
10
class
PHCompositeNode
;
11
class
PHG4Hit
;
12
13
class
PHG4SteppingAction
14
{
15
public
:
16
PHG4SteppingAction
(
const
std::string&
name
,
const
int
i = 0);
17
virtual
~PHG4SteppingAction
()
18
{
19
}
20
22
27
virtual
bool
UserSteppingAction
(
const
G4Step
*
step
,
bool
was_used) = 0;
28
29
virtual
void
Verbosity
(
const
int
i) {
m_Verbosity
= i; }
30
virtual
int
Verbosity
()
const
{
return
m_Verbosity
; }
31
virtual
int
Init
() {
return
0; }
33
virtual
double
GetScintLightYield
(
const
G4Step
*
step
);
34
36
virtual
double
GetVisibleEnergyDeposition
(
const
G4Step
*
step
);
37
39
virtual
void
StoreLocalCoordinate
(
PHG4Hit
* hit,
const
G4Step
*
step
,
const
bool
do_prepoint,
const
bool
do_postpoint);
40
41
virtual
void
SetInterfacePointers
(
PHCompositeNode
*) {
return
; }
42
virtual
void
Print
(
const
std::string&
/*what*/
)
const
{
return
; }
43
std::string
GetName
()
const
{
return
m_Name
; }
44
void
SetName
(
const
std::string& name) {
m_Name
=
name
; }
45
virtual
void
SetLightCorrection
(
const
double
inner_radius
,
const
double
inner_corr,
const
double
outer_radius
,
const
double
outer_corr);
46
virtual
double
GetLightCorrection
(
const
double
r
)
const
;
47
virtual
double
GetLightCorrection
(
const
double
xpos,
const
double
ypos)
const
;
48
virtual
bool
ValidCorrection
()
const
;
49
51
virtual
void
SetHitNodeName
(
const
std::string &,
const
std::string &) {
return
;}
52
53
private
:
54
int
m_Verbosity
;
55
double
m_LightBalanceInnerRadius
;
56
double
m_LightBalanceInnerCorr
;
57
double
m_LightBalanceOuterRadius
;
58
double
m_LightBalanceOuterCorr
;
59
std::string
m_Name
;
60
std::set<std::string>
m_ScintLightYieldMissingMaterialSet
;
61
};
62
63
#endif // G4MAIN_PHG4STEPPINGACTION_H
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4SteppingAction.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:44
using
1.8.2 with
ECCE GitHub integration