EIC Software
Reference for
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
G4_VTX_JLeic.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_VTX_JLeic.C
1
#ifndef MACRO_G4VTXJLEIC_C
2
#define MACRO_G4VTXJLEIC_C
3
4
#include <GlobalVariables.C>
5
6
#include <
g4jleic/G4JLeicVTXSubsystem.h
>
7
#include <
g4main/PHG4Reco.h
>
8
9
R__LOAD_LIBRARY
(libg4jleic.so)
10
11
namespace Enable
12
{
13
bool
VTX
=
false
;
14
}
15
16
namespace
G4VTX
17
{
18
double
outer_radius
= 16.;
19
double
length
= 48;
20
}
// namespace G4VTX
21
22
void
VTXInit
()
23
{
24
BlackHoleGeometry::max_radius
=
std::max
(
BlackHoleGeometry::max_radius
,
G4VTX::outer_radius
);
25
BlackHoleGeometry::max_z
=
std::max
(
BlackHoleGeometry::max_z
,
G4VTX::length
/ 2.);
26
BlackHoleGeometry::min_z
=
std::min
(
BlackHoleGeometry::min_z
, -
G4VTX::length
/ 2.);
27
}
28
29
double
VTX
(
PHG4Reco
* g4Reco,
30
double
radius
)
31
{
32
if
(radius > 3.5)
33
{
34
cout <<
"radius too large to fit VTX"
<< endl;
35
exit
(1);
36
}
37
G4JLeicVTXSubsystem
* jlvtx =
new
G4JLeicVTXSubsystem
();
38
jlvtx->
SetActive
();
39
jlvtx->
SuperDetector
(
"JLVTX"
);
40
g4Reco->
registerSubsystem
(jlvtx);
41
radius =
G4VTX::outer_radius
;
42
return
radius
;
43
}
44
45
#endif // MACRO_G4VTXJLEIC_C
fun4all_eicmacros
blob
master
common
G4_VTX_JLeic.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:53
using
1.8.2 with
EIC GitHub integration