49 geom_token_ = esConsumes<ME0Geometry, MuonGeometryRecord, edm::Transition::BeginRun>();
51 produces<ME0PadDigiCollection>();
78 std::set<std::pair<int, int> > proto_pads;
82 auto digis = det_digis.get(
p->id());
83 for (
auto d = digis.first;
d != digis.second; ++
d) {
84 int pad_num = 1 +
static_cast<int>(
p->padOfStrip(
d->strip()));
85 proto_pads.emplace(pad_num,
d->bx());
89 for (
const auto&
d : proto_pads) {
91 out_pads.insertDigi(
p->id(), pad_digi);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
edm::ESGetToken< ME0Geometry, MuonGeometryRecord > geom_token_
T const * product() const
void beginRun(const edm::Run &, const edm::EventSetup &) override
MuonDigiCollection< ME0DetId, ME0PadDigi > ME0PadDigiCollection
~ME0PadDigiProducer() override
edm::EDGetTokenT< ME0DigiCollection > digi_token_
Name of input digi Collection.
ME0PadDigiProducer(const edm::ParameterSet &ps)
void produce(edm::Event &, const edm::EventSetup &) override
const ME0Geometry * geometry_
const std::vector< ME0EtaPartition const * > & etaPartitions() const
Return a vector of all ME0 eta partitions.
void buildPads(const ME0DigiCollection &digis, ME0PadDigiCollection &out_pads) const