124 using namespace reco;
135 for (
unsigned int i = 0;
i < 4;
i++) {
180 LocalPoint segmentLocalPosition = segment->localPosition();
181 LocalVector segmentLocalDirection = segment->localDirection();
182 LocalError segmentLocalPositionError = segment->localPositionError();
183 LocalError segmentLocalDirectionError = segment->localDirectionError();
184 bool segmentFound =
false;
189 if (!
muon->isMatchesValid())
192 for(std::vector<MuonChamberMatch>::const_iterator chamberMatch =
muon->matches().begin();
193 chamberMatch !=
muon->matches().end(); ++chamberMatch) {
194 for(std::vector<MuonSegmentMatch>::const_iterator segmentMatch = chamberMatch->segmentMatches.begin();
195 segmentMatch != chamberMatch->segmentMatches.end(); ++segmentMatch)
197 if (fabs(segmentMatch->x - segmentLocalPosition.
x() ) < 1E-6 &&
198 fabs(segmentMatch->y - segmentLocalPosition.
y() ) < 1E-6 &&
199 fabs(segmentMatch->dXdZ - segmentLocalDirection.
x()/segmentLocalDirection.
z()) < 1E-6 &&
200 fabs(segmentMatch->dYdZ - segmentLocalDirection.
y()/segmentLocalDirection.
z()) < 1E-6 &&
201 fabs(segmentMatch->xErr -
sqrt(segmentLocalPositionError.
xx()) ) < 1E-6 &&
202 fabs(segmentMatch->yErr -
sqrt(segmentLocalPositionError.
yy()) ) < 1E-6 &&
203 fabs(segmentMatch->dXdZErr -
sqrt(segmentLocalDirectionError.
xx()) ) < 1E-6 &&
204 fabs(segmentMatch->dYdZErr -
sqrt(segmentLocalDirectionError.
yy()) ) < 1E-6)
210 if (segmentFound)
break;
212 if (segmentFound)
break;
224 LocalPoint segmentLocalPosition = segment->localPosition();
225 LocalVector segmentLocalDirection = segment->localDirection();
226 LocalError segmentLocalPositionError = segment->localPositionError();
227 LocalError segmentLocalDirectionError = segment->localDirectionError();
228 bool segmentFound =
false;
233 if (!
muon->isMatchesValid())
236 for(std::vector<MuonChamberMatch>::const_iterator chamberMatch =
muon->matches().begin();
237 chamberMatch !=
muon->matches().end(); ++chamberMatch) {
238 for(std::vector<MuonSegmentMatch>::const_iterator segmentMatch = chamberMatch->segmentMatches.begin();
239 segmentMatch != chamberMatch->segmentMatches.end(); ++segmentMatch)
241 if (fabs(segmentMatch->x - segmentLocalPosition.
x() ) < 1E-6 &&
242 fabs(segmentMatch->y - segmentLocalPosition.
y() ) < 1E-6 &&
243 fabs(segmentMatch->dXdZ - segmentLocalDirection.
x()/segmentLocalDirection.
z()) < 1E-6 &&
244 fabs(segmentMatch->dYdZ - segmentLocalDirection.
y()/segmentLocalDirection.
z()) < 1E-6 &&
245 fabs(segmentMatch->xErr -
sqrt(segmentLocalPositionError.
xx()) ) < 1E-6 &&
246 fabs(segmentMatch->yErr -
sqrt(segmentLocalPositionError.
yy()) ) < 1E-6 &&
247 fabs(segmentMatch->dXdZErr -
sqrt(segmentLocalDirectionError.
xx()) ) < 1E-6 &&
248 fabs(segmentMatch->dYdZErr -
sqrt(segmentLocalDirectionError.
yy()) ) < 1E-6)
254 if (segmentFound)
break;
256 if (segmentFound)
break;
MonitorElement * hCSCDx[4][4]
MonitorElement * hCSCDdYdZ[4][4]
MonitorElement * hCSCDdXdZ[4][4]
MonitorElement * hCSCPulldXdZ[4][4]
bool useGlobalMuonsNotTrackerMuons_
edm::InputTag inputDTRecSegment4DCollection_
edm::InputTag inputCSCSegmentCollection_
bool useTrackerMuonsNotGlobalMuons_
MonitorElement * hDTDdYdZ[4][3]
MonitorElement * hDTPully[4][3]
C::const_iterator const_iterator
constant access iterator type
MonitorElement * hCSCDy[4][4]
edm::Handle< DTRecSegment4DCollection > dtSegmentCollectionH_
MonitorElement * hCSCPully[4][4]
MonitorElement * hSegmentIsAssociatedBool
MonitorElement * hDTPullx[4][4]
MonitorElement * hCSCPullx[4][4]
edm::InputTag inputMuonCollection_
MonitorElement * hNumMatches[4]
MonitorElement * hDTDdXdZ[4][4]
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::Handle< reco::MuonCollection > muonCollectionH_
MonitorElement * hDTDx[4][4]
MonitorElement * hDTPulldYdZ[4][3]
MonitorElement * hDTDy[4][3]
MonitorElement * hCSCPulldYdZ[4][4]
virtual void Fill(MonitorElement *, float)
MonitorElement * hDTNumSegments[4][4]
MonitorElement * hCSCNumSegments[4][4]
edm::ESHandle< GlobalTrackingGeometry > geometry_
MonitorElement * hDTPulldXdZ[4][4]
MonitorElement * hNumChambers[4]
edm::Handle< CSCSegmentCollection > cscSegmentCollectionH_