diff --git a/RecoPPS/Local/plugins/CTPPSPixelLocalTrackProducer.cc b/RecoPPS/Local/plugins/CTPPSPixelLocalTrackProducer.cc index 7689b76df685b..f7d44c9417703 100644 --- a/RecoPPS/Local/plugins/CTPPSPixelLocalTrackProducer.cc +++ b/RecoPPS/Local/plugins/CTPPSPixelLocalTrackProducer.cc @@ -90,7 +90,6 @@ CTPPSPixelLocalTrackProducer::CTPPSPixelLocalTrackProducer(const edm::ParameterS numberOfPlanesPerPot_(parameterSet.getParameter("numberOfPlanesPerPot")) { std::string patternFinderAlgorithm = parameterSet.getParameter("patternFinderAlgorithm"); std::string trackFitterAlgorithm = parameterSet.getParameter("trackFinderAlgorithm"); - std::vector listOfAllPlanes_; // pattern algorithm selector if (patternFinderAlgorithm == "RPixRoadFinder") { @@ -100,8 +99,9 @@ CTPPSPixelLocalTrackProducer::CTPPSPixelLocalTrackProducer(const edm::ParameterS << "Pattern finder algorithm" << patternFinderAlgorithm << " does not exist"; } + std::vector listOfAllPlanes; for (uint32_t i = 0; i < numberOfPlanesPerPot_; ++i) { - listOfAllPlanes_.push_back(i); + listOfAllPlanes.push_back(i); } //tracking algorithm selector @@ -111,7 +111,7 @@ CTPPSPixelLocalTrackProducer::CTPPSPixelLocalTrackProducer(const edm::ParameterS throw cms::Exception("CTPPSPixelLocalTrackProducer") << "Tracking fitter algorithm" << trackFitterAlgorithm << " does not exist"; } - trackFinder_->setListOfPlanes(listOfAllPlanes_); + trackFinder_->setListOfPlanes(listOfAllPlanes); trackFinder_->initialize(); produces>(); }