6 #define LOGVERB(x) edm::LogVerbatim(x)
7 #define LOGWARN(x) edm::LogWarning(x)
8 #define LOGERR(x) edm::LogError(x)
9 #define LOGDRESSED(x) edm::LogInfo(x)
11 #define LOGVERB(x) LogTrace(x)
12 #define LOGWARN(x) edm::LogWarning(x)
13 #define LOGERR(x) edm::LogError(x)
14 #define LOGDRESSED(x) LogDebug(x)
18 : _prodInitClusters(conf.getUntrackedParameter<
bool>(
"prodInitialClusters",
false)) {
22 for (
const auto& conf : cleanerConfs) {
27 if (conf.
exists(
"seedCleaners")) {
30 for (
const auto& conf : seedcleanerConfs) {
48 if (!pfcConf.
empty()) {
66 produces<reco::PFClusterCollection>(
"initialClusters");
68 produces<reco::PFClusterCollection>();
93 std::vector<bool> mask(
rechits->size(),
true);
99 std::vector<bool> seedmask = mask;
101 cleaner->clean(
rechits, seedmask);
104 std::vector<bool> seedable(
rechits->size(),
false);
107 auto initialClusters = std::make_unique<reco::PFClusterCollection>();
111 auto pfClusters = std::make_unique<reco::PFClusterCollection>();
112 pfClusters = std::make_unique<reco::PFClusterCollection>();
117 pfClusters->insert(pfClusters->end(), initialClusters->begin(), initialClusters->end());
129 e.put(
std::move(initialClusters),
"initialClusters");