44 geom_token_ = esConsumes<ME0Geometry, MuonGeometryRecord>();
62 for (
const auto&
p :
geometry.etaPartitions()) {
64 std::set<std::pair<int, int> > proto_pads;
68 auto digis = det_digis.get(
p->id());
69 for (
auto d = digis.first;
d != digis.second; ++
d) {
70 int pad_num = 1 +
static_cast<int>(
p->padOfStrip(
d->strip()));
71 proto_pads.emplace(pad_num,
d->bx());
75 for (
const auto&
d : proto_pads) {
77 out_pads.insertDigi(
p->id(), pad_digi);
T getParameter(std::string const &) const
ME0PadDigiCollection buildPads(const ME0DigiCollection &digis, const ME0Geometry &geometry) const
edm::ESGetToken< ME0Geometry, MuonGeometryRecord > geom_token_
T const * product() const
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
edm::EDGetTokenT< ME0DigiCollection > digi_token_
Name of input digi Collection.
#define DEFINE_FWK_MODULE(type)
ME0PadDigiProducer(const edm::ParameterSet &ps)
edm::EDPutTokenT< ME0PadDigiCollection > put_token_