32 debug =
pset.getUntrackedParameter<
bool>(
"debug");
68 vector<DTSLRecSegment2D> segments2DPhi1(rangePhi1.first, rangePhi1.second);
69 vector<DTSLRecSegment2D> segments2DTheta(rangeTheta.first, rangeTheta.second);
70 vector<DTSLRecSegment2D> segments2DPhi2(rangePhi2.first, rangePhi2.second);
73 cout <<
"Number of 2D-segments in the first SL (Phi)" << segments2DPhi1.size() << endl
74 <<
"Number of 2D-segments in the second SL (Theta)" << segments2DTheta.size() << endl
75 <<
"Number of 2D-segments in the third SL (Phi)" << segments2DPhi2.size() << endl;
91 cout <<
"There are " << resultPhi.size() <<
" Phi cand" << endl;
102 cout <<
"No Theta SL" << endl;
106 if (!resultPhi.empty()) {
107 for (vector<DTChamberRecSegment2D>::const_iterator
phi = resultPhi.begin();
phi != resultPhi.end(); ++
phi) {
127 cout <<
"Created a 4D seg " << endl;
134 cout <<
"Created a 4D segment using only the 2D Phi segment" << endl;
155 cout <<
"Created a 4D segment using only the 2D Theta segment" << endl;
165 vector<DTChamberRecSegment2D>
result;
168 for (vector<DTSLRecSegment2D>::const_iterator segment2DPhi1 =
theSegments2DPhi1.begin();
171 for (vector<DTSLRecSegment2D>::const_iterator segment2DPhi2 =
theSegments2DPhi2.begin();
175 if (segment2DPhi1->chamberId() != segment2DPhi2->chamberId())
176 throw cms::Exception(
"refitSuperSegments") <<
"he phi segments have different chamber id" << std::endl;
179 vector<DTRecHit1D> recHitsSeg2DPhi1 = segment2DPhi1->specificRecHits();
180 vector<DTRecHit1D> recHitsSeg2DPhi2 = segment2DPhi2->specificRecHits();
182 copy(recHitsSeg2DPhi2.begin(), recHitsSeg2DPhi2.end(), back_inserter(recHitsSeg2DPhi1));
184 const DTChamberId chId = segment2DPhi1->chamberId();
194 result.push_back(superPhi);