diff --git a/SimTracker/TrackHistory/interface/TrackClassifier.h b/SimTracker/TrackHistory/interface/TrackClassifier.h index 77b85204fd8d8..efac56b24d4f4 100644 --- a/SimTracker/TrackHistory/interface/TrackClassifier.h +++ b/SimTracker/TrackHistory/interface/TrackClassifier.h @@ -74,6 +74,7 @@ class TrackClassifier : public TrackCategories { edm::Handle mcInformation_; edm::ESHandle particleDataTable_; + edm::ESGetToken particleDataTableToken_; edm::ESHandle transientTrackBuilder_; edm::ESGetToken transientTrackBuilderToken_; diff --git a/SimTracker/TrackHistory/src/TrackClassifier.cc b/SimTracker/TrackHistory/src/TrackClassifier.cc index d98e433f62ca9..6b55f63f06357 100644 --- a/SimTracker/TrackHistory/src/TrackClassifier.cc +++ b/SimTracker/TrackHistory/src/TrackClassifier.cc @@ -19,6 +19,7 @@ TrackClassifier::TrackClassifier(edm::ParameterSet const &config, edm::ConsumesC tracer_(config, std::move(collector)), quality_(config, collector), magneticFieldToken_(collector.esConsumes()), + particleDataTableToken_(collector.esConsumes()), transientTrackBuilderToken_(collector.esConsumes()), tTopoHandToken_(collector.esConsumes()) { collector.consumes(hepMCLabel_); @@ -58,7 +59,7 @@ void TrackClassifier::newEvent(edm::Event const &event, edm::EventSetup const &s magneticField_ = setup.getHandle(magneticFieldToken_); // Get the partivle data table - setup.getData(particleDataTable_); + particleDataTable_ = setup.getHandle(particleDataTableToken_); // get the beam spot event.getByLabel(beamSpotLabel_, beamSpot_);