ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4_CEmc_Albedo.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4_CEmc_Albedo.C
1 #ifndef MACRO_G4CEMCALBEDO_C
2 #define MACRO_G4CEMCALBEDO_C
3 
4 #include <GlobalVariables.C>
5 
7 
8 namespace Enable
9 {
10  bool CEMCALBEDO = false;
11  bool CEMCALBEDO_ABSORBER = false;
12 } // namespace Enable
13 
14 namespace G4CEMCALBEDO
15 {
17  double inner_radius = 95. - teflon_cylinder_thickness; // inner radius emc, 1.5cm electronics subtracted
18  double albedo_thickness = 2.;
19 } // namespace G4CEMCALBEDO
20 
22 {
26 }
27 
28 void CEmcAlbedo(PHG4Reco *g4Reco)
29 {
30  bool AbsorberActive = Enable::ABSORBER || Enable::CEMCALBEDO_ABSORBER;
31  PHG4CylinderSubsystem *cyl = new PHG4CylinderSubsystem("CEMC_ELECTRONICS", 0);
32  cyl->SuperDetector("CEMC_MOCKUP");
34  cyl->set_string_param("material", "G4_TEFLON");
36  if (AbsorberActive) cyl->SetActive();
37  g4Reco->registerSubsystem(cyl);
38  cyl = new PHG4CylinderSubsystem("CEMC_ALBEDO", 1);
39  cyl->SuperDetector("CEMC_MOCKUP");
41  cyl->set_string_param("material", "Spacal_W_Epoxy");
43  if (AbsorberActive) cyl->SetActive();
44  g4Reco->registerSubsystem(cyl);
45 }
46 #endif