20 produces<GEMPadDigiCollection>();
21 consumes<GEMDigiCollection>(
digis_);
56 for(
const auto&
p: etaPartitions)
59 std::set<std::pair<int, int> > proto_pads;
63 auto digis = det_digis.get(
p->id());
64 for (
auto d = digis.first;
d != digis.second; ++
d)
66 int pad_num = 1 +
static_cast<int>(
p->padOfStrip(
d->strip()) );
67 auto pad = std::make_pair(pad_num,
d->bx());
68 proto_pads.insert(pad);
75 for (
auto &
d: proto_pads)
78 out_pads.insertDigi(
p->id(), pad_digi);
virtual 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
virtual ~GEMPadDigiProducer()
edm::EDGetTokenT< GEMDigiCollection > digi_token_
Name of input digi Collection.
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override