82 vector<DTRecHit1DPair> hitsFromPhi1(rangeHitsFromPhi1.first,rangeHitsFromPhi1.second);
83 vector<DTRecHit1DPair> hitsFromPhi2(rangeHitsFromPhi2.first,rangeHitsFromPhi2.second);
85 cout<<
"Number of DTRecHit1DPair in the SL 1 (Phi 1): " << hitsFromPhi1.size()<<endl
86 <<
"Number of DTRecHit1DPair in the SL 3 (Phi 2): " << hitsFromPhi2.size()<<endl;
95 vector<DTRecHit1DPair> hitsFromTheta(rangeHitsFromTheta.first,rangeHitsFromTheta.second);
97 cout<<
"Number of DTRecHit1DPair in the SL 2 (Theta): " << hitsFromTheta.size()<<endl;
113 vector<DTSLRecSegment2D> segments2DTheta(rangeTheta.first,rangeTheta.second);
116 cout <<
"Number of 2D-segments in the second SL (Theta): " << segments2DTheta.size() << endl;
130 cout <<
"Reconstructing Phi segments"<<endl;
134 if (
debug)
cout <<
"There are " << resultPhi.size() <<
" Phi cand" << endl;
142 if(
debug)
cout <<
"Reconstructing Theta segments"<<endl;
144 vector<DTSLRecSegment2D> segments2DTheta(thetaSegs.
begin(),thetaSegs.
end());
156 if (
debug)
cout <<
"No Theta SL" << endl;
160 if(
debug)
cout<<
"Building the concrete DTRecSegment4D"<<endl;
161 if (resultPhi.size()) {
162 for (vector<DTSegmentCand*>::const_iterator
phi=resultPhi.begin();
163 phi!=resultPhi.end(); ++
phi) {
197 if (
debug)
cout <<
"Created a 4D seg " << *newSeg << endl;
204 if (
debug)
cout <<
"Created a 4D segment using only the 2D Phi segment" << endl;
223 if (
debug)
cout <<
"Created a 4D segment using only the 2D Theta segment" << endl;
229 for (vector<DTSegmentCand*>::iterator
phi=resultPhi.begin();
230 phi!=resultPhi.end(); ++
phi)
delete *
phi;
247 if(
debug)
cout<<
"DTMeantimerPatternReco4D::buildPhiSuperSegmentsCandidates: "
248 <<
"No Hits in the two Phi SL"<<endl;
249 return vector<DTSegmentCand*>();
258 copy(pairPhi2.begin(),pairPhi2.end(),back_inserter(pairPhi1));
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< DTSegmentCand * > buildPhiSuperSegmentsCandidates()
virtual void setDTRecHit1DContainer(edm::Handle< DTRecHitCollection > all1DHits)
std::pair< const_iterator, const_iterator > range
iterator range
std::vector< DTRecHit1DPair > theHitsFromPhi2
void update(DTRecSegment4D *seg, const bool calcT0=false) const
recompute hits position and refit the segment4D
virtual void setChamber(const DTChamberId &chId)
DTMeantimerPatternReco * the2DAlgo
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
static std::pair< DTLayerId, DTSuperLayerIdComparator > layersBySuperLayer(DTSuperLayerId slId)
Access by SL objects written into a RangeMap by layer.
DTMeantimerPatternReco4D(const edm::ParameterSet &pset)
Constructor.
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
std::vector< DTRecHit1DPair > theHitsFromPhi1
virtual void setES(const edm::EventSetup &setup)
void setES(const edm::EventSetup &setup)
set the setup
DTChamberId id() const
Return the DTChamberId of this chamber.
std::vector< DTHitPairForFit * > initHits(const DTSuperLayer *sl, const std::vector< DTRecHit1DPair > &hits)
std::vector< DTRecHit1DPair > theHitsFromTheta
std::vector< DTSLRecSegment2D > theSegments2DTheta
virtual LocalPoint localPosition() const
local position in SL frame
DTSegmentUpdator * theUpdator
std::vector< DTSegmentCand * > buildSegments(const DTSuperLayer *sl, const std::vector< DTHitPairForFit * > &hits)
virtual edm::OwnVector< DTSLRecSegment2D > reconstruct(const DTSuperLayer *sl, const std::vector< DTRecHit1DPair > &hits)
this function is called in the producer
edm::ESHandle< DTGeometry > theDTGeometry
const DTChamber * theChamber
virtual void setDTRecSegment2DContainer(edm::Handle< DTRecSegment2DCollection > all2DSegments)
virtual ~DTMeantimerPatternReco4D()
Destructor.
virtual void setES(const edm::EventSetup &setup)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
virtual edm::OwnVector< DTRecSegment4D > reconstruct()
Operations.
const DTSuperLayer * superLayer(DTSuperLayerId id) const
Return the superlayer corresponding to the given id.