20 produces<ME0PadDigiCollection>();
57 std::set<std::pair<int, int> > proto_pads;
61 auto digis = det_digis.get(
p->id());
62 for (
auto d = digis.first;
d != digis.second; ++
d)
64 int pad_num = 1 +
static_cast<int>(
p->padOfStrip(
d->strip()) );
65 proto_pads.emplace(pad_num,
d->bx());
69 for (
const auto &
d: proto_pads)
72 out_pads.insertDigi(
p->id(), pad_digi);
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
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
virtual ~ME0PadDigiProducer()
MuonDigiCollection< ME0DetId, ME0PadDigi > ME0PadDigiCollection
edm::EDGetTokenT< ME0DigiCollection > digi_token_
Name of input digi Collection.
const std::vector< ME0EtaPartition const * > & etaPartitions() const
Return a vector of all ME0 eta partitions.
T const * product() const
ME0PadDigiProducer(const edm::ParameterSet &ps)
void buildPads(const ME0DigiCollection &digis, ME0PadDigiCollection &out_pads) const
virtual void produce(edm::Event &, const edm::EventSetup &) override
const ME0Geometry * geometry_