1 #ifndef __RecoLocalCalo_HGCRecProducers_HGCalMultiClusterProducer_H__
2 #define __RecoLocalCalo_HGCRecProducers_HGCalMultiClusterProducer_H__
52 : doSharing(ps.getParameter<bool>(
"doSharing")),
54 std::vector<double> multicluster_radii = ps.
getParameter<std::vector<double>>(
"multiclusterRadii");
62 auto sumes = consumesCollector();
66 produces<std::vector<reco::HGCalMultiCluster>>();
67 produces<std::vector<reco::HGCalMultiCluster>>(
"sharing");
75 desc.
add<
bool>(
"doSharing",
false);
78 desc.
add<std::vector<double>>(
"multiclusterRadii",
86 desc.
add<
unsigned int>(
"minClusters", 3);
87 descriptions.
add(
"hgcalMultiClusters", desc);
99 for (
unsigned i = 0;
i < clusterHandle->size(); ++
i) {
105 for (
unsigned i = 0;
i < clusterSharingHandle->size(); ++
i) {
111 auto multiclusters = std::make_unique<std::vector<reco::HGCalMultiCluster>>();
112 auto multiclusters_sharing = std::make_unique<std::vector<reco::HGCalMultiCluster>>();
edm::EDGetTokenT< std::vector< reco::BasicCluster > > clusters_token
edm::EDGetTokenT< HGCRecHitCollection > hits_fh_token
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
edm::EDGetTokenT< std::vector< reco::BasicCluster > > clusters_sharing_token
edm::EDGetTokenT< HGCRecHitCollection > hits_bh_token
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void push_back(Ptr< T > const &iPtr)
HGCalClusteringAlgoBase::VerbosityLevel verbosity
edm::EDGetTokenT< HGCRecHitCollection > hits_ee_token
void produce(edm::Event &, const edm::EventSetup &) override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::unique_ptr< HGCal3DClustering > multicluster_algo
~HGCalMultiClusterProducer() override
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HGCalMultiClusterProducer(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)