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
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
blob
master
common
G4_Aerogel.C
G4_AllSi.C
G4_AllSilicon.C
G4_Barrel_EIC.C
G4_Barrel_Hcal_JLeic.C
G4_BeamLine_JLeic.C
G4_BECAL.C
G4_CEmc_EIC.C
G4_CTD_JLeic.C
G4_DIRC.C
G4_DIRC_JLeic.C
G4_DRCALO.C
G4_dRICH.C
G4_DRich_JLeic.C
G4_DSTReader_Beast.C
G4_DSTReader_EICDetector.C
G4_DSTReader_fsPHENIX.C
G4_DSTReader_JLeic.C
G4_DSTReader_LBLDetector.C
G4_DSTReader_ModularDetector.C
G4_EEMC.C
G4_EEMC_hybrid.C
G4_EHCAL.C
G4_EndCap_Electron_JLeic.C
G4_EndCap_Hadron_JLeic.C
G4_FEMC.C
G4_FEMC_EIC.C
G4_FGEM_fsPHENIX.C
G4_FHCAL.C
G4_FST_EIC.C
G4_FwdJets.C
G4_GEM_EIC.C
G4_Gem_JLeic.C
G4_HCalIn_EIC.C
G4_hFarFwdBeamLine_EIC.C
G4_LFHCAL.C
G4_Magnet_Beast.C
G4_Magnet_Cleo.C
G4_mRICH.C
G4_Mvtx_EIC.C
G4_Pipe_EIC.C
G4_Pipe_EIC_simple.C
G4_Piston.C
G4_PlugDoor_EIC.C
G4_PlugDoor_fsPHENIX.C
G4_RICH.C
G4_TPC_EIC.C
G4_Tracking_EIC.C
G4_Tracking_JLeic.C
G4_Tracking_LBL.C
G4_Tracking_Modular.C
G4_TTL_EIC.C
G4_VTX_JLeic.C
detectors
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
fun4all_tutorials
g4exampledetector
g4lblvtx
online_distribution
PEPSI
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4_dRICH.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_dRICH.C
1
8
#ifndef MACRO_G4dRICH_C
9
#define MACRO_G4dRICH_C
10
11
#include <GlobalVariables.C>
12
13
#include <
g4detectors/PHG4ConeSubsystem.h
>
14
#include <
g4trackfastsim/PHG4TrackFastSim.h
>
15
16
#include <
g4main/PHG4Reco.h
>
17
18
R__LOAD_LIBRARY
(libg4detectors.so)
19
20
namespace Enable
21
{
22
bool
RICH
=
false
;
23
bool
RICH_OVERLAPCHECK
=
false
;
24
}
// namespace Enable
25
26
void
RICHInit
()
27
{
28
BlackHoleGeometry::max_radius
=
std::max
(
BlackHoleGeometry::max_radius
, 210.);
29
BlackHoleGeometry::max_z
=
std::max
(
BlackHoleGeometry::max_z
, 280.);
30
}
31
33
//Grzegorz Kalicy <gkalicy@jlab.org>
34
//- it starts 180 cm from IP
35
//- radius of aerogel part starts at 110 cm at rises up to 120cm over 20 cm of length.
36
//- at 175 cm from IP it rapidly grows radially to radius 210cm at stays constant like a cylinder until end at 280cm from the IP
37
void
RICHSetup
(
PHG4Reco
* g4Reco)
38
{
39
bool
OverlapCheck =
Enable::OVERLAPCHECK
||
Enable::RICH_OVERLAPCHECK
;
40
41
double
z
= 185;
42
double
dz
= 0;
43
44
dz = 20;
45
PHG4ConeSubsystem
* coneAeroGel =
new
PHG4ConeSubsystem
(
"dRICHconeAeroGel"
, 0);
46
coneAeroGel->
SetR1
(11, 110);
47
coneAeroGel->
SetR2
(11, 120);
48
coneAeroGel->
SetZlength
(dz * 0.5);
49
coneAeroGel->
SetPlaceZ
(z + dz * 0.5);
50
coneAeroGel->
set_string_param
(
"material"
,
"ePHENIX_AeroGel"
);
51
coneAeroGel->
set_color
(0.5, 0.5, 0.8);
52
coneAeroGel->
SetActive
();
53
coneAeroGel->
SuperDetector
(
"RICH"
);
54
coneAeroGel->
OverlapCheck
(OverlapCheck);
55
g4Reco->
registerSubsystem
(coneAeroGel);
56
57
z +=
dz
;
58
dz = 5;
59
PHG4ConeSubsystem
* coneGas =
new
PHG4ConeSubsystem
(
"dRICHconeGas"
, 1);
60
coneGas->
SetR1
(11, 120);
61
coneGas->
SetR2
(11, 170);
// <- reduce from 210cm to avoid overlap with the HCal
62
coneGas->
SetZlength
(dz * 0.5);
63
coneGas->
SetPlaceZ
(z + dz * 0.5);
64
coneGas->
set_string_param
(
"material"
,
"C4F10"
);
65
coneGas->
set_color
(0.5, 0.5, 0.5);
66
coneGas->
SetActive
();
67
coneGas->
SuperDetector
(
"RICH"
);
68
coneGas->
OverlapCheck
(OverlapCheck);
69
g4Reco->
registerSubsystem
(coneGas);
70
71
z +=
dz
;
72
dz = 75;
73
coneGas =
new
PHG4ConeSubsystem
(
"dRICHconeGas"
, 2);
74
coneGas->
SetR1
(11, 170);
75
coneGas->
SetR2
(15, 170);
76
coneGas->
SetZlength
(dz * 0.5);
77
coneGas->
SetPlaceZ
(z + dz * 0.5);
78
coneGas->
set_string_param
(
"material"
,
"C4F10"
);
79
coneGas->
set_color
(0.5, 0.5, 0.5);
80
coneGas->
SetActive
();
81
coneGas->
SuperDetector
(
"RICH"
);
82
coneGas->
OverlapCheck
(OverlapCheck);
83
g4Reco->
registerSubsystem
(coneGas);
84
85
z +=
dz
;
86
87
88
// if (TRACKING::FastKalmanFilter)
89
// {
90
// // project to an reference plane at z=170 cm
91
// TRACKING::FastKalmanFilter-> add_zplane_state("RICH", 185);
92
// TRACKING::ProjectionNames.insert("RICH");
93
// }
94
95
}
96
#endif
fun4all_eicmacros
blob
master
common
G4_dRICH.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:53
using
1.8.2 with
EIC GitHub integration