41 cout <<
"[DTRecHitProducer] Constructor called" << endl;
43 produces<DTRecHitCollection>();
50 cout <<
"[DTRecHitProducer] Destructor called" << endl;
68 auto recHitCollection = std::make_unique<DTRecHitCollection>();
73 for (dtLayerIt = digis->begin();
74 dtLayerIt != digis->end();
77 const DTLayerId& layerId = (*dtLayerIt).first;
85 theAlgo->reconstruct(layer, layerId, range);
88 cout <<
"Number of hits in this layer: " << recHits.
size() << endl;
90 recHitCollection->put(layerId, recHits.
begin(), recHits.
end());
T getParameter(std::string const &) const
edm::EDGetTokenT< DTDigiCollection > DTDigiToken_
def setup(process, global_tag, zero_tesla=False)
~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.
T get(const Candidate &c)
std::unique_ptr< DTRecHitBaseAlgo > theAlgo