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