12 {
13
14 static constexpr std::array<int, 10> i1 = {0, 0, 3, 2, 9, 12, 10, 9, 0, 2};
15 static constexpr std::array<int, 10> i2 = {2, 1, 12, 12, 13, 13, 13, 13, 1, 4};
16 static constexpr double xnorm = 14.1591;
17
18#ifndef LARG4_STAND_ALONE
20#endif
21
22 for (
int iregion = 0; iregion <
MAX_REGIONS; ++iregion) {
23
24
25 for (int ifold = i1[iregion]; ifold <= i2[iregion]; ++ifold) {
26
27 std::string
filename = std::format(
"fold{}_region{}.map", ifold, iregion);
28
29 std::string fileLocation =
30#ifdef LARG4_STAND_ALONE
31 std::format("{}/{}", m_directory, filename);
32#else
33 std::format("{}/{}", larLocation, filename);
34#endif
35
36 auto cm = std::make_unique<CurrMap>(fileLocation, xnorm);
37
38
40 m_xmin[ifold] =
cm->GetXmin() + 0.1f;
41 m_xmax[ifold] =
cm->GetXmax() - 0.1f;
42 m_ymin[ifold] =
cm->GetYmin() + 0.1f;
43 m_ymax[ifold] =
cm->GetYmax() - 0.1f;
44 }
46 }
47
48
49 for (int istr = 1; istr <= 2; ++istr) {
50 int ifold = 20 + istr;
51
52 std::string
filename = std::format(
"straight{}_region{}.map", istr, iregion);
53
54 std::string fileLocation =
55#ifdef LARG4_STAND_ALONE
56 std::format("{}/{}", m_directory, filename);
57#else
58 std::format("{}/{}", larLocation, filename);
59#endif
60 m_fastMap[ifold][iregion] = std::make_unique<CurrMap>(fileLocation, xnorm);
61 }
62 }
63}
static constexpr int N_MAX_VEC
std::array< float, N_MAX_VEC > m_ymin
std::array< float, N_MAX_VEC > m_ymax
std::array< float, N_MAX_VEC > m_xmax
static constexpr int MAX_REGIONS
std::array< std::array< std::unique_ptr< CurrMap >, MAX_REGIONS >, MAX_FOLDS > m_fastMap
std::array< float, N_MAX_VEC > m_xmin
static std::string find_directory(const std::string &logical_file_name, const std::string &search_path)