1 #ifndef __RecoLocalCalo_HGCRecProducers_HGCalMultiClusterProducer_H__ 2 #define __RecoLocalCalo_HGCRecProducers_HGCalMultiClusterProducer_H__ 55 std::vector<double> multicluster_radii = ps.
getParameter<std::vector<double> >(
"multiclusterRadii");
56 double minClusters = ps.
getParameter<
unsigned>(
"minClusters");
62 auto sumes = consumesCollector();
64 multicluster_algo = std::make_unique<HGCal3DClustering>(ps, sumes, multicluster_radii, minClusters);
66 produces<std::vector<reco::HGCalMultiCluster> >();
67 produces<std::vector<reco::HGCalMultiCluster> >(
"sharing");
76 desc.
add<
bool>(
"doSharing",
false);
79 desc.
add<std::vector<double>>(
"multiclusterRadii", {
86 desc.
add<
unsigned int>(
"minClusters", 3);
87 descriptions.
add(
"hgcalMultiClusters", desc);
101 for(
unsigned i = 0;
i < clusterHandle->size(); ++
i ) {
107 for(
unsigned i = 0;
i < clusterSharingHandle->size(); ++
i ) {
113 auto multiclusters = std::make_unique<std::vector<reco::HGCalMultiCluster>>();
114 auto multiclusters_sharing = std::make_unique<std::vector<reco::HGCalMultiCluster>>();
T getParameter(std::string const &) const
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)
edm::EDGetTokenT< HGCRecHitCollection > hits_ee_token
void produce(edm::Event &, const edm::EventSetup &) override
HGCalImagingAlgo::VerbosityLevel verbosity
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::unique_ptr< HGCal3DClustering > multicluster_algo
~HGCalMultiClusterProducer() override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HGCalMultiClusterProducer(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)