20 produces<ME0PadDigiCollection>();
21 consumes<ME0DigiPreRecoCollection>(
digis_);
56 for(
const auto&
p: etaPartitions)
59 std::set<std::pair<int, int> > proto_pads;
63 auto digis = det_digis.get(
p->id());
64 for (
auto d = digis.first;
d != digis.second; ++
d)
67 int pad_num = 1 +
static_cast<int>(
p->padOfStrip(strip_num) );
68 auto pad = std::make_pair(pad_num,
d->tof());
69 proto_pads.insert(pad);
73 for (
const auto &
d: proto_pads)
76 out_pads.insertDigi(
p->id(), pad_digi);
T getParameter(std::string const &) const
void buildPads(const ME0DigiPreRecoCollection &digis, ME0PadDigiCollection &out_pads) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Point3DBase< Scalar, LocalTag > LocalPoint
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
virtual ~ME0PadDigiProducer()
edm::EDGetTokenT< ME0DigiPreRecoCollection > digi_token_
Name of input digi Collection.
MuonDigiCollection< ME0DetId, ME0PadDigi > ME0PadDigiCollection
const std::vector< ME0EtaPartition const * > & etaPartitions() const
Return a vector of all ME0 eta partitions.
T const * product() const
ME0PadDigiProducer(const edm::ParameterSet &ps)
virtual void produce(edm::Event &, const edm::EventSetup &) override
const ME0Geometry * geometry_