EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4_AllSilicon.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4_AllSilicon.C
1 #ifndef MACRO_G4ALLSILICON_C
2 #define MACRO_G4ALLSILICON_C
3 
4 #include <GlobalVariables.C>
5 
7 
8 R__LOAD_LIBRARY(libg4lblvtx.so)
9 
10 namespace Enable
11 {
12  bool ALLSILICON = false;
13  bool ALLSILICON_ABSORBER = false;
15 } // namespace Enable
16 
17 namespace G4ALLSILICON
18 {
19  namespace SETTING
20  {
21  int geomVersion = 2;
22  } // namespace SETTING
23 } // namespace G4FHCAL
24 
25 void AllSiliconInit() {}
26 
28 {
29  bool AbsorberActive = Enable::ABSORBER || Enable::ALLSILICON_ABSORBER;
32 
33 
34  allsili->set_string_param("GDMPath", string(getenv("CALIBRATIONROOT")) + Form("/AllSiliconTracker/genfitGeom_AllSi_v%d.gdml",G4ALLSILICON::SETTING::geomVersion));
35 
36  allsili->AddAssemblyVolume("VST"); // Barrel
37  allsili->AddAssemblyVolume("FST"); // Forward disks
38  allsili->AddAssemblyVolume("BST"); // Backward disks
39  //allsili->AddAssemblyVolume("BEAMPIPE"); // Beampipe
40  allsili->SuperDetector("LBLVTX");
41  allsili->OverlapCheck(OverlapCheck);
42 // allsili->OverlapCheck(false);
43  allsili->SetActive(); // this saves hits in the MimosaCore volumes
44  if (AbsorberActive) allsili->SetAbsorberActive(); // this saves hits in all volumes (in the absorber node)
45  g4Reco->registerSubsystem(allsili);
46 }
47 #endif