38 cout <<
"[DTRecHitProducer] Constructor called" << endl;
40 produces<DTRecHitCollection>();
45 string theAlgoName = config.
getParameter<
string>(
"recAlgo");
52 cout <<
"[DTRecHitProducer] Destructor called" << endl;
71 auto recHitCollection = std::make_unique<DTRecHitCollection>();
76 for (dtLayerIt = digis->begin();
77 dtLayerIt != digis->end();
80 const DTLayerId& layerId = (*dtLayerIt).first;
91 cout <<
"Number of hits in this layer: " << recHits.
size() << endl;
93 recHitCollection->put(layerId, recHits.
begin(), recHits.
end());
T getParameter(std::string const &) const
virtual edm::OwnVector< DTRecHit1DPair > reconstruct(const DTLayer *layer, const DTLayerId &layerId, const DTDigiCollection::Range &digiRange)
Build all hits in the range associated to the layerId, at the 1st step.
edm::EDGetTokenT< DTDigiCollection > DTDigiToken_
def setup(process, global_tag, zero_tesla=False)
~DTRecHitProducer() override
Destructor.
virtual void setES(const edm::EventSetup &setup)=0
Pass the Event Setup to the algo at each event.
DTRecHitBaseAlgo * theAlgo
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)