35 : detector_(ps.getParameter<
std::
string>(
"detector")) {
36 geometry_token_ = esConsumes<CaloGeometry, CaloGeometryRecord, edm::Transition::BeginRun>();
43 produces<TICLLayerTilesHFNose>();
46 produces<TICLLayerTiles>();
56 std::unique_ptr<TICLLayerTilesHFNose> resultHFNose;
57 std::unique_ptr<TICLLayerTiles>
result;
59 resultHFNose = std::make_unique<TICLLayerTilesHFNose>();
61 result = std::make_unique<TICLLayerTiles>();
73 const auto firstHitDetId = lc.hitsAndFractions()[0].first;
80 resultHFNose->fill(
layer, lc.eta(), lc.phi(), lcId);
83 LogDebug(
"TICLLayerTileProducer") <<
"Adding layerClusterId: " << lcId <<
" into bin [eta,phi]: [ " 84 << (*result)[
layer].etaBin(lc.eta()) <<
", " 85 << (*
result)[
layer].phiBin(lc.phi()) <<
"] for layer: " <<
layer << std::endl;
100 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
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_