35 cout <<
"[DTRecHitProducer] Constructor called" << endl;
37 produces<DTRecHitCollection>();
44 cout <<
"[DTRecHitProducer] Destructor called" << endl;
60 auto recHitCollection = std::make_unique<DTRecHitCollection>();
64 for (dtLayerIt = digis->begin(); dtLayerIt != digis->end(); ++dtLayerIt) {
66 const DTLayerId& layerId = (*dtLayerIt).first;
76 cout <<
"Number of hits in this layer: " << recHits.
size() << endl;
78 recHitCollection->put(layerId, recHits.
begin(), recHits.
end());
T getParameter(std::string const &) const
edm::EDGetTokenT< DTDigiCollection > DTDigiToken_
~DTRecHitProducer() override
Destructor.
DTRecHitProducer(const edm::ParameterSet &)
Constructor.
std::pair< const_iterator, const_iterator > Range
const DTLayer * layer(const DTLayerId &id) const
Return a layer given its id.
void produce(edm::Event &event, const edm::EventSetup &setup) override
The method which produces the rechits.
std::unique_ptr< DTRecHitBaseAlgo > theAlgo