5 std::map<unsigned int, VCal>::const_iterator
id =
m_vcal.find(pixid);
7 edm::LogError(
"SiPixelVCal") <<
"SiPixelVCal for pixid " << pixid <<
" is already stored. Skippig this put"
11 m_vcal[pixid] = {slopeValue, offsetValue};
17 std::map<unsigned int, VCal>::const_iterator
id =
m_vcal.find(pixid);
21 edm::LogError(
"SiPixelVCal") <<
"SiPixelVCal for pixid " << pixid <<
" is not stored" << std::endl;
27 std::map<unsigned int, VCal>::const_iterator
id =
m_vcal.find(pixid);
29 return id->second.slope;
31 edm::LogError(
"SiPixelVCal") <<
"SiPixelVCal slope for pixid " << pixid <<
" is not stored" << std::endl;
36 std::map<unsigned int, VCal>::const_iterator
id =
m_vcal.find(pixid);
38 return id->second.offset;
40 edm::LogError(
"SiPixelVCal") <<
"SiPixelVCal offset for pixid " << pixid <<
" is not stored" << std::endl;
45 std::map<uint32_t, float> slopes;
48 std::inserter(slopes, slopes.end()),
49 [](std::pair<uint32_t, SiPixelVCal::VCal> vcalentry) -> std::pair<uint32_t, float> {
50 return std::make_pair(vcalentry.first, vcalentry.second.slope);
56 std::map<uint32_t, float>
offsets;
60 [](std::pair<uint32_t, SiPixelVCal::VCal> vcalentry) -> std::pair<uint32_t, float> {
61 return std::make_pair(vcalentry.first, vcalentry.second.offset);