37 debug =
pset.getUntrackedParameter<
bool>(
"debug");
40 recHits1DToken_ = consumes<DTRecHitCollection>(
pset.getParameter<
InputTag>(
"recHits1DLabel"));
41 recClusToken_ = consumes<DTRecClusterCollection>(
pset.getParameter<
InputTag>(
"recClusLabel"));
44 cout <<
"[DTRecSegment2DExtendedProducer] Constructor called" << endl;
46 produces<DTRecSegment2DCollection>();
55 cout <<
"[DTRecSegment2DExtendedProducer] Destructor called" << endl;
62 cout <<
"[DTRecSegment2DExtendedProducer] produce called" << endl;
67 theAlgo->setES(
setup);
71 event.getByToken(recHits1DToken_, allHits);
75 event.getByToken(recClusToken_, dtClusters);
76 theAlgo->setClusters(vector<DTSLRecCluster>(dtClusters->begin(), dtClusters->end()));
79 auto segments = std::make_unique<DTRecSegment2DCollection>();
84 for (dtLayerIt = allHits->id_begin(); dtLayerIt != allHits->id_end(); ++dtLayerIt) {
93 cout <<
"Reconstructing the 2D segments in " << SLId << endl;
101 vector<DTRecHit1DPair> pairs(
range.first,
range.second);
104 cout <<
"Number of 1D-RecHit pairs " << pairs.size() << endl;
109 cout <<
"Number of Reconstructed segments: " << segs.
size() << endl;
110 copy(segs.
begin(), segs.
end(), ostream_iterator<DTSLRecSegment2D>(
cout,
"\n"));
114 segments->put(SLId, segs.
begin(), segs.
end());