46 cout <<
"[DTRecSegment2DProducer] Constructor called" << endl;
48 produces<DTRecSegment2DCollection>();
51 string theAlgoName = pset.
getParameter<
string>(
"Reco2DAlgoName");
52 if(
debug)
cout <<
"the Reco2D AlgoName is " << theAlgoName << endl;
60 cout <<
"[DTRecSegment2DProducer] Destructor called" << endl;
68 cout <<
"[DTRecSegment2DProducer] produce called" << endl;
73 theAlgo->setES(setup);
77 event.getByLabel(theRecHits1DLabel, allHits);
85 for (dtLayerIt = allHits->id_begin(); dtLayerIt != allHits->id_end(); ++dtLayerIt){
89 if (SLId==oldSlId)
continue;
92 if(
debug)
cout <<
"Reconstructing the 2D segments in "<< SLId << endl;
101 vector<DTRecHit1DPair> pairs(range.first,range.second);
103 if(
debug)
cout <<
"Number of 1D-RecHit pairs " << pairs.size() << endl;
105 if(
debug)
cout <<
"Start the 2D-segments Reco "<< endl;
107 if(
debug)
cout <<
"Number of Reconstructed segments: " << segs.
size() << endl;
109 if (segs.
size() > 0 )
110 segments->put(SLId, segs.
begin(),segs.
end());
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::pair< const_iterator, const_iterator > range
iterator range
static std::pair< DTLayerId, DTSuperLayerIdComparator > layersBySuperLayer(DTSuperLayerId slId)
Access by SL objects written into a RangeMap by layer.
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
edm::RangeMap< DTSuperLayerId, edm::OwnVector< DTSLRecSegment2D > > DTRecSegment2DCollection
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
virtual ~DTRecSegment2DProducer()
Destructor.
DTRecSegment2DProducer(const edm::ParameterSet &)
Constructor.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
virtual void produce(edm::Event &event, const edm::EventSetup &setup)
The method which produces the 2D-segments.
T get(const Candidate &c)