20 produces<GEMPadDigiCollection>();
21 consumes<GEMDigiCollection>(
digis_);
58 std::set<std::pair<int, int> > proto_pads;
62 auto digis = det_digis.get(
p->id());
63 for (
auto d = digis.first;
d != digis.second; ++
d)
65 int pad_num =
static_cast<int>(
p->padOfStrip(
d->strip()));
66 proto_pads.emplace(pad_num,
d->bx());
73 for (
const auto&
d: proto_pads)
76 out_pads.insertDigi(
p->id(), pad_digi);
void produce(edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const GEMGeometry * geometry_
GEMPadDigiProducer(const edm::ParameterSet &ps)
const std::vector< const GEMEtaPartition * > & etaPartitions() const
Return a vector of all GEM eta partitions.
void buildPads(const GEMDigiCollection &digis, GEMPadDigiCollection &out_pads) const
T const * product() const
MuonDigiCollection< GEMDetId, GEMPadDigi > GEMPadDigiCollection
~GEMPadDigiProducer() override
edm::EDGetTokenT< GEMDigiCollection > digi_token_
Name of input digi Collection.
void beginRun(const edm::Run &, const edm::EventSetup &) override