1 #ifndef __RecoLocalCalo_HGCRecProducers_PFClusterProducer_H__ 2 #define __RecoLocalCalo_HGCRecProducers_PFClusterProducer_H__ 44 std::unique_ptr<HGCalImagingAlgo>
algo;
57 doSharing(ps.getParameter<bool>(
"doSharing")),
63 double multicluster_radius = ps.
getParameter<
double>(
"multiclusterRadius");
100 produces<std::vector<reco::BasicCluster> >();
101 produces<std::vector<reco::BasicCluster> >(
"sharing");
103 produces<std::vector<reco::HGCalMultiCluster> >();
104 produces<std::vector<reco::HGCalMultiCluster> >(
"sharing");
115 std::unique_ptr<std::vector<reco::BasicCluster> >
clusters(
new std::vector<reco::BasicCluster> ),
116 clusters_sharing(
new std::vector<reco::BasicCluster> );
120 algo->getEventSetup(es);
128 algo->makeClusters(*ee_hits);
134 algo->makeClusters(*fh_hits);
135 }
else if ( bh_hits.
isValid() ) {
136 algo->makeClusters(*bh_hits);
141 algo->makeClusters(*ee_hits);
143 algo->makeClusters(*fh_hits);
145 algo->makeClusters(*bh_hits);
152 *clusters_sharing =
algo->getClusters(
true);
159 std::vector<std::string>
names;
170 auto clusterHandleSharing = evt.
put(
std::move(clusters_sharing),
"sharing");
173 for(
unsigned i = 0;
i < clusterHandle->size(); ++
i ) {
178 for(
unsigned i = 0;
i < clusterHandleSharing->size(); ++
i ) {
183 std::unique_ptr<std::vector<reco::HGCalMultiCluster> >
184 multiclusters(
new std::vector<reco::HGCalMultiCluster> ),
185 multiclusters_sharing(
new std::vector<reco::HGCalMultiCluster> );
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
HGCalClusterTestProducer(const edm::ParameterSet &)
static const HistoName names[]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
reco::CaloCluster::AlgoId algoId
#define DEFINE_FWK_MODULE(type)
void push_back(Ptr< T > const &iPtr)
edm::EDGetTokenT< HGCRecHitCollection > hits_ee_token
std::unique_ptr< HGCalImagingAlgo > algo
edm::EDGetTokenT< HGCRecHitCollection > hits_fh_token
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
HGCalImagingAlgo::VerbosityLevel verbosity
edm::EDGetTokenT< HGCRecHitCollection > hits_bh_token
~HGCalClusterTestProducer()
virtual void produce(edm::Event &, const edm::EventSetup &)
static const G4double kappa
std::unique_ptr< HGCalDepthPreClusterer > multicluster_algo