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
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
;
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
;
58
60
61
PHG4SteppingAction
*
steppingAction_
;
62
64
65
PHG4DisplayAction
*
m_DisplayAction
;
66
67
// These are passed on to the detector class
68
unsigned
int
n_layers
;
69
70
std::string
detector_type
;
71
};
72
73
#endif
coresoftware
blob
master
simulation
g4simulation
g4mvtx
PHG4MvtxSubsystem.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:44
using
1.8.2 with
ECCE GitHub integration