14 produces<ME0RecHitCollection>();
16 m_token = consumes<ME0DigiPreRecoCollection>(
config.getParameter<
edm::InputTag>(
"me0DigiLabel"));
17 m_me0GeomToken = esConsumes<ME0Geometry, MuonGeometryRecord>();
29 event.getByToken(
m_token, digis);
37 auto recHitCollection = std::make_unique<ME0RecHitCollection>();
42 for (me0dgIt = digis->begin(); me0dgIt != digis->end(); ++me0dgIt) {
44 const ME0DetId& me0Id = (*me0dgIt).first;
54 recHitCollection->put(me0Id, recHits.
begin(), recHits.
end());
edm::ESGetToken< ME0Geometry, MuonGeometryRecord > m_me0GeomToken
edm::EDGetTokenT< ME0DigiPreRecoCollection > m_token
const uint16_t range(const Frame &aFrame)
std::unique_ptr< ME0RecHitBaseAlgo > theAlgo
void produce(edm::Event &event, const edm::EventSetup &setup) override
The method which produces the rechits.
std::pair< const_iterator, const_iterator > Range
T getParameter(std::string const &) const
tuple config
parse the configuration file
~ME0RecHitProducer() override
Destructor.
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
ME0RecHitProducer(const edm::ParameterSet &config)
Constructor.