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
std::unique_ptr< PFCPositionCalculatorBase > _positionReCalc
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< std::unique_ptr< RecHitTopologicalCleanerBase > > _cleaners
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
const bool _prodInitClusters
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::EDGetTokenT< reco::PFRecHitCollection > _rechitsLabel
std::unique_ptr< InitialClusteringStepBase > _initialClustering
ParameterSet const & getParameterSet(std::string const &) const
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
PFClusterProducer(const edm::ParameterSet &)
T get(const Candidate &c)