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;
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;
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;
224 int re = (allPlanes) ? countOfPlanes + VH.size() : VH.size();
237 for (
int i = 1;
i <= TIBlayers;
i++) {
241 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));
245 for (
int i = 1;
i <= TOBlayers;
i++) {
249 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));
253 for (
int i = -TIDwheels;
i <= TIDwheels;
i++) {
262 out.push_back(std::pair<std::string, std::string>(h_tag, h_tit));
266 for (
int i = -TECwheels;
i <= TECwheels;
i++) {
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));
static constexpr auto TEC
unsigned int tobLayer(const DetId &id) const
std::vector< unsigned int > FetchIndices(std::map< unsigned int, APVloc >, uint32_t, const TrackerTopology *topo=nullptr)
unsigned int tidSide(const DetId &id) const
SiStripModuleGeometry moduleGeometry() const
unsigned int tidWheel(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
int subdetectorPlane(uint32_t, const TrackerTopology *)
def replace(string, replacements)
unsigned int side(const DetId &id) const
static std::string to_string(const XMLCh *ch)
unsigned int tecSide(const DetId &id) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static constexpr auto TOB
static constexpr auto TOB
Detector identifier class for the strip tracker.
static constexpr auto TIB
std::vector< MonitorElement * > FetchMonitor(std::vector< APVmon >, uint32_t, const TrackerTopology *topo=nullptr)
int subdetectorSide(uint32_t, const TrackerTopology *)
static constexpr auto TIB
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
unsigned int tibLayer(const DetId &id) const
std::vector< std::pair< std::string, std::string > > monHnames(std::vector< std::string >, bool, const char *tag)
static constexpr auto TID
int subdetectorId(uint32_t)