7 std::map<unsigned int, VCal>::const_iterator
id =
m_vcal.find(pixid);
9 edm::LogError(
"SiPixelVCal") <<
"SiPixelVCal for pixid " << pixid <<
" is already stored. Skippig 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;
61 std::inserter(offsets, offsets.end()),
62 [](std::pair<uint32_t, SiPixelVCal::VCal> vcalentry) -> std::pair<uint32_t, float> {
63 return std::make_pair(vcalentry.first, vcalentry.second.offset);
Log< level::Error, false > LogError
const std::map< unsigned int, VCal > & getSlopeAndOffset() const
float getOffset(const uint32_t &) const
float getSlope(const uint32_t &) const
mapToDetId getAllSlopes() const
std::map< uint32_t, float > mapToDetId
std::map< unsigned int, VCal > m_vcal
mapToDetId getAllOffsets() const
void putSlopeAndOffset(std::map< unsigned int, VCal > &vcal)