|
|
Go to the documentation of this file.
40 debug =
pset.getUntrackedParameter<
bool>(
"debug");
43 recHits1DToken_ = consumes<DTRecHitCollection>(
pset.getParameter<
InputTag>(
"recHits1DLabel"));
46 cout <<
"[DTRecSegment2DProducer] Constructor called" << endl;
48 produces<DTRecSegment2DCollection>();
52 cout <<
"the Reco2D AlgoName is " <<
pset.getParameter<
string>(
"Reco2DAlgoName") << endl;
58 cout <<
"[DTRecSegment2DProducer] Destructor called" << endl;
64 cout <<
"[DTRecSegment2DProducer] produce called" << endl;
76 auto segments = std::make_unique<DTRecSegment2DCollection>();
81 for (dtLayerIt = allHits->id_begin(); dtLayerIt != allHits->id_end(); ++dtLayerIt) {
90 cout <<
"Reconstructing the 2D segments in " << SLId << endl;
98 vector<DTRecHit1DPair> pairs(
range.first,
range.second);
101 cout <<
"Number of 1D-RecHit pairs " << pairs.size() << endl;
104 cout <<
"Start the 2D-segments Reco " << endl;
107 cout <<
"Number of Reconstructed segments: " << segs.
size() << endl;
110 segments->put(SLId, segs.
begin(), segs.
end());
~DTRecSegment2DProducer() override
Destructor.
edm::EDGetTokenT< DTRecHitCollection > recHits1DToken_
static std::pair< DTLayerId, DTSuperLayerIdComparator > layersBySuperLayer(DTSuperLayerId slId)
Access by SL objects written into a RangeMap by layer.
DTRecSegment2DProducer(const edm::ParameterSet &)
Constructor.
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.
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
std::unique_ptr< DTRecSegment2DBaseAlgo > theAlgo
const DTSuperLayer * superLayer(const DTSuperLayerId &id) const
Return a DTSuperLayer given its id.