Analysis Software
Documentation for sPHENIX simulation 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 #include <g4main/PHG4Reco.h>
9 
10 namespace Enable
11 {
12  bool CEMCALBEDO = false;
13  bool CEMCALBEDO_ABSORBER = false;
14 } // namespace Enable
15 
16 namespace G4CEMCALBEDO
17 {
19  double inner_radius = 95. - teflon_cylinder_thickness; // inner radius emc, 1.5cm electronics subtracted
20  double albedo_thickness = 2.;
21 } // namespace G4CEMCALBEDO
22 
24 {
28 }
29 
30 void CEmcAlbedo(PHG4Reco *g4Reco)
31 {
32  bool AbsorberActive = Enable::ABSORBER || Enable::CEMCALBEDO_ABSORBER;
33  PHG4CylinderSubsystem *cyl = new PHG4CylinderSubsystem("CEMC_ELECTRONICS", 0);
34  cyl->SuperDetector("CEMC_MOCKUP");
36  cyl->set_string_param("material", "G4_TEFLON");
38  if (AbsorberActive) cyl->SetActive();
39  g4Reco->registerSubsystem(cyl);
40  cyl = new PHG4CylinderSubsystem("CEMC_ALBEDO", 1);
41  cyl->SuperDetector("CEMC_MOCKUP");
43  cyl->set_string_param("material", "Spacal_W_Epoxy");
45  if (AbsorberActive) cyl->SetActive();
46  g4Reco->registerSubsystem(cyl);
47 }
48 #endif