31 std::vector<std::unique_ptr<RecHitTopologicalCleanerBase> >
_cleaners;
32 std::vector<std::unique_ptr<RecHitTopologicalCleanerBase> >
_seedcleaners;
44 #define LOGVERB(x) edm::LogVerbatim(x)
45 #define LOGWARN(x) edm::LogWarning(x)
46 #define LOGERR(x) edm::LogError(x)
47 #define LOGDRESSED(x) edm::LogInfo(x)
49 #define LOGVERB(x) LogTrace(x)
50 #define LOGWARN(x) edm::LogWarning(x)
51 #define LOGERR(x) edm::LogError(x)
52 #define LOGDRESSED(x) LogDebug(x)
56 : _prodInitClusters(conf.getUntrackedParameter<
bool>(
"prodInitialClusters",
false)) {
62 for (
const auto& conf : cleanerConfs) {
67 if (conf.
exists(
"seedCleaners")) {
70 for (
const auto& conf : seedcleanerConfs) {
86 if (!pfcConf.
empty()) {
104 produces<reco::PFClusterCollection>(
"initialClusters");
106 produces<reco::PFClusterCollection>();
131 std::vector<bool> mask(
rechits->size(),
true);
137 std::vector<bool> seedmask = mask;
139 cleaner->clean(
rechits, seedmask);
142 std::vector<bool> seedable(
rechits->size(),
false);
145 auto initialClusters = std::make_unique<reco::PFClusterCollection>();
149 auto pfClusters = std::make_unique<reco::PFClusterCollection>();
150 pfClusters = std::make_unique<reco::PFClusterCollection>();
155 pfClusters->insert(pfClusters->end(), initialClusters->begin(), initialClusters->end());
167 e.put(
std::move(initialClusters),
"initialClusters");