#include <SiPixelVCal.h>
|
template<class Archive > |
void | serialize (Archive &ar, const unsigned int version) |
|
Definition at line 9 of file SiPixelVCal.h.
◆ mapToDetId
◆ SiPixelVCal()
SiPixelVCal::SiPixelVCal |
( |
| ) |
|
|
inline |
◆ ~SiPixelVCal()
SiPixelVCal::~SiPixelVCal |
( |
| ) |
|
|
inline |
◆ getAllOffsets()
◆ getAllSlopes()
Definition at line 46 of file SiPixelVCal.cc.
References m_vcal, and HcalDetIdTransform::transform().
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);
std::map< unsigned int, VCal > m_vcal
◆ getOffset()
float SiPixelVCal::getOffset |
( |
const uint32_t & |
pixid | ) |
const |
Definition at line 37 of file SiPixelVCal.cc.
References l1ctLayer2EG_cff::id, and m_vcal.
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;
std::map< unsigned int, VCal > m_vcal
◆ getSlope()
float SiPixelVCal::getSlope |
( |
const uint32_t & |
pixid | ) |
const |
Definition at line 28 of file SiPixelVCal.cc.
References l1ctLayer2EG_cff::id, and m_vcal.
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;
std::map< unsigned int, VCal > m_vcal
◆ getSlopeAndOffset() [1/2]
const std::map<unsigned int, VCal>& SiPixelVCal::getSlopeAndOffset |
( |
| ) |
const |
|
inline |
◆ getSlopeAndOffset() [2/2]
◆ putSlopeAndOffset() [1/2]
void SiPixelVCal::putSlopeAndOffset |
( |
std::map< unsigned int, VCal > & |
vcal | ) |
|
|
inline |
◆ putSlopeAndOffset() [2/2]
bool SiPixelVCal::putSlopeAndOffset |
( |
const uint32_t & |
pixid, |
|
|
float & |
slopeValue, |
|
|
float & |
offsetValue |
|
) |
| |
Definition at line 6 of file SiPixelVCal.cc.
References m_vcal.
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};
Log< level::Error, false > LogError
std::map< unsigned int, VCal > m_vcal
◆ serialize()
template<class Archive >
void SiPixelVCal::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
private |
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
◆ cond::serialization::access
template<typename CondSerializationT , typename Enabled >
◆ m_vcal
std::map<unsigned int, VCal> SiPixelVCal::m_vcal |
|
private |