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_Aerogel.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_Aerogel.C
1
#ifndef MACRO_G4AEROGEL_C
2
#define MACRO_G4AEROGEL_C
3
4
#include <GlobalVariables.C>
5
6
#include <
g4detectors/PHG4SectorSubsystem.h
>
7
8
#include <
g4main/PHG4Reco.h
>
9
18
namespace
Enable
19
{
20
bool
AEROGEL
=
false
;
21
bool
AEROGEL_OVERLAPCHECK
=
false
;
22
}
// namespace Enable
23
24
void
AerogelInit
()
25
{
26
BlackHoleGeometry::max_radius
=
std::max
(
BlackHoleGeometry::max_radius
, 164.);
27
BlackHoleGeometry::max_z
=
std::max
(
BlackHoleGeometry::max_z
, 287.);
28
}
29
30
void
AerogelSetup
(
PHG4Reco
* g4Reco,
const
int
N_Sector = 8,
//
31
const
double
min_eta = 1.242)
32
{
33
bool
OverlapCheck =
Enable::OVERLAPCHECK
||
Enable::AEROGEL_OVERLAPCHECK
;
34
35
PHG4SectorSubsystem
* ag =
new
PHG4SectorSubsystem
(
"Aerogel"
);
36
37
ag->
get_geometry
().
set_normal_polar_angle
((
PHG4Sector::Sector_Geometry::eta_to_polar_angle
(min_eta) +
38
PHG4Sector::Sector_Geometry::eta_to_polar_angle
(2)) /
39
2);
40
// ag->get_geometry().set_normal_polar_angle(0);
41
ag->
get_geometry
().
set_normal_start
(280 *
PHG4Sector::Sector_Geometry::Unit_cm
());
// 307
42
ag->
get_geometry
().
set_min_polar_angle
(
PHG4Sector::Sector_Geometry::eta_to_polar_angle
(1.85));
43
ag->
get_geometry
().
set_max_polar_angle
(
PHG4Sector::Sector_Geometry::eta_to_polar_angle
(min_eta));
44
ag->
get_geometry
().
set_min_polar_edge
(
PHG4Sector::Sector_Geometry::FlatEdge
());
45
ag->
get_geometry
().
set_material
(
"G4_AIR"
);
46
ag->
get_geometry
().
set_N_Sector
(N_Sector);
47
ag->
OverlapCheck
(OverlapCheck);
48
49
// Aerogel dimensions ins cm
50
double
radiator_length = 2.;
51
double
expansion_length = 18.;
// 10.;
52
53
ag->
get_geometry
().
AddLayers_AeroGel_ePHENIX
(radiator_length *
PHG4Sector::Sector_Geometry::Unit_cm
(),
54
expansion_length *
PHG4Sector::Sector_Geometry::Unit_cm
());
55
g4Reco->
registerSubsystem
(ag);
56
}
57
#endif
fun4all_eicmacros
blob
master
common
G4_Aerogel.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:53
using
1.8.2 with
EIC GitHub integration