13 produces<ME0RecHitCollection>();
46 event.getByToken(
m_token,digis);
54 auto recHitCollection = std::make_unique<ME0RecHitCollection>();
59 for (me0dgIt = digis->begin(); me0dgIt != digis->end();
63 const ME0DetId& me0Id = (*me0dgIt).first;
74 if(recHits.
size() > 0)
75 recHitCollection->put(me0Id, recHits.
begin(), recHits.
end());
T getParameter(std::string const &) const
virtual void setES(const edm::EventSetup &setup)=0
Pass the Event Setup to the algo at each event.
def setup(process, global_tag, zero_tesla=False)
edm::EDGetTokenT< ME0DigiPreRecoCollection > m_token
virtual void produce(edm::Event &event, const edm::EventSetup &setup) override
The method which produces the rechits.
ME0RecHitBaseAlgo * theAlgo
virtual edm::OwnVector< ME0RecHit > reconstruct(const ME0DetId &me0Id, const ME0DigiPreRecoCollection::Range &digiRange)
Build all hits in the range associated to the me0Id, at the 1st step.
std::pair< const_iterator, const_iterator > Range
ME0RecHitProducer(const edm::ParameterSet &config)
Constructor.
virtual ~ME0RecHitProducer()
Destructor.
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
T get(const Candidate &c)