33 debug =
pset.getUntrackedParameter<
bool>(
"debug");
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);
std::vector< DTSLRecSegment2D > theSegments2DTheta
std::pair< const_iterator, const_iterator > range
iterator range
DTSegmentUpdator * theUpdator
DTChamberId id() const
Return the DTChamberId of this chamber.
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
double chi2() const override
the chi2 of the fit
DTRefitAndCombineReco4D(const edm::ParameterSet &pset, edm::ConsumesCollector cc)
Constructor.
void setChamber(const DTChamberId &chId) override
void setDTRecSegment2DContainer(edm::Handle< DTRecSegment2DCollection > all2DSegments) override
void update(DTRecSegment4D *seg, const bool calcT0, bool allow3par) const
recompute hits position and refit the segment4D
const DTSuperLayer * superLayer(const DTSuperLayerId &id) const
Return the superlayer corresponding to the given id.
void setES(const edm::EventSetup &setup)
set the setup
void setES(const edm::EventSetup &setup) override
bool fit(DTSegmentCand *seg, bool allow3par, const bool fitdebug) const
const DTChamber * theChamber
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > theDTGeometryToken
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
std::vector< DTChamberRecSegment2D > refitSuperSegments()
std::vector< DTSLRecSegment2D > theSegments2DPhi1
edm::OwnVector< DTRecSegment4D > reconstruct() override
Operations.
std::vector< DTSLRecSegment2D > theSegments2DPhi2
const DTChamber * chamber(const DTChamberId &id) const
Return a DTChamber given its id.
edm::ESHandle< DTGeometry > theDTGeometry