113 std::array<std::string, 12> barrelNames = {
114 {
"TIB L2",
"TIB L1",
"TIB L4",
"TIB L3",
"TOB L2",
"TOB L1",
"TOB L4",
" TOB L3",
"TOB L6",
"TOB L5"}};
115 std::array<std::string, 4> endcapNames = {{
"TID",
"TEC",
"TID",
"TEC"}};
116 std::array<std::string, 24> disknumbering = {{
"+1",
"+2",
"+3",
"+1",
"+2",
"+3",
"+4",
"+5",
117 "+6",
"+7",
"+8",
"+9",
"-1",
"-2",
"-3",
"-1",
118 "-2",
"-3",
"-4",
"-5",
"-6",
"-7",
"-8",
"-9"}};
120 static constexpr std::array<float, 12> b_coordx = {
121 {0.1, 0.1, 0.26, 0.26, 0.41, 0.41, 0.56, 0.56, 0.725, 0.725, 0.05, 0.17}};
122 static constexpr std::array<float, 12> b_coordy = {
123 {0.70, 0.45, 0.70, 0.45, 0.70, 0.46, 0.70, 0.46, 0.70, 0.46, 0.85, 0.85}};
125 static constexpr std::array<float, 4> e_coordx = {{0.01, 0.21, 0.01, 0.21}};
126 static constexpr std::array<float, 4> e_coordy = {{0.89, 0.89, 0.17, 0.17}};
128 static constexpr std::array<float, 24> n_coordx = {{0.01, 0.087, 0.165, 0.227, 0.305, 0.383, 0.461, 0.539,
129 0.616, 0.694, 0.772, 0.850, 0.01, 0.087, 0.165, 0.227,
130 0.305, 0.383, 0.461, 0.539, 0.617, 0.695, 0.773, 0.851}};
132 static constexpr std::array<float, 24> n_coordy = {{0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85,
133 0.85, 0.85, 0.85, 0.85, 0.13, 0.13, 0.13, 0.13,
134 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13}};
137 for (
const auto&
name : barrelNames | boost::adaptors::indexed(0)) {
140 ltx.SetTextSize(0.035);
141 ltx.SetTextAlign(11);
142 ltx.DrawLatexNDC(b_coordx[
name.index()], b_coordy[
name.index()],
name.value().c_str());
145 for (
const auto&
name : endcapNames | boost::adaptors::indexed(0)) {
148 ltx.SetTextSize(0.05);
149 ltx.SetTextAlign(11);
150 ltx.DrawLatexNDC(e_coordx[
name.index()], e_coordy[
name.index()],
name.value().c_str());
153 for (
const auto&
name : disknumbering | boost::adaptors::indexed(0)) {
156 ltx.SetTextSize(0.035);
157 ltx.SetTextAlign(11);
158 ltx.DrawLatexNDC(n_coordx[
name.index()], n_coordy[
name.index()],
name.value().c_str());
163 ltx.SetTextSize(0.045);
164 ltx.SetTextAlign(11);
165 ltx.DrawLatexNDC(gPad->GetLeftMargin(), 1 - gPad->GetTopMargin() + 0.03,
m_mapTitle.c_str());
168 drawArrows(0.09, 0.23, 0.24, 0.45,
"#phi",
"z");
void drawArrows(const float x_X1, const float x_X2, const float x_Y1, const float y_Y2, const char *x_label, const char *y_label)