PowerConfig.cc
Go to the documentation of this file.
1 #include <src/PowerConfig.h>
2 
3 using namespace std;
4 
5 
6 namespace un2 {
7 
8  // actual config
9  const PowerConfig&
10  PowerConfig::GetInstance()
11  {
12  static PowerConfig instance;
13  return instance;
14  }
15 
16 
17  // ToDo: port to xml
18  const std::vector<std::string> PowerConfig::fgComponents = { "total", "em", "mu", "emmu", "emhd" };
19 
20  const std::vector<std::string> PowerConfig::fgReducedComponents = { "em", "mu", "emmu", "emhd" };
21 
22  const std::vector<std::string> PowerConfig::fgHadronModels = { "QGSJETII-04", "Sibyll2.3c", "EPOS-LHC" };
23 
24  const std::vector<std::string> PowerConfig::fgPrimaries = { "p", "Fe", "gamma" };
25 
26  const std::vector<double> PowerConfig::fgLogEnergies = { 17.5, 18, 18.5, 19, 19.5, 20 };
27 
28  const std::vector<std::string> PowerConfig::fgLogEnergiesStrings = { "190", "195", "200" };
29 
30  const std::vector<double> PowerConfig::fgZeniths = { 0, 12, 22, 32, 38, 48, 56, 65 };
31 
32  const std::vector<std::string> PowerConfig::fgZenithsStrings = { "0", "12", "22", "32", "38", "48", "56", "65" };
33 
34  const std::vector<double> PowerConfig::fgGroundLevelDepths = {
35  877.839572, // jan
36  877.394628, // feb
37  875.119616, // mar
38  876.564561, // apr
39  874.895393, // may
40  876.562487, // jun /* these are from corsika */
41  878.477443, // jul
42  877.471046, // aug
43  877.472921, // sep
44  877.599394, // oct
45  876.167982, // nov
46  876.141666 // dec
47  };
48 
49  const std::vector<std::string> PowerConfig::fgDetectors = { "WCD", "SSD" };
50 
51  const std::vector<double> PowerConfig::fgStationRings =
52  { 250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2250, 2500};
53 
54  const std::vector<std::string> PowerConfig::fgStationRingsStrings =
55  { "250", "500", "750", "1000", "1250", "1500", "1750", "2000", "2250", "2500" };
56 
57  const std::vector<double> PowerConfig::fgStationSlices =
58  { -180, -135, -90, -45, 0, 45, 90, 135 };
59 
60  const std::vector<double> PowerConfig::fgStationSlicesRad =
61  { -3.14159265, -2.35619449, -1.57079633, -0.78539816, 0., 0.78539816, 1.57079633, 2.35619449 };
62 
63  const std::vector<std::string> PowerConfig::fgStationSlicesStrings =
64  { "-180", "-135", "-90", "-45", "0", "45", "90", "135" };
65 
66  const std::vector<std::string> PowerConfig::fgStationRingsXML =
67  { "r250", "r500", "r750", "r1000", "r1250", "r1500", "r1750", "r2000", "r2250", "r2500" };
68 
69  const std::vector<std::string> PowerConfig::fgStationSlicesXML =
70  { "az-180", "az-135", "az-90", "az-45", "az0", "az45", "az90", "az135" };
71 
72  const std::map<std::string, unsigned int> PowerConfig::fgStationRingsStringsMap =
73  {{"250", 0}, {"500", 1}, {"750", 2}, {"1000", 3} ,{"1250", 4}, {"1500", 5}, {"1750", 6}, {"2000", 7}, {"2250", 8}, {"2500", 9}};
74 
75  const std::map<std::string, unsigned int> PowerConfig::fgStationSlicesStringsMap =
76  {{"-180", 0}, {"-135", 1}, {"-90", 2}, {"-45", 3}, {"0", 4}, {"45", 5}, {"90", 6}, {"135", 7}};
77 
78  const std::map<std::string, unsigned int> PowerConfig::fgMonthsMap =
79  {{"Jan", 1}, {"Feb", 2}, {"Mar", 3}, {"Apr", 4}, {"May", 5}, {"Jun", 6},
80  {"Jul", 7}, {"Aug", 8}, {"Sep", 9}, {"Oct", 10}, {"Nov", 11}, {"Dec", 12}};
81 
82  const std::map<unsigned int, std::string> PowerConfig::fgMonthsMapReverse =
83  {{1, "Jan"}, {2, "Feb"}, {3, "Mar"}, {4, "Apr"}, {5, "May"}, {6, "Jun"},
84  {7, "Jul"}, {8, "Aug"}, {9, "Sep"}, {10, "Oct"}, {11, "Nov"}, {12, "Dec"}};
85 
86 }

, generated on Tue Sep 26 2023.