7 std::map<unsigned int, VCal>::const_iterator
id =
m_vcal.find(pixid);
9 edm::LogError(
"SiPixelVCal") <<
"SiPixelVCal for pixid " << pixid <<
" is already stored. Skipping this put" 13 m_vcal[pixid] = {slopeValue, offsetValue};
19 std::map<unsigned int, VCal>::const_iterator
id =
m_vcal.find(pixid);
23 edm::LogError(
"SiPixelVCal") <<
"SiPixelVCal for pixid " << pixid <<
" is not stored" << std::endl;
29 std::map<unsigned int, VCal>::const_iterator
id =
m_vcal.find(pixid);
31 return id->second.slope;
33 edm::LogError(
"SiPixelVCal") <<
"SiPixelVCal slope for pixid " << pixid <<
" is not stored" << std::endl;
38 std::map<unsigned int, VCal>::const_iterator
id =
m_vcal.find(pixid);
40 return id->second.offset;
42 edm::LogError(
"SiPixelVCal") <<
"SiPixelVCal offset for pixid " << pixid <<
" is not stored" << std::endl;
47 std::map<uint32_t, float> slopes;
50 std::inserter(slopes, slopes.end()),
51 [](std::pair<uint32_t, SiPixelVCal::VCal> vcalentry) -> std::pair<uint32_t, float> {
52 return std::make_pair(vcalentry.first, vcalentry.second.slope);
58 std::map<uint32_t, float>
offsets;
62 [](std::pair<uint32_t, SiPixelVCal::VCal> vcalentry) -> std::pair<uint32_t, float> {
63 return std::make_pair(vcalentry.first, vcalentry.second.offset);
float getSlope(const uint32_t &) const
Log< level::Error, false > LogError
mapToDetId getAllOffsets() const
mapToDetId getAllSlopes() const
std::map< uint32_t, float > mapToDetId
float getOffset(const uint32_t &) const
std::map< unsigned int, VCal > m_vcal
const std::map< unsigned int, VCal > & getSlopeAndOffset() const
void putSlopeAndOffset(std::map< unsigned int, VCal > &vcal)