Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GlobalVariables.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GlobalVariables.C
1 #ifndef MACRO_GLOBALVARIABLES_C
2 #define MACRO_GLOBALVARIABLES_C
3 
5 #include <G4_TrkrVariables.C>
6 #include <set>
7 
8 double no_overlapp = 0.0001;
9 
10 // These Input settings are needed in multiple Input selections
11 // Putting those here avoids include file ordering problems
12 namespace Input
13 {
14  bool HEPMC = false;
15  bool EMBED = false;
16  bool READEIC = false;
17 
18  bool UPSILON = false;
19  std::set<int> UPSILON_EmbedIds;
20 
23  {
27  };
28 
30 } // namespace Input
31 
32 namespace DstOut
33 {
35  std::string OutputFile = "test.root";
36 } // namespace DstOut
37 
38 // Global settings affecting multiple subsystems
39 namespace Enable
40 {
41  bool ABSORBER = false;
42  bool CDB = false;
43  bool DSTOUT = false;
44  bool DSTOUT_COMPRESS = false;
45  bool OVERLAPCHECK = false;
46  bool SUPPORT = false;
47  int VERBOSITY = 0;
48 } // namespace Enable
49 
50 // every G4 subsystem needs to implement this
51 // rather than forcing another include file,
52 // let's put this into the GlobalVariables.C
53 namespace BlackHoleGeometry
54 {
55  double max_radius = 0.; // this is needed for the overall dimension of the black hole
56  double min_z = 0.;
57  double max_z = 0.;
58  double gap = no_overlapp;
59  bool visible = false;
60 }; // namespace BlackHoleGeometry
61 
62 namespace G4P6DECAYER
63 {
65 }
66 
67 // our various tracking macro
68 namespace TRACKING
69 {
70  std::string TrackNodeName = "SvtxTrackMap";
71  bool pp_mode = false;
72  double pp_extended_readout_time = 7000.0; // ns
73 }
74 
75 namespace G4MAGNET
76 {
77  // initialize to garbage values - the override is done in the respective
78  // MagnetInit() functions. If used standalone (without the G4_Magnet include)
79  // like in the tracking - those need to be set in the Fun4All macro
80  double magfield_rescale = NAN;
83 } // namespace G4MAGNET
84 
85 namespace Enable
86 {
87  bool MICROMEGAS = false;
88 }
89 
90 namespace G4MICROMEGAS
91 {
92  // number of micromegas layers
94 } // namespace G4MICROMEGAS
95 
96 namespace G4TPC
97 {
98  double tpc_drift_velocity_reco= 8.0 / 1000.0; // cm/ns // this is the Ne version of the gas, it is very close to our Ar-CF4 mixture
99 }
100 
101 namespace G4TRACKING
102 {
103  bool init_acts_magfield = true;
104 }
105 
106 namespace EVTGENDECAYER
107 {
108  std::string DecayFile = ""; //The default is no need to force decay anything and use the default file DECAY.DEC from the official EvtGen software
109  //DECAY.DEC is located at: https://gitlab.cern.ch/evtgen/evtgen/-/blob/master/DECAY.DEC
110 }
111 
112 namespace CDB
113 {
115  uint64_t timestamp = 6;
116 }
117 
118 #endif