35 debug(config.getUntrackedParameter<bool>(
"debug",
false))
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;
92 if(recHits.
size() > 0)
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)
const DTLayer * layer(DTLayerId id) const
Return a layer given its id.
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.
virtual ~DTRecHitProducer()
Destructor.
std::pair< const_iterator, const_iterator > Range
T get(const Candidate &c)
virtual void produce(edm::Event &event, const edm::EventSetup &setup)
The method which produces the rechits.