112 std::array<std::string, 12> barrelNames = {
113 {
"TIB L2",
"TIB L1",
"TIB L4",
"TIB L3",
"TOB L2",
"TOB L1",
"TOB L4",
" TOB L3",
"TOB L6",
"TOB L5"}};
114 std::array<std::string, 4> endcapNames = {{
"TID",
"TEC",
"TID",
"TEC"}};
115 std::array<std::string, 24> disknumbering = {{
"+1",
"+2",
"+3",
"+1",
"+2",
"+3",
"+4",
"+5",
116 "+6",
"+7",
"+8",
"+9",
"-1",
"-2",
"-3",
"-1",
117 "-2",
"-3",
"-4",
"-5",
"-6",
"-7",
"-8",
"-9"}};
119 static constexpr std::array<float, 12> b_coordx = {
120 {0.1, 0.1, 0.26, 0.26, 0.41, 0.41, 0.56, 0.56, 0.725, 0.725, 0.05, 0.17}};
121 static constexpr std::array<float, 12> b_coordy = {
122 {0.70, 0.45, 0.70, 0.45, 0.70, 0.46, 0.70, 0.46, 0.70, 0.46, 0.85, 0.85}};
124 static constexpr std::array<float, 4> e_coordx = {{0.01, 0.21, 0.01, 0.21}};
125 static constexpr std::array<float, 4> e_coordy = {{0.89, 0.89, 0.17, 0.17}};
127 static constexpr std::array<float, 24> n_coordx = {{0.01, 0.087, 0.165, 0.227, 0.305, 0.383, 0.461, 0.539,
128 0.616, 0.694, 0.772, 0.850, 0.01, 0.087, 0.165, 0.227,
129 0.305, 0.383, 0.461, 0.539, 0.617, 0.695, 0.773, 0.851}};
131 static constexpr std::array<float, 24> n_coordy = {{0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85, 0.85,
132 0.85, 0.85, 0.85, 0.85, 0.13, 0.13, 0.13, 0.13,
133 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13}};
136 for (
const auto&
name : barrelNames | boost::adaptors::indexed(0)) {
139 ltx.SetTextSize(0.035);
140 ltx.SetTextAlign(11);
141 ltx.DrawLatexNDC(b_coordx[
name.index()], b_coordy[
name.index()],
name.value().c_str());
144 for (
const auto&
name : endcapNames | boost::adaptors::indexed(0)) {
147 ltx.SetTextSize(0.05);
148 ltx.SetTextAlign(11);
149 ltx.DrawLatexNDC(e_coordx[
name.index()], e_coordy[
name.index()],
name.value().c_str());
152 for (
const auto&
name : disknumbering | boost::adaptors::indexed(0)) {
155 ltx.SetTextSize(0.035);
156 ltx.SetTextAlign(11);
157 ltx.DrawLatexNDC(n_coordx[
name.index()], n_coordy[
name.index()],
name.value().c_str());
162 ltx.SetTextSize(0.045);
163 ltx.SetTextAlign(11);
164 ltx.DrawLatexNDC(gPad->GetLeftMargin(), 1 - gPad->GetTopMargin() + 0.03,
m_mapTitle.c_str());
167 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)