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