diff --git a/Geometry/VeryForwardGeometryBuilder/plugins/CTPPSGeometryESModule.cc b/Geometry/VeryForwardGeometryBuilder/plugins/CTPPSGeometryESModule.cc index 857d8ad0ce905..8f8b959eda4f1 100644 --- a/Geometry/VeryForwardGeometryBuilder/plugins/CTPPSGeometryESModule.cc +++ b/Geometry/VeryForwardGeometryBuilder/plugins/CTPPSGeometryESModule.cc @@ -85,7 +85,9 @@ class CTPPSGeometryESModule : public edm::ESProducer { edm::ESGetToken dbToken_; const bool fromPreprocessedDB_, fromDD4hep_; + edm::ESGetToken idealGDToken2_; edm::ESGetToken idealGDToken_; + edm::ESGetToken idealDBGDToken2_; edm::ESGetToken idealDBGDToken_; edm::ESGetToken realAlignmentToken_; edm::ESGetToken misAlignmentToken_; @@ -110,6 +112,7 @@ CTPPSGeometryESModule::CTPPSGeometryESModule(const edm::ParameterSet& iConfig) if (buildMisalignedGeometry_) { auto c2 = setWhatProduced(this, &CTPPSGeometryESModule::produceMisalignedGDFromPreprocessedDB); + idealDBGDToken2_ = c2.consumesFrom(edm::ESInputTag()); misAlignmentToken_ = c2.consumesFrom(edm::ESInputTag()); } @@ -123,6 +126,7 @@ CTPPSGeometryESModule::CTPPSGeometryESModule(const edm::ParameterSet& iConfig) if (buildMisalignedGeometry_) { auto c2 = setWhatProduced(this, &CTPPSGeometryESModule::produceMisalignedGD); + idealGDToken2_ = c2.consumesFrom(edm::ESInputTag()); misAlignmentToken_ = c2.consumesFrom(edm::ESInputTag()); } @@ -137,6 +141,7 @@ CTPPSGeometryESModule::CTPPSGeometryESModule(const edm::ParameterSet& iConfig) if (buildMisalignedGeometry_) { auto c2 = setWhatProduced(this, &CTPPSGeometryESModule::produceMisalignedGD); + idealGDToken2_ = c2.consumesFrom(edm::ESInputTag()); misAlignmentToken_ = c2.consumesFrom(edm::ESInputTag()); } @@ -239,7 +244,7 @@ std::unique_ptr CTPPSGeometryESModule::produceMisalignedGDFromPrepr const VeryForwardMisalignedGeometryRecord& iRecord) { return produceGD(iRecord.getRecord(), iRecord.tryToGetRecord(), - idealDBGDToken_, + idealDBGDToken2_, misAlignmentToken_, "CTPPSGeometryESModule::produceMisalignedGDFromPreprocessedDB"); } @@ -260,7 +265,7 @@ std::unique_ptr CTPPSGeometryESModule::produceMisalignedGD( const VeryForwardMisalignedGeometryRecord& iRecord) { return produceGD(iRecord.getRecord(), iRecord.tryToGetRecord(), - idealGDToken_, + idealGDToken2_, misAlignmentToken_, "CTPPSGeometryESModule::produceMisalignedGD"); }