diff --git a/RecoTauTag/HLTProducers/src/TauRegionalPixelSeedGenerator.h b/RecoTauTag/HLTProducers/src/TauRegionalPixelSeedGenerator.h index a5de85fd5bf43..b5953b439c09c 100644 --- a/RecoTauTag/HLTProducers/src/TauRegionalPixelSeedGenerator.h +++ b/RecoTauTag/HLTProducers/src/TauRegionalPixelSeedGenerator.h @@ -54,7 +54,16 @@ class TauRegionalPixelSeedGenerator : public TrackingRegionProducer { } m_howToUseMeasurementTracker = RectangularEtaPhiTrackingRegion::stringToUseMeasurementTracker(regionPSet.getParameter("howToUseMeasurementTracker")); if(m_howToUseMeasurementTracker != RectangularEtaPhiTrackingRegion::UseMeasurementTracker::kNever) { - token_measurementTracker = iC.consumes(regionPSet.getParameter("measurementTrackerName")); + // temporary until everything migrated to InputTag + edm::InputTag tag; + if(regionPSet.existsAs("measurementTrackerName")) { + tag = regionPSet.getParameter("measurementTrackerName"); + } + else { + tag = edm::InputTag(regionPSet.getParameter("measurementTrackerName")); + } + + token_measurementTracker = iC.consumes(tag); } } @@ -73,7 +82,10 @@ class TauRegionalPixelSeedGenerator : public TrackingRegionProducer { desc.add("searchOpt", false); desc.add("howToUseMeasurementTracker", "ForSiStrips"); - desc.add("measurementTrackerName", edm::InputTag("MeasurementTrackerEvent")); + + // allow both InputTag and string for the moment, use InputTag as the default + desc.addNode(edm::ParameterDescription("measurementTrackerName", edm::InputTag("MeasurementTrackerEvent"), true) xor + edm::ParameterDescription("measurementTrackerName", "MeasurementTrackerEvent", true)); // Only for backwards-compatibility edm::ParameterSetDescription descRegion;