36 std::vector<std::unique_ptr<RecHitTopologicalCleanerBase> >
_cleaners;
37 std::vector<std::unique_ptr<RecHitTopologicalCleanerBase> >
_seedcleaners;
49 #define LOGVERB(x) edm::LogVerbatim(x) 50 #define LOGWARN(x) edm::LogWarning(x) 51 #define LOGERR(x) edm::LogError(x) 52 #define LOGDRESSED(x) edm::LogInfo(x) 54 #define LOGVERB(x) LogTrace(x) 55 #define LOGWARN(x) edm::LogWarning(x) 56 #define LOGERR(x) edm::LogError(x) 57 #define LOGDRESSED(x) LogDebug(x) 61 : _prodInitClusters(conf.getUntrackedParameter<
bool>(
"prodInitialClusters",
false)) {
72 for (
const auto& conf : cleanerConfs) {
77 if (conf.
exists(
"seedCleaners")) {
80 for (
const auto& conf : seedcleanerConfs) {
96 if (!pfcConf.
empty()) {
102 if (!pConf.
empty()) {
108 if (!cConf.
empty()) {
114 produces<reco::PFClusterCollection>(
"initialClusters");
116 produces<reco::PFClusterCollection>();
150 std::vector<bool> seedmask =
mask;
152 cleaner->clean(
rechits, seedmask);
155 std::vector<bool> seedable(
rechits->size(),
false);
158 auto initialClusters = std::make_unique<reco::PFClusterCollection>();
162 auto pfClusters = std::make_unique<reco::PFClusterCollection>();
163 pfClusters = std::make_unique<reco::PFClusterCollection>();
168 pfClusters->insert(pfClusters->end(), initialClusters->begin(), initialClusters->end());
180 e.put(
std::move(initialClusters),
"initialClusters");
std::unique_ptr< SeedFinderBase > _seedFinder
std::unique_ptr< PFClusterEnergyCorrectorBase > _energyCorrector
T getParameter(std::string const &) const
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
def create(alignables, pedeDump, additionalData, outputFile, config)
uint32_t cc[maxCellsPerHit]
std::vector< ParameterSet > VParameterSet
std::unique_ptr< PFClusterBuilderBase > _pfClusterBuilder
void beginRun(const edm::Run &, const edm::EventSetup &) override
bool exists(std::string const ¶meterName) const
checks if a parameter exists
RecHitTopologicalCleanerBase RHCB
ParameterSet const & getParameterSet(std::string const &) const
std::vector< std::unique_ptr< RecHitTopologicalCleanerBase > > _seedcleaners
~PFClusterProducer() override=default
PFCPositionCalculatorBase PosCalc
std::unique_ptr< PFCPositionCalculatorBase > _positionReCalc
PFClusterBuilderBase PFCBB
std::vector< std::unique_ptr< RecHitTopologicalCleanerBase > > _cleaners
const bool _prodInitClusters
edm::EDGetTokenT< reco::PFRecHitCollection > _rechitsLabel
std::unique_ptr< InitialClusteringStepBase > _initialClustering
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &, const edm::EventSetup &) override
HcalPFCuts const * paramPF
InitialClusteringStepBase ICSB
VParameterSet const & getParameterSetVector(std::string const &name) const
PFClusterProducer(const edm::ParameterSet &)
edm::ESGetToken< HcalPFCuts, HcalPFCutsRcd > hcalCutsToken_