13 return m_beta[0].hasBetaLIP;
56 return std::numeric_limits<double>::max();
65 return std::numeric_limits<double>::max();
71 float x =
m_beta[0].Pos[0];
72 float y =
m_beta[0].Pos[1];
73 constexpr
int grid_side_length = 11;
74 constexpr
int n_tiles = grid_side_length * grid_side_length;
75 constexpr
double tile_width = 0.1 + 11.5;
77 if (std::fabs(x) < tile_width * 1.5 && std::fabs(y) < tile_width * 1.5)
80 int nx = int(x / tile_width + 5.5);
81 int ny = int(y / tile_width + 5.5);
82 int t = ny * grid_side_length + nx;
83 return t > n_tiles ? -1 : t;
91 float x =
m_beta[0].Pos[0];
92 float y =
m_beta[0].Pos[1];
94 static constexpr
int nbadtiles = 7;
95 static constexpr std::array<int, nbadtiles> kbadtile = {3, 7, 12, 20, 87, 100, 108};
99 static constexpr
float cut_aerogelexternalborder = 3422.25;
100 static constexpr std::array<float, 2> cut_aerogelborder = {28.5, 29.5};
104 static constexpr std::array<float, 2> cut_aerogel_nafborder = {17., 19.};
108 static constexpr
int npos = 9;
109 static constexpr
float xpos[npos] = { -2., 20., -29., 30, 16, 30., -30., -10., 12.};
110 static constexpr
float xw[npos] = { 2., 2., 1., 2., 2., 2., 2., 2., 2.};
111 static constexpr
float ypos[npos] = {-60., -42., -18., 16, 22, 38., 40., 56., 56.};
112 static constexpr
float yw[npos] = { 2., 2., 2., 2., 2., 1.5, 2., 1.5, 2.};
115 if (geom == RingGeom::Borders) {
117 if (std::max(std::fabs(x), std::fabs(y)) > cut_aerogel_nafborder[0])
120 if (std::max(std::fabs(x), std::fabs(y)) < cut_aerogel_nafborder[1])
122 if (x * x + y * y > cut_aerogelexternalborder)
125 }
else if (geom == RingGeom::BadAglTiles) {
126 for (
int kbad = 0; kbad < nbadtiles; kbad++) {
130 }
else if (geom == RingGeom::AglTilesEdge) {
131 if (std::max(std::fabs(x), std::fabs(y)) > cut_aerogelborder[0] &&
132 std::max(std::fabs(x), std::fabs(y)) < cut_aerogelborder[1])
134 }
else if (geom == RingGeom::BadAglRegions) {
135 for (
int i = 0; i < npos; i++) {
136 bool isx = (x > (xpos[i]) && x < (xpos[i] + xw[i]));
137 bool isy = (y > (ypos[i]) && y < (ypos[i] + yw[i]));