39 consumesCollector())},
42 debug =
pset.getUntrackedParameter<
bool>(
"debug");
45 recHits1DToken_ = consumes<DTRecHitCollection>(
pset.getParameter<
InputTag>(
"recHits1DLabel"));
48 cout <<
"[DTRecSegment2DProducer] Constructor called" << endl;
50 produces<DTRecSegment2DCollection>();
54 cout <<
"the Reco2D AlgoName is " <<
pset.getParameter<
string>(
"Reco2DAlgoName") << endl;
60 cout <<
"[DTRecSegment2DProducer] Destructor called" << endl;
66 cout <<
"[DTRecSegment2DProducer] produce called" << endl;
77 auto segments = std::make_unique<DTRecSegment2DCollection>();
82 for (dtLayerIt = allHits->id_begin(); dtLayerIt != allHits->id_end(); ++dtLayerIt) {
91 cout <<
"Reconstructing the 2D segments in " << SLId << endl;
99 vector<DTRecHit1DPair> pairs(
range.first,
range.second);
102 cout <<
"Number of 1D-RecHit pairs " << pairs.size() << endl;
105 cout <<
"Start the 2D-segments Reco " << endl;
108 cout <<
"Number of Reconstructed segments: " << segs.
size() << endl;
111 segments->put(SLId, segs.
begin(), segs.
end());
edm::EDGetTokenT< DTRecHitCollection > recHits1DToken_
std::pair< const_iterator, const_iterator > range
iterator range
void produce(edm::Event &event, const edm::EventSetup &setup) override
The method which produces the 2D-segments.
static std::pair< DTLayerId, DTSuperLayerIdComparator > layersBySuperLayer(DTSuperLayerId slId)
Access by SL objects written into a RangeMap by layer.
std::unique_ptr< DTRecSegment2DBaseAlgo > theAlgo
const DTSuperLayer * superLayer(const DTSuperLayerId &id) const
Return a DTSuperLayer given its id.
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
DTRecSegment2DProducer(const edm::ParameterSet &)
Constructor.
~DTRecSegment2DProducer() override
Destructor.