Skip to content

Commit

Permalink
Merge pull request #36535 from mmusich/warningMessageSkipping
Browse files Browse the repository at this point in the history
`CondFormats`: fix warning message about "skipping this put"
  • Loading branch information
cmsbuild authored Dec 17, 2021
2 parents 2b7e9b6 + c0fd7e8 commit a9f4483
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions CondFormats/SiPixelObjects/src/SiPixelDynamicInefficiency.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ bool SiPixelDynamicInefficiency::putPixelGeomFactor(const uint32_t& detid, doubl
std::map<unsigned int, double>::const_iterator id = m_PixelGeomFactors.find(detid);
if (id != m_PixelGeomFactors.end()) {
edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency PixelGeomFactor for DetID " << detid
<< " is already stored. Skippig this put" << std::endl;
<< " is already stored. Skipping this put" << std::endl;
return false;
} else
m_PixelGeomFactors[detid] = value;
Expand All @@ -29,7 +29,7 @@ bool SiPixelDynamicInefficiency::putColGeomFactor(const uint32_t& detid, double&
std::map<unsigned int, double>::const_iterator id = m_ColGeomFactors.find(detid);
if (id != m_ColGeomFactors.end()) {
edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency ColGeomFactor for DetID " << detid
<< " is already stored. Skippig this put" << std::endl;
<< " is already stored. Skipping this put" << std::endl;
return false;
} else
m_ColGeomFactors[detid] = value;
Expand All @@ -51,7 +51,7 @@ bool SiPixelDynamicInefficiency::putChipGeomFactor(const uint32_t& detid, double
std::map<unsigned int, double>::const_iterator id = m_ChipGeomFactors.find(detid);
if (id != m_ChipGeomFactors.end()) {
edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency ChipGeomFactor for DetID " << detid
<< " is already stored. Skippig this put" << std::endl;
<< " is already stored. Skipping this put" << std::endl;
return false;
} else
m_ChipGeomFactors[detid] = value;
Expand All @@ -73,7 +73,7 @@ bool SiPixelDynamicInefficiency::putPUFactor(const uint32_t& detid, std::vector<
std::map<unsigned int, std::vector<double> >::const_iterator id = m_PUFactors.find(detid);
if (id != m_PUFactors.end()) {
edm::LogError("SiPixelDynamicInefficiency") << "SiPixelDynamicInefficiency PUFactor for DetID " << detid
<< " is already stored. Skippig this put" << std::endl;
<< " is already stored. Skipping this put" << std::endl;
return false;
} else
m_PUFactors[detid] = v_value;
Expand Down Expand Up @@ -111,7 +111,7 @@ uint32_t SiPixelDynamicInefficiency::getDetIdmask(unsigned int& i) const {
bool SiPixelDynamicInefficiency::puttheInstLumiScaleFactor(double& theInstLumiScaleFactor) {
if (theInstLumiScaleFactor_ != -9999) {
edm::LogError("SiPixelDynamicInefficiency")
<< "SiPixelDynamicInefficiency theInstLumiScaleFactor is already stored! Skippig this put!" << std::endl;
<< "SiPixelDynamicInefficiency theInstLumiScaleFactor is already stored! Skipping this put!" << std::endl;
return false;
} else {
theInstLumiScaleFactor_ = theInstLumiScaleFactor;
Expand Down
2 changes: 1 addition & 1 deletion CondFormats/SiPixelObjects/src/SiPixelLorentzAngle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bool SiPixelLorentzAngle::putLorentzAngle(const uint32_t& detid, float& value) {
std::map<unsigned int, float>::const_iterator id = m_LA.find(detid);
if (id != m_LA.end()) {
edm::LogError("SiPixelLorentzAngle") << "SiPixelLorentzAngle for DetID " << detid
<< " is already stored. Skippig this put" << std::endl;
<< " is already stored. Skipping this put" << std::endl;
return false;
} else
m_LA[detid] = value;
Expand Down
2 changes: 1 addition & 1 deletion CondFormats/SiPixelObjects/src/SiPixelVCal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
bool SiPixelVCal::putSlopeAndOffset(const uint32_t& pixid, float& slopeValue, float& offsetValue) {
std::map<unsigned int, VCal>::const_iterator id = m_vcal.find(pixid);
if (id != m_vcal.end()) {
edm::LogError("SiPixelVCal") << "SiPixelVCal for pixid " << pixid << " is already stored. Skippig this put"
edm::LogError("SiPixelVCal") << "SiPixelVCal for pixid " << pixid << " is already stored. Skipping this put"
<< std::endl;
return false;
} else {
Expand Down
2 changes: 1 addition & 1 deletion CondFormats/SiStripObjects/src/SiStripApvGain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ bool SiStripApvGain::put(const uint32_t& DetId, Range input) {
RegistryIterator p = std::lower_bound(v_detids.begin(), v_detids.end(), DetId);
if (p != v_detids.end() && *p == DetId) {
edm::LogError("SiStripApvGain") << "[" << __PRETTY_FUNCTION__ << "] SiStripApvGain for DetID " << DetId
<< " is already stored. Skippig this put" << std::endl;
<< " is already stored. Skipping this put" << std::endl;
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ bool SiStripBackPlaneCorrection::putBackPlaneCorrection(const uint32_t& detid, f
std::map<unsigned int, float>::const_iterator id = m_BPC.find(detid);
if (id != m_BPC.end()) {
edm::LogError("SiStripBackPlaneCorrection")
<< "SiStripBackPlaneCorrection for DetID " << detid << " is already stored. Skippig this put" << std::endl;
<< "SiStripBackPlaneCorrection for DetID " << detid << " is already stored. Skipping this put" << std::endl;
return false;
} else
m_BPC[detid] = value;
Expand Down
2 changes: 1 addition & 1 deletion CondFormats/SiStripObjects/src/SiStripBadStrip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ bool SiStripBadStrip::put(const uint32_t& DetId, Range input) {
Registry::iterator p = std::lower_bound(indexes.begin(), indexes.end(), DetId, SiStripBadStrip::StrictWeakOrdering());
if (p != indexes.end() && p->detid == DetId) {
edm::LogError("SiStripBadStrip") << "[" << __PRETTY_FUNCTION__ << "] SiStripBadStrip for DetID " << DetId
<< " is already stored. Skippig this put" << std::endl;
<< " is already stored. Skipping this put" << std::endl;
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion CondFormats/SiStripObjects/src/SiStripLorentzAngle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ bool SiStripLorentzAngle::putLorentzAngle(const uint32_t& detid, float value) {
std::map<unsigned int, float>::const_iterator id = m_LA.find(detid);
if (id != m_LA.end()) {
edm::LogError("SiStripLorentzAngle") << "SiStripLorentzAngle for DetID " << detid
<< " is already stored. Skippig this put" << std::endl;
<< " is already stored. Skipping this put" << std::endl;
return false;
} else
m_LA[detid] = value;
Expand Down
2 changes: 1 addition & 1 deletion CondFormats/SiStripObjects/src/SiStripThreshold.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bool SiStripThreshold::put(const uint32_t& DetId, const InputVector& _vect) {
std::lower_bound(indexes.begin(), indexes.end(), DetId, SiStripThreshold::StrictWeakOrdering());
if (p != indexes.end() && p->detid == DetId) {
edm::LogError("SiStripThreshold") << "[" << __PRETTY_FUNCTION__ << "] SiStripThreshold for DetID " << DetId
<< " is already stored. Skippig this put" << std::endl;
<< " is already stored. Skipping this put" << std::endl;
return false;
}

Expand Down

0 comments on commit a9f4483

Please sign in to comment.