23 produces<GEMPadDigiCollection>();
24 consumes<GEMDigiCollection>(
digis_);
59 for(
auto p: etaPartitions)
62 std::set<std::pair<int, int> > proto_pads;
66 auto digis = det_digis.get(
p->id());
67 for (
auto d = digis.first; d != digis.second; ++d)
69 int pad_num = 1 +
static_cast<int>(
p->padOfStrip(d->strip()) );
70 auto pad = std::make_pair(pad_num, d->bx());
71 proto_pads.insert(pad);
78 for (
auto & d: proto_pads)
81 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 chambers.
MuonDigiCollection< GEMDetId, GEMPadDigi > GEMPadDigiCollection
void buildPads(const GEMDigiCollection &digis, GEMPadDigiCollection &out_pads)
T const * product() const
virtual ~GEMPadDigiProducer()
edm::EDGetTokenT< GEMDigiCollection > digi_token_
Name of input digi Collection.
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override