69 vector<DTSLRecSegment2D> segments2DPhi1(rangePhi1.first, rangePhi1.second);
70 vector<DTSLRecSegment2D> segments2DTheta(rangeTheta.first, rangeTheta.second);
71 vector<DTSLRecSegment2D> segments2DPhi2(rangePhi2.first, rangePhi2.second);
74 cout <<
"Number of 2D-segments in the first SL (Phi)" << segments2DPhi1.size() << endl
75 <<
"Number of 2D-segments in the second SL (Theta)" << segments2DTheta.size() << endl
76 <<
"Number of 2D-segments in the third SL (Phi)" << segments2DPhi2.size() << endl;
92 cout <<
"There are " << resultPhi.size() <<
" Phi cand" << endl;
103 cout <<
"No Theta SL" << endl;
107 if (!resultPhi.empty()) {
108 for (vector<DTChamberRecSegment2D>::const_iterator
phi = resultPhi.begin();
phi != resultPhi.end(); ++
phi) {
128 cout <<
"Created a 4D seg " << endl;
135 cout <<
"Created a 4D segment using only the 2D Phi segment" << endl;
156 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();
172 for (vector<DTSLRecSegment2D>::const_iterator segment2DPhi2 =
theSegments2DPhi2.begin();
176 if (segment2DPhi1->chamberId() != segment2DPhi2->chamberId())
177 throw cms::Exception(
"refitSuperSegments") <<
"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 getUntrackedParameter(std::string const &, T const &) const
const DTSuperLayer * superLayer(const DTSuperLayerId &id) const
Return the superlayer corresponding to the given id.
std::vector< DTSLRecSegment2D > theSegments2DTheta
std::pair< const_iterator, const_iterator > range
iterator range
DTSegmentUpdator * theUpdator
double chi2() const override
the chi2 of the fit
DTRefitAndCombineReco4D(const edm::ParameterSet &pset, edm::ConsumesCollector cc)
Constructor.
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
void setChamber(const DTChamberId &chId) override
void setDTRecSegment2DContainer(edm::Handle< DTRecSegment2DCollection > all2DSegments) override
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
void setES(const edm::EventSetup &setup)
set the setup
void setES(const edm::EventSetup &setup) override
const DTChamber * theChamber
DTChamberId id() const
Return the DTChamberId of this chamber.
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > theDTGeometryToken
std::vector< DTChamberRecSegment2D > refitSuperSegments()
std::vector< DTSLRecSegment2D > theSegments2DPhi1
T getParameter(std::string const &) const
edm::OwnVector< DTRecSegment4D > reconstruct() override
Operations.
std::vector< DTSLRecSegment2D > theSegments2DPhi2
void update(DTRecSegment4D *seg, const bool calcT0, bool allow3par) const
recompute hits position and refit the segment4D
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
bool fit(DTSegmentCand *seg, bool allow3par, const bool fitdebug) const
edm::ESHandle< DTGeometry > theDTGeometry