30 produces<DTRecSegment4DCollection>();
33 debug =
pset.getUntrackedParameter<
bool>(
"debug",
false);
36 cout <<
"[DTRecSegment4DProducer] Constructor called" << endl;
39 recHits1DToken_ = consumes<DTRecHitCollection>(
pset.getParameter<
InputTag>(
"recHits1DLabel"));
42 recHits2DToken_ = consumes<DTRecSegment2DCollection>(
pset.getParameter<
InputTag>(
"recHits2DLabel"));
45 cout <<
"the Reco4D AlgoName is " <<
pset.getParameter<
string>(
"Reco4DAlgoName") << endl;
51 cout <<
"[DTRecSegment4DProducer] Destructor called" << endl;
65 auto segments4DCollection = std::make_unique<DTRecSegment4DCollection>();
79 for (dtLayerIt = all1DHits->id_begin(); dtLayerIt != all1DHits->id_end(); ++dtLayerIt) {
86 cout <<
"ChamberId: " << chId << endl;
90 cout <<
"Take the DTRecHits1D and set them in the reconstructor" << endl;
92 the4DAlgo->setDTRecHit1DContainer(all1DHits);
95 cout <<
"Take the DTRecSegments2D and set them in the reconstructor" << endl;
97 the4DAlgo->setDTRecSegment2DContainer(all2DSegments);
100 cout <<
"Start 4D-Segments Reco " << endl;
105 cout <<
"Number of reconstructed 4D-segments " << segments4D.
size() << endl;
106 copy(segments4D.
begin(), segments4D.
end(), ostream_iterator<DTRecSegment4D>(
cout,
"\n"));
109 if (!segments4D.
empty())
111 segments4DCollection->put(chId, segments4D.
begin(), segments4D.
end());
114 event.put(
std::move(segments4DCollection));