72 vector<DTSLRecSegment2D> segments2DPhi1(rangePhi1.first,rangePhi1.second);
73 vector<DTSLRecSegment2D> segments2DTheta(rangeTheta.first,rangeTheta.second);
74 vector<DTSLRecSegment2D> segments2DPhi2(rangePhi2.first,rangePhi2.second);
77 cout <<
"Number of 2D-segments in the first SL (Phi)" << segments2DPhi1.size() << endl
78 <<
"Number of 2D-segments in the second SL (Theta)" << segments2DTheta.size() << endl
79 <<
"Number of 2D-segments in the third SL (Phi)" << segments2DPhi2.size() << endl;
96 if (
debug)
cout <<
"There are " << resultPhi.size() <<
" Phi cand" << endl;
105 if (
debug)
cout <<
"No Theta SL" << endl;
109 if (resultPhi.size()) {
110 for (vector<DTChamberRecSegment2D>::const_iterator
phi=resultPhi.begin();
111 phi!=resultPhi.end(); ++
phi) {
131 if (
debug)
cout <<
"Created a 4D seg " << endl;
137 if (
debug)
cout <<
"Created a 4D segment using only the 2D Phi segment" << endl;
156 if (
debug)
cout <<
"Created a 4D segment using only the 2D Theta segment" << endl;
166 vector<DTChamberRecSegment2D>
result;
169 for(vector<DTSLRecSegment2D>::const_iterator segment2DPhi1 =
theSegments2DPhi1.begin();
171 for(vector<DTSLRecSegment2D>::const_iterator segment2DPhi2 =
theSegments2DPhi2.begin();
175 if(segment2DPhi1->chamberId() != segment2DPhi2->chamberId())
177 <<
"he phi segments have different chamber id"<<std::endl;
180 vector<DTRecHit1D> recHitsSeg2DPhi1 = segment2DPhi1->specificRecHits();
181 vector<DTRecHit1D> recHitsSeg2DPhi2 = segment2DPhi2->specificRecHits();
183 copy(recHitsSeg2DPhi2.begin(),recHitsSeg2DPhi2.end(),back_inserter(recHitsSeg2DPhi1));
185 const DTChamberId chId = segment2DPhi1->chamberId();
195 result.push_back(superPhi);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< DTSLRecSegment2D > theSegments2DTheta
std::pair< const_iterator, const_iterator > range
iterator range
DTSegmentUpdator * theUpdator
void update(DTRecSegment4D *seg, const bool calcT0=false) const
recompute hits position and refit the segment4D
virtual void setES(const edm::EventSetup &setup)
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
virtual double chi2() const
the chi2 of the fit
virtual edm::OwnVector< DTRecSegment4D > reconstruct()
Operations.
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
DTRefitAndCombineReco4D(const edm::ParameterSet &pset)
Constructor.
void setES(const edm::EventSetup &setup)
set the setup
const DTChamber * theChamber
DTChamberId id() const
Return the DTChamberId of this chamber.
virtual void setDTRecSegment2DContainer(edm::Handle< DTRecSegment2DCollection > all2DSegments)
bool fit(DTSegmentCand *seg) const
std::vector< DTChamberRecSegment2D > refitSuperSegments()
std::vector< DTSLRecSegment2D > theSegments2DPhi1
virtual void setChamber(const DTChamberId &chId)
std::vector< DTSLRecSegment2D > theSegments2DPhi2
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
edm::ESHandle< DTGeometry > theDTGeometry
const DTSuperLayer * superLayer(DTSuperLayerId id) const
Return the superlayer corresponding to the given id.