60 std::size_t
m =
tag.find(
"minus");
61 std::size_t
p =
tag.find(
"plus");
62 if (
m != std::string::npos)
64 if (
p != std::string::npos)
96 std::size_t
p = (
tag.find(
"layer") != std::string::npos) ?
tag.find(
"layer") :
tag.find(
"wheel");
97 if (
p != std::string::npos) {
98 std::size_t
start =
tag.find(
"_",
p + 1) + 1;
99 std::size_t stop =
tag.find(
'_',
start);
101 return atoi(plane.c_str());
111 std::vector<MonitorElement*>
found = std::vector<MonitorElement*>();
117 LogDebug(
"APVGainHelpers") <<
"sId: " << sId <<
" sPlane: " << sPlane <<
" sSide: " << sSide << std::endl;
119 while (it !=
histos.end()) {
130 found.emplace_back((*it).getMonitor());
131 LogDebug(
"APVGainHelpers") << det_id <<
" found: " <<
tag << std::endl;
144 std::vector<unsigned int> found_indices = std::vector<unsigned int>();
150 for (
auto& element : theMap) {
160 found_indices.push_back(element.first);
163 return found_indices;
169 std::vector<std::pair<std::string, std::string>>
out;
173 constexpr
int countOfPlanes = 34;
175 int re = (allPlanes) ? countOfPlanes + VH.size() : VH.size();
187 constexpr
int TIBlayers = 4;
188 for (
int i = 1;
i <= TIBlayers;
i++) {
189 h_tag =
"TIB_layer_" + std::to_string(
i) + Tag;
192 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));
195 constexpr
int TOBlayers = 6;
196 for (
int i = 1;
i <= TOBlayers;
i++) {
197 h_tag =
"TOB_layer_" + std::to_string(
i) + Tag;
200 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));
203 constexpr
int TIDwheels = 3;
204 for (
int i = -TIDwheels;
i <= TIDwheels;
i++) {
208 h_tag =
"TIDminus_wheel_" + std::to_string(
i) + Tag;
210 h_tag =
"TIDplus_wheel_" + std::to_string(
i) + Tag;
213 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));
216 constexpr
int TECwheels = 9;
217 for (
int i = -TECwheels;
i <= TECwheels;
i++) {
221 h_tag =
"TECminus_wheel_" + std::to_string(
i) + Tag;
223 h_tag =
"TECplus_wheel_" + std::to_string(
i) + Tag;
226 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));
230 for (
unsigned int i = 0;
i < VH.size();
i++) {
234 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));