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));
44 if( !pfcConf.
empty() ) {
52 if( !pConf.
empty() ) {
59 if( !cConf.
empty() ) {
68 produces<reco::PFClusterCollection>(
"initialClusters");
70 produces<reco::PFClusterCollection>();
88 std::vector<bool> mask(rechits->size(),
true);
90 cleaner->clean(rechits, mask);
93 std::vector<bool> seedable(rechits->size(),
false);
96 std::auto_ptr<reco::PFClusterCollection> initialClusters;
101 std::auto_ptr<reco::PFClusterCollection> pfClusters;
107 pfClusters->insert(pfClusters->end(),
108 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
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
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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 &)
volatile std::atomic< bool > shutdown_flag false
static float eCorr(int ieta, int iphi, double ampl, int runnum)
Ugly hack to apply energy corrections to some HB- cells.
T get(const Candidate &c)