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
PHG4MvtxSubsystem.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4MvtxSubsystem.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4MVTX_PHG4MVTXSUBSYSTEM_H
4
#define G4MVTX_PHG4MVTXSUBSYSTEM_H
5
6
#include <
g4detectors/PHG4DetectorGroupSubsystem.h
>
7
8
#include <cmath>
// for asin
9
#include <string>
// for string
10
11
class
PHCompositeNode
;
12
class
PHG4Detector
;
13
class
PHG4DisplayAction
;
14
class
PHG4MvtxDetector
;
15
class
PHG4SteppingAction
;
16
17
class
PHG4MvtxSubsystem
:
public
PHG4DetectorGroupSubsystem
18
{
19
public
:
21
PHG4MvtxSubsystem
(
const
std::string
&
name
=
"PHG4MvtxSubsystem"
,
const
int
_n_layers = 3);
22
24
~PHG4MvtxSubsystem
()
override
;
25
27
33
int
InitRunSubsystem
(
PHCompositeNode
*)
override
;
34
36
40
int
process_event
(
PHCompositeNode
*)
override
;
41
43
PHG4Detector
*
GetDetector
(
void
)
const override
;
44
PHG4SteppingAction
*
GetSteppingAction
(
void
)
const override
{
return
m_SteppingAction
; }
45
46
PHG4DisplayAction
*
GetDisplayAction
()
const override
{
return
m_DisplayAction
; }
47
48
private
:
49
void
SetDefaultParameters
()
override
;
50
static
double
radii2Turbo
(
double
rMin,
double
rMid,
double
rMax,
double
sensW)
51
{
52
// compute turbo angle from radii and sensor width
53
return
std::asin((rMax * rMax - rMin * rMin) / (2 * rMid * sensW));
54
}
56
57
PHG4MvtxDetector
*
m_Detector
{
nullptr
};
58
60
61
PHG4SteppingAction
*
m_SteppingAction
{
nullptr
};
62
64
65
PHG4DisplayAction
*
m_DisplayAction
{
nullptr
};
66
67
// These are passed on to the detector class
68
unsigned
int
n_layers
{0};
69
70
std::string
detector_type
;
71
std::string
m_HitNodeName
;
72
std::string
m_SupportNodeName
;
73
};
74
75
#endif
coresoftware
blob
master
simulation
g4simulation
g4mvtx
PHG4MvtxSubsystem.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:16
using
1.8.2 with
sPHENIX GitHub integration