41 debug =
pset.getUntrackedParameter<
bool>(
"debug");
47 cout <<
"[DTRecSegment2DProducer] Constructor called" << endl;
49 produces<DTRecSegment2DCollection>();
52 if(
debug)
cout <<
"the Reco2D AlgoName is " <<
pset.getParameter<
string>(
"Reco2DAlgoName") << endl;
58 cout <<
"[DTRecSegment2DProducer] Destructor called" << endl;
65 cout <<
"[DTRecSegment2DProducer] produce called" << endl;
77 auto segments = std::make_unique<DTRecSegment2DCollection>();
82 for (dtLayerIt = allHits->id_begin(); dtLayerIt != allHits->id_end(); ++dtLayerIt){
86 if (SLId==oldSlId)
continue;
89 if(
debug)
cout <<
"Reconstructing the 2D segments in "<< SLId << endl;
98 vector<DTRecHit1DPair> pairs(range.first,range.second);
100 if(
debug)
cout <<
"Number of 1D-RecHit pairs " << pairs.size() << endl;
102 if(
debug)
cout <<
"Start the 2D-segments Reco "<< endl;
104 if(
debug)
cout <<
"Number of Reconstructed segments: " << segs.
size() << endl;
107 segments->put(SLId, segs.
begin(),segs.
end());
edm::EDGetTokenT< DTRecHitCollection > recHits1DToken_
T getParameter(std::string const &) const
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.
def setup(process, global_tag, zero_tesla=False)
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
std::unique_ptr< DTRecSegment2DBaseAlgo > theAlgo
DTRecSegment2DProducer(const edm::ParameterSet &)
Constructor.
~DTRecSegment2DProducer() override
Destructor.
T get(const Candidate &c)
const DTSuperLayer * superLayer(const DTSuperLayerId &id) const
Return a DTSuperLayer given its id.