35 : detector_(ps.getParameter<std::
string>(
"detector")) {
39 geometry_token_ = esConsumes<CaloGeometry, CaloGeometryRecord, edm::Transition::BeginRun>();
44 produces<TICLLayerTilesHFNose>();
46 produces<TICLLayerTiles>();
55 auto result = std::make_unique<TICLLayerTiles>();
56 auto resultHFNose = std::make_unique<TICLLayerTilesHFNose>();
64 const auto &layerClusters = *cluster_h;
66 for (
auto const &lc : layerClusters) {
67 const auto firstHitDetId = lc.hitsAndFractions()[0].first;
74 resultHFNose->fill(layer, lc.eta(), lc.phi(), lcId);
76 result->fill(layer, lc.eta(), lc.phi(), lcId);
77 LogDebug(
"TICLLayerTileProducer") <<
"Adding layerClusterId: " << lcId <<
" into bin [eta,phi]: [ "
78 << (*result)[
layer].etaBin(lc.eta()) <<
", " << (*
result)[
layer].phiBin(lc.phi())
79 <<
"] for layer: " << layer << std::endl;
93 descriptions.
add(
"ticlLayerTileProducer", desc);
edm::EDGetTokenT< std::vector< reco::CaloCluster > > clusters_HFNose_token_
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
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void beginRun(edm::Run const &, edm::EventSetup const &) override
constexpr std::array< uint8_t, layerIndexSize > layer
TICLLayerTileProducer(const edm::ParameterSet &ps)
edm::EDGetTokenT< std::vector< reco::CaloCluster > > clusters_token_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
~TICLLayerTileProducer() override
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometry_token_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const