61 std::size_t
m =
tag.find(
"minus");
62 std::size_t
p =
tag.find(
"plus");
63 if (
m != std::string::npos)
65 if (
p != std::string::npos)
103 std::size_t thin =
tag.find(
"thin");
104 std::size_t thick =
tag.find(
"thick");
105 if (thin != std::string::npos)
107 if (thick != std::string::npos)
139 std::size_t
p = (
tag.find(
"layer") != std::string::npos) ?
tag.find(
"layer") :
tag.find(
"wheel");
140 if (
p != std::string::npos) {
141 std::size_t
start =
tag.find(
'_',
p + 1) + 1;
142 std::size_t stop =
tag.find(
'_',
start);
144 return atoi(plane.c_str());
154 std::vector<MonitorElement*>
found = std::vector<MonitorElement*>();
161 LogDebug(
"APVGainHelpers") <<
"sId: " << sId <<
" sPlane: " << sPlane <<
" sSide: " << sSide << std::endl;
163 while (it !=
histos.end()) {
165 int subdetectorThickness = (*it).getThickness();
173 (subdetectorThickness == 0 || subdetectorThickness == sThick);
176 found.emplace_back((*it).getMonitor());
177 LogDebug(
"APVGainHelpers") << det_id <<
" found: " <<
tag << std::endl;
190 std::vector<unsigned int> found_indices = std::vector<unsigned int>();
197 for (
auto& element : theMap) {
198 int subdetectorThickness = element.second.m_thickness;
206 (subdetectorThickness == 0 || subdetectorThickness == sThick);
209 found_indices.push_back(element.first);
212 return found_indices;
218 std::vector<std::pair<std::string, std::string>>
out;
222 constexpr
int countOfPlanes = 34;
224 int re = (allPlanes) ? countOfPlanes + VH.size() : VH.size();
236 constexpr
int TIBlayers = 4;
237 for (
int i = 1;
i <= TIBlayers;
i++) {
238 h_tag =
"TIB_layer_" + std::to_string(
i) + Tag;
241 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));
244 constexpr
int TOBlayers = 6;
245 for (
int i = 1;
i <= TOBlayers;
i++) {
246 h_tag =
"TOB_layer_" + std::to_string(
i) + Tag;
249 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));
252 constexpr
int TIDwheels = 3;
253 for (
int i = -TIDwheels;
i <= TIDwheels;
i++) {
257 h_tag =
"TIDminus_wheel_" + std::to_string(
i) + Tag;
259 h_tag =
"TIDplus_wheel_" + std::to_string(
i) + Tag;
262 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));
265 constexpr
int TECwheels = 9;
266 for (
int i = -TECwheels;
i <= TECwheels;
i++) {
270 h_tag =
"TECminus_wheel_" + std::to_string(
i) + Tag;
272 h_tag =
"TECplus_wheel_" + std::to_string(
i) + Tag;
275 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));
279 for (
unsigned int i = 0;
i < VH.size();
i++) {
283 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));