Go to the documentation of this file.
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);
const edm::EDGetTokenT< HGCRecHitCollection > hits_bh_token_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::unordered_map< DetId, const HGCRecHit * > DetIdRecHitMap
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< HGCRecHitCollection > hits_fh_token_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
HGCalRecHitMapProducer(const edm::ParameterSet &)
const edm::EDGetTokenT< HGCRecHitCollection > hits_ee_token_
bool get(ProductID const &oid, Handle< PROD > &result) const