Skip to content

Commit a8d271a

Browse files
committed
Revert some changes that fail assertion
1 parent 1370641 commit a8d271a

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
lines changed

CalibCalorimetry/CaloTPG/plugins/CaloTPGTranscoderULUTs.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ CaloTPGTranscoderULUTs::ReturnType CaloTPGTranscoderULUTs::produce(const CaloTPG
155155

156156
const auto& lutMetadata = iRecord.get(lutMetadataToken);
157157
const auto& theTrigTowerGeometry = iRecord.get(theTrigTowerGeometryToken);
158-
const auto& topo = iRecord.get(topoToken);
158+
const auto& topoRecord = iRecord.getRecord<HcalLutMetadataRcd>();
159+
const auto& topo = topoRecord.get(topoToken);
159160

160161
HcalLutMetadata fullLut{lutMetadata};
161162
fullLut.setTopo(&topo);

CalibCalorimetry/HcalTPGEventSetup/src/HcalTPGCoderULUT.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ HcalTPGCoderULUT::ReturnType HcalTPGCoderULUT::produce(const HcalTPGRecord& iRec
160160
auto host = holder_.makeOrGet([]() { return new HostType; });
161161

162162
const auto& topo = iRecord.get(topoToken_);
163-
const auto& delay = iRecord.get(delayToken_);
163+
const auto& delayRcd = iRecord.getRecord<HcalDbRecord>();
164+
const auto& delay = delayRcd.get(delayToken_);
164165
if (read_Ascii_ || read_XML_) {
165166
buildCoder(&topo, &delay, host.get());
166167
} else {

CalibTracker/SiPhase2TrackerESProducers/plugins/SiPhase2OuterTrackerFakeLorentzAngleESSource.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ namespace fakeOTLA {
6969

7070
std::unique_ptr<SiPhase2OuterTrackerLorentzAngle> SiPhase2OuterTrackerFakeLorentzAngleESSource::produceOTLA(
7171
const SiPhase2OuterTrackerLorentzAngleRcd& rcd) {
72-
const auto& geomDet = rcd.get(m_geomDetToken);
72+
const auto& geomDet = rcd.getRecord<TrackerTopologyRcd>().get(m_geomDetToken);
7373
return fakeOTLA::produceRecord<SiPhase2OuterTrackerLorentzAngle>(LAvalue_, geomDet);
7474
}
7575

7676
std::unique_ptr<SiPhase2OuterTrackerLorentzAngle> SiPhase2OuterTrackerFakeLorentzAngleESSource::produceOTSimLA(
7777
const SiPhase2OuterTrackerLorentzAngleSimRcd& rcd) {
78-
const auto& geomDet = rcd.get(m_geomDetToken);
78+
const auto& geomDet = rcd.getRecord<TrackerTopologyRcd>().get(m_geomDetToken);
7979
return fakeOTLA::produceRecord<SiPhase2OuterTrackerLorentzAngle>(LAvalue_, geomDet);
8080
}
8181

CalibTracker/SiStripESProducers/plugins/fake/SiStripBackPlaneCorrectionFakeESSource.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ SiStripBackPlaneCorrectionFakeESSource::ReturnType SiStripBackPlaneCorrectionFak
6565
const SiStripBackPlaneCorrectionRcd& iRecord) {
6666
using namespace edm::es;
6767

68-
const auto& geomDet = iRecord.get(m_geomDetToken);
68+
const auto& geomDetRcd = iRecord.getRecord<TrackerTopologyRcd>();
69+
const auto& geomDet = geomDetRcd.get(m_geomDetToken);
6970
const auto& tTopo = iRecord.get(m_tTopoToken);
7071

7172
auto backPlaneCorrection = std::make_unique<SiStripBackPlaneCorrection>();

CalibTracker/SiStripESProducers/plugins/fake/SiStripHashedDetIdFakeESSource.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ std::unique_ptr<SiStripHashedDetId> SiStripHashedDetIdFakeESSource::produce(cons
3131
edm::LogVerbatim("HashedDetId") << "[SiStripHashedDetIdFakeESSource::" << __func__ << "]"
3232
<< " Building \"fake\" hashed DetId map from IdealGeometry";
3333

34-
const auto& geomDet = record.get(geomDetToken_);
34+
const auto& geomDetRcd = record.getRecord<TrackerDigiGeometryRecord>();
35+
const auto& geomDet = geomDetRcd.get(geomDetToken_);
3536

3637
const std::vector<uint32_t> dets = TrackerGeometryUtils::getSiStripDetIds(geomDet);
3738
edm::LogVerbatim("HashedDetId") << "[SiStripHashedDetIdFakeESSource::" << __func__ << "]"

CalibTracker/SiStripESProducers/plugins/fake/SiStripLorentzAngleFakeESSource.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ SiStripLorentzAngleFakeESSource::ReturnType SiStripLorentzAngleFakeESSource::pro
183183
const SiStripLorentzAngleRcd& iRecord) {
184184
using namespace edm::es;
185185

186-
const auto& geomDet = iRecord.get(m_geomDetToken);
186+
const auto& geomDetRcd = iRecord.getRecord<TrackerTopologyRcd>();
187+
const auto& geomDet = geomDetRcd.get(m_geomDetToken);
187188
const auto& tTopo = iRecord.get(m_tTopoToken);
188189

189190
auto lorentzAngle = std::make_unique<SiStripLorentzAngle>();

RecoLocalCalo/HcalRecAlgos/plugins/HcalChannelPropertiesEP.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class HcalChannelPropertiesEP : public edm::ESProducer {
7474
const HcalDbService& cond = dbRecord.get(condToken_);
7575
const HcalRecoParams& params = rcd.get(myParamsToken_);
7676
const HcalSeverityLevelComputer& severity = rcd.get(sevToken_);
77-
const HcalChannelQuality& qual = rcd.get(qualToken_);
77+
const HcalChannelQuality& qual = dbRecord.get(qualToken_);
7878
const CaloGeometry& geom = rcd.get(geomToken_);
7979

8080
// HcalTopology is taken from "params" created by the "produce1" method

0 commit comments

Comments
 (0)