1 #ifndef __RecoLocalCalo_HGCRecProducers_HGCalMultiClusterProducer_H__ 2 #define __RecoLocalCalo_HGCRecProducers_HGCalMultiClusterProducer_H__ 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");
74 desc.addUntracked<
unsigned int>(
"verbosity", 3);
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
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< std::vector< reco::BasicCluster > > clusters_sharing_token
edm::EDGetTokenT< HGCRecHitCollection > hits_bh_token
#define DEFINE_FWK_MODULE(type)
void push_back(Ptr< T > const &iPtr)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
HGCalClusteringAlgoBase::VerbosityLevel verbosity
edm::EDGetTokenT< HGCRecHitCollection > hits_ee_token
void produce(edm::Event &, const edm::EventSetup &) override
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)