4 #define LOGVERB(x) edm::LogVerbatim(x) 5 #define LOGWARN(x) edm::LogWarning(x) 6 #define LOGERR(x) edm::LogError(x) 7 #define LOGDRESSED(x) edm::LogInfo(x) 9 #define LOGVERB(x) LogTrace(x) 10 #define LOGWARN(x) edm::LogWarning(x) 11 #define LOGERR(x) edm::LogError(x) 12 #define LOGDRESSED(x) LogDebug(x) 16 : _prodInitClusters(conf.getUntrackedParameter<
bool>(
"prodInitialClusters",
false)) {
20 for (
const auto& conf : cleanerConfs) {
25 if (conf.
exists(
"seedCleaners")) {
28 for (
const auto& conf : seedcleanerConfs) {
46 if (!pfcConf.
empty()) {
64 produces<reco::PFClusterCollection>(
"initialClusters");
66 produces<reco::PFClusterCollection>();
91 std::vector<bool>
mask(rechits->size(),
true);
93 cleaner->clean(rechits,
mask);
97 std::vector<bool> seedmask =
mask;
99 cleaner->clean(rechits, seedmask);
102 std::vector<bool> seedable(rechits->size(),
false);
103 _seedFinder->findSeeds(rechits, seedmask, seedable);
105 auto initialClusters = std::make_unique<reco::PFClusterCollection>();
109 auto pfClusters = std::make_unique<reco::PFClusterCollection>();
115 pfClusters->insert(pfClusters->end(), initialClusters->begin(), initialClusters->end());
std::unique_ptr< SeedFinderBase > _seedFinder
T getParameter(std::string const &) const
std::unique_ptr< PFClusterEnergyCorrectorBase > _energyCorrector
VParameterSet const & getParameterSetVector(std::string const &name) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
def create(alignables, pedeDump, additionalData, outputFile, config)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< ParameterSet > VParameterSet
std::unique_ptr< PFClusterBuilderBase > _pfClusterBuilder
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
std::vector< std::unique_ptr< RecHitTopologicalCleanerBase > > _seedcleaners
std::unique_ptr< PFCPositionCalculatorBase > _positionReCalc
std::vector< std::unique_ptr< RecHitTopologicalCleanerBase > > _cleaners
const bool _prodInitClusters
edm::EDGetTokenT< reco::PFRecHitCollection > _rechitsLabel
std::unique_ptr< InitialClusteringStepBase > _initialClustering
void produce(edm::Event &, const edm::EventSetup &) override
ParameterSet const & getParameterSet(std::string const &) const
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
PFClusterProducer(const edm::ParameterSet &)
T get(const Candidate &c)