2 #include <unordered_map> 37 produces<DetIdRecHitMap>();
45 descriptions.
add(
"hgcalRecHitMapProducer",
desc);
49 auto hitMap = std::make_unique<DetIdRecHitMap>();
54 for (
const auto&
hit : ee_hits) {
55 hitMap->emplace(
hit.detid(), &
hit);
58 for (
const auto&
hit : fh_hits) {
59 hitMap->emplace(
hit.detid(), &
hit);
62 for (
const auto&
hit : bh_hits) {
63 hitMap->emplace(
hit.detid(), &
hit);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool get(ProductID const &oid, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::unordered_map< DetId, const HGCRecHit * > DetIdRecHitMap
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
HGCalRecHitMapProducer(const edm::ParameterSet &)
const edm::EDGetTokenT< HGCRecHitCollection > hits_ee_token_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< HGCRecHitCollection > hits_bh_token_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< HGCRecHitCollection > hits_fh_token_