33 produces<TICLLayerTiles>();
39 auto result = std::make_unique<TICLLayerTiles>();
43 const auto &layerClusters = *cluster_h;
45 for (
auto const &lc : layerClusters) {
46 const auto firstHitDetId = lc.hitsAndFractions()[0].first;
50 result->fill(layer, lc.eta(), lc.phi(), lcId);
51 LogDebug(
"TICLLayerTileProducer") <<
"Adding layerClusterId: " << lcId <<
" into bin [eta,phi]: [ " 52 << (*result)[layer].etaBin(lc.eta()) <<
", " << (*
result)[layer].phiBin(lc.phi())
53 <<
"] for layer: " << layer << std::endl;
62 descriptions.
add(
"ticlLayerTileProducer", desc);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
hgcal::RecHitTools rhtools_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void produce(edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void beginRun(edm::Run const &, edm::EventSetup const &) override
TICLLayerTileProducer(const edm::ParameterSet &ps)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< std::vector< reco::CaloCluster > > clusters_token_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
~TICLLayerTileProducer() override
void add(std::string const &label, ParameterSetDescription const &psetDescription)