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))
22 for(
const auto& conf : cleanerConfs ) {
27 _cleaners.push_back(std::unique_ptr<RHCB>(cleaner));
46 if( !pfcConf.
empty() ) {
54 if( !pConf.
empty() ) {
61 if( !cConf.
empty() ) {
70 produces<reco::PFClusterCollection>(
"initialClusters");
72 produces<reco::PFClusterCollection>();
92 std::vector<bool>
mask(rechits->size(),
true);
94 cleaner->clean(rechits,
mask);
99 std::vector<bool> seedable(rechits->size(),
false);
104 auto initialClusters = std::make_unique<reco::PFClusterCollection>();
111 auto pfClusters = std::make_unique<reco::PFClusterCollection>();
117 pfClusters->insert(pfClusters->end(),
118 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.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< ParameterSet > VParameterSet
std::unique_ptr< PFClusterBuilderBase > _pfClusterBuilder
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
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)