Go to the documentation of this file.
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);
~TICLLayerTileProducer() override
edm::EDGetTokenT< std::vector< reco::CaloCluster > > clusters_token_
edm::EDGetTokenT< std::vector< reco::CaloCluster > > clusters_HFNose_token_
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
constexpr std::array< uint8_t, layerIndexSize > layer
TICLLayerTileProducer(const edm::ParameterSet &ps)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void beginRun(edm::Run const &, edm::EventSetup const &) override
void produce(edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
hgcal::RecHitTools rhtools_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometry_token_