EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4_EndCap_Electron_JLeic.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4_EndCap_Electron_JLeic.C
1 #ifndef MACRO_G4ENDCAPELECTRON
2 #define MACRO_G4ENDCAPELECTRON
3 
4 #include <GlobalVariables.C>
5 
7 #include <g4main/PHG4Reco.h>
8 
9 R__LOAD_LIBRARY(libg4detectors.so)
10 
11 namespace Enable
12 {
13  bool ENDCAP_ELECTRON = false;
14 }
15 
16 namespace G4ENDCAPELECTRON
17 {
18  double outer_radius = 244.; // cm
19  double size_z = 60.;
20  double place_z = -400. / 2. - size_z / 2.;
21 } // namespace G4ENDCAPELECTRON
22 
24 {
27 }
28 
30 {
31  // here is our silicon:
32  double inner_radius = 20.; // cm
33  PHG4CylinderSubsystem* cyl = new PHG4CylinderSubsystem("ECELECTRON", 0);
34  cyl->set_double_param("radius", inner_radius);
35  cyl->set_string_param("material", "G4_Fe");
36  cyl->set_double_param("thickness", G4ENDCAPELECTRON::outer_radius - inner_radius);
39  cyl->SetActive();
40  cyl->SuperDetector("ECELECTRON");
41  g4Reco->registerSubsystem(cyl);
42 
43  return;
44 }
45 
46 #endif // MACRO_G4ENDCAPELECTRON