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>();
67 const auto firstHitDetId = lc.hitsAndFractions()[0].first;
74 resultHFNose->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_
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
hgcal::RecHitTools rhtools_
void produce(edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void beginRun(edm::Run const &, edm::EventSetup const &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
TICLLayerTileProducer(const edm::ParameterSet &ps)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< std::vector< reco::CaloCluster > > clusters_token_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
~TICLLayerTileProducer() override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometry_token_