EIC Software
 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 
7 
8 #include <g4main/PHG4Reco.h>
9 
18 namespace Enable
19 {
20  bool AEROGEL = false;
21  bool AEROGEL_OVERLAPCHECK = false;
22 } // namespace Enable
23 
25 {
28 }
29 
30 void AerogelSetup(PHG4Reco* g4Reco, const int N_Sector = 8, //
31  const double min_eta = 1.242)
32 {
34 
35  PHG4SectorSubsystem* ag = new PHG4SectorSubsystem("Aerogel");
36 
39  2);
40  // ag->get_geometry().set_normal_polar_angle(0);
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 
54  expansion_length * PHG4Sector::Sector_Geometry::Unit_cm());
55  g4Reco->registerSubsystem(ag);
56 }
57 #endif