31 debug(config.getUntrackedParameter<bool>(
"debug",
false)),
36 consumesCollector())} {
38 cout <<
"[DTRecHitProducer] Constructor called" << endl;
40 produces<DTRecHitCollection>();
42 DTDigiToken_ = consumes<DTDigiCollection>(
config.getParameter<
InputTag>(
"dtDigiLabel"));
47 cout <<
"[DTRecHitProducer] Destructor called" << endl;
62 auto recHitCollection = std::make_unique<DTRecHitCollection>();
66 for (dtLayerIt = digis->begin(); dtLayerIt != digis->end(); ++dtLayerIt) {
68 const DTLayerId& layerId = (*dtLayerIt).first;
78 cout <<
"Number of hits in this layer: " << recHits.
size() << endl;
80 recHitCollection->put(layerId, recHits.
begin(), recHits.
end());
edm::EDGetTokenT< DTDigiCollection > DTDigiToken_
constexpr std::array< uint8_t, layerIndexSize > layer
const uint16_t range(const Frame &aFrame)
bool getData(T &iHolder) const
~DTRecHitProducer() override
Destructor.
DTRecHitProducer(const edm::ParameterSet &)
Constructor.
std::pair< const_iterator, const_iterator > Range
T getParameter(std::string const &) const
tuple config
parse the configuration file
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
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_