Skip to content

Commit

Permalink
Migrate PF modules to esConsumes
Browse files Browse the repository at this point in the history
  • Loading branch information
marksan87 committed May 13, 2021
1 parent e21c882 commit 2838123
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Expand Up @@ -58,7 +58,7 @@ class PFHCALDenseIdNavigator : public PFRecHitNavigatorBase {
vecHcal.insert(vecHcal.end(), vecDetIds.begin(), vecDetIds.end());
}
vDenseIdHcal.reserve(vecHcal.size());
for (auto hDetId : vecHcal) {
for (auto hDetId : vecHcal) {
vDenseIdHcal.push_back(topology_.get()->detId2denseId(hDetId));
}
std::sort(vDenseIdHcal.begin(), vDenseIdHcal.end());
Expand Down
Expand Up @@ -4,7 +4,6 @@

#include <memory>


#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "Geometry/CaloGeometry/interface/CaloGeometry.h"
#include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h"
Expand Down
Expand Up @@ -13,8 +13,7 @@ class PFClusterFromHGCalTrackster : public InitialClusteringStepBase {
pid_threshold_ = conf.getParameter<double>("pid_threshold");
filter_on_categories_ = conf.getParameter<std::vector<int> >("filter_on_categories");
tracksterToken_ = cc.consumes<std::vector<ticl::Trackster> >(conf.getParameter<edm::InputTag>("tracksterSrc"));
clusterToken_ =
cc.consumes<reco::CaloClusterCollection>(conf.getParameter<edm::InputTag>("clusterSrc"));
clusterToken_ = cc.consumes<reco::CaloClusterCollection>(conf.getParameter<edm::InputTag>("clusterSrc"));
}

~PFClusterFromHGCalTrackster() override {}
Expand Down

0 comments on commit 2838123

Please sign in to comment.