16 produces<ME0RecHitCollection>();
32 event.getByToken(
m_token,digis);
40 auto recHitCollection = std::make_unique<ME0RecHitCollection>();
45 for (me0dgIt = digis->begin(); me0dgIt != digis->end();
49 const ME0DetId& me0Id = (*me0dgIt).first;
58 theAlgo->reconstruct(me0Id, range);
61 recHitCollection->put(me0Id, recHits.
begin(), recHits.
end());
T getParameter(std::string const &) const
def setup(process, global_tag, zero_tesla=False)
edm::EDGetTokenT< ME0DigiPreRecoCollection > m_token
std::unique_ptr< ME0RecHitBaseAlgo > theAlgo
void produce(edm::Event &event, const edm::EventSetup &setup) override
The method which produces the rechits.
~ME0RecHitProducer() override
Destructor.
std::pair< const_iterator, const_iterator > Range
ME0RecHitProducer(const edm::ParameterSet &config)
Constructor.
T get(const Candidate &c)